C++ Conversion Error when Accessing Bits to Set a Bit Field We are using bitfields to represent elements of a register read from a device.