Question.6
A 16-bit I2C config register has this layout:
A developer needs to set SPEED to 2 and EN to 1 while keeping all other fields zero (including reserved bits). Which code is correct?
Select Multiple Options
reg = (2 << 5) | (1 << 0)
reg = (2 << 7) | (1 << 0);
reg = (2 << 5) | 1;
reg = (2 << 4) | (1 << 0);