28. Bit Field Operations-i

Question.1

A motor controller uses a 16-bit configuration register with the following layout:

1514131211109876543210
MODESPEEDFLAGS

The register currently holds 0xA3F5. A developer extracts the SPEED field:

uint16_t speed = (reg >> 8) & 0x0F;

What is the value of speed?

Need Help? Refer to the Quick Guide below

Select Answer