Closed HotNoob closed 7 months ago
done, but untested. also added bit flag reading. did test it with 16bit val, which is a no duh. so it should work....
data type: 4bits, register 70 data type: 2bits, register 70.b4 data type: 4bits, register 70.b6
is the format i went with.
some registers are holding sub-byte sized values. ie, 1bit, 2 bits, 4 bits in size.
so on the todo to add support for reading theese values. i'm thinking maybe this as the format. in the csv. its a bit of a hack {#bits:variable_name},{#bits:variable_name},... to be put into either the data_type column or documented name column.
or alternatively, could do it via register numbers and data type, with b4 being the starting bit, and data type defining the size. ie, data type: 4bits, register 70 data type: 2bits, register 70.b4 data type: 4bits, register 70.b6
leaning towards data_type and register, as its more clean.