Hi,
I have several bits I have to write in some registers.
The reading is working fine with bitmask, but I don't want to read, just write.
When I write TRUE it always sets to "1" the first bit of the register, not the one selected in the bitmask.
Am I missing something ?
{"name":"Set Heat Mode" ,"bus_datatype":"1","type":"register","datatype":"int16", "address":1057, "value_bitmask":0x4, "read_swap":"n", "writable":1 },
{"name":"Set Cool Mode" ,"bus_datatype":"1","type":"register","datatype":"int16", "address":1057, "value_bitmask":0x8, "read_swap":"n", "writable":1 },
{"name":"Set Lock Mode" ,"bus_datatype":"1","type":"register","datatype":"int16", "address":1057, "value_bitmask":0x20, "read_swap":"n", "writable":1 },
{"name":"Set On Off" ,"bus_datatype":"1","type":"register","datatype":"int16", "address":1057, "value_bitmask":0x80, "read_swap":"n", "writable":1 },
{"name":"Set Fan AUTO" ,"bus_datatype":"1","type":"register","datatype":"int16", "address":1058, "value_bitmask":0x80, "read_swap":"n", "writable":1 },
{"name":"Set Fan LOW" ,"bus_datatype":"1","type":"register","datatype":"int16", "address":1058, "value_bitmask":0x4, "read_swap":"n", "writable":1 },
{"name":"Set Fan MID" ,"bus_datatype":"1","type":"register","datatype":"int16", "address":1058, "value_bitmask":0x2, "read_swap":"n", "writable":1 },
{"name":"Set Fan HIGH" ,"bus_datatype":"1","type":"register","datatype":"int16", "address":1058, "value_bitmask":0x1, "read_swap":"n", "writable":1 },
Thank you
I have several bits I have to write in some registers.
The reading is working fine with bitmask, but I don't want to read, just write.
When I write TRUE it always sets to "1" the first bit of the register, not the one selected in the bitmask.
Am I missing something ?
{"name":"Set Heat Mode" ,"bus_datatype":"1","type":"register","datatype":"int16", "address":1057, "value_bitmask":0x4, "read_swap":"n", "writable":1 },
{"name":"Set Cool Mode" ,"bus_datatype":"1","type":"register","datatype":"int16", "address":1057, "value_bitmask":0x8, "read_swap":"n", "writable":1 },
{"name":"Set Lock Mode" ,"bus_datatype":"1","type":"register","datatype":"int16", "address":1057, "value_bitmask":0x20, "read_swap":"n", "writable":1 },
{"name":"Set On Off" ,"bus_datatype":"1","type":"register","datatype":"int16", "address":1057, "value_bitmask":0x80, "read_swap":"n", "writable":1 },
{"name":"Set Fan AUTO" ,"bus_datatype":"1","type":"register","datatype":"int16", "address":1058, "value_bitmask":0x80, "read_swap":"n", "writable":1 },
{"name":"Set Fan LOW" ,"bus_datatype":"1","type":"register","datatype":"int16", "address":1058, "value_bitmask":0x4, "read_swap":"n", "writable":1 },
{"name":"Set Fan MID" ,"bus_datatype":"1","type":"register","datatype":"int16", "address":1058, "value_bitmask":0x2, "read_swap":"n", "writable":1 },
{"name":"Set Fan HIGH" ,"bus_datatype":"1","type":"register","datatype":"int16", "address":1058, "value_bitmask":0x1, "read_swap":"n", "writable":1 },
Thank you