13.12.2017, 19:13
Hi
I need to get a hex value presented as individual bits. I have a 2-byte value where each bit indicates a certain status
Bit0 - Alarm class danger (A)
Bit1 - Alarm class critical (A)
Bit2 - Alarm class low (B)
Bit3 - Alarm class warning ©
Bit4 -
Bit5 - Manual control active
Bit6 - Summer mode
Bit7 -
Bit8 - Preheating, heating reg
Bit9 - Preheating, extra heating reg
Bit10 -
Bit11 - Act ctrl mode temp, room
Bit12 - Act ctrl mode temp, exhaust
Bit13 - Act ctrl mode temp, supply
Bit14 - Act ctrl mode hum, room
Bit15 - Act ctrl mode hum, supply
I therefore need to get the hex value and check each bits value. Anyone know a good way to do this?
I need to get a hex value presented as individual bits. I have a 2-byte value where each bit indicates a certain status
Bit0 - Alarm class danger (A)
Bit1 - Alarm class critical (A)
Bit2 - Alarm class low (B)
Bit3 - Alarm class warning ©
Bit4 -
Bit5 - Manual control active
Bit6 - Summer mode
Bit7 -
Bit8 - Preheating, heating reg
Bit9 - Preheating, extra heating reg
Bit10 -
Bit11 - Act ctrl mode temp, room
Bit12 - Act ctrl mode temp, exhaust
Bit13 - Act ctrl mode temp, supply
Bit14 - Act ctrl mode hum, room
Bit15 - Act ctrl mode hum, supply
I therefore need to get the hex value and check each bits value. Anyone know a good way to do this?
There are 10 kinds of people in the world; those who can read binary and those who don'tÂ