Question.1
A motor controller uses a 16-bit configuration register with the following layout:
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MODE | SPEED | FLAGS | |||||||||||||
The register currently holds 0xA3F5. A developer extracts the SPEED field:
uint16_t speed = (reg >> 8) & 0x0F;What is the value of speed?