cronologic-de / xhptdc8_babel

Wrappers, Utilities and Examples for using the xHPTDC8 with various programming languages.
Mozilla Public License 2.0
0 stars 1 forks source link

xhptdc8_info: driver_revision output not decoded #44

Closed ahofmann75 closed 3 years ago

ahofmann75 commented 3 years ago

For driver revision 0.19.0 the output is 4864. That is the undecoded raw value of the field.

driver_revision stores the driver revision in a three 8 bit values packed in one integer. That is Major = (driver_revision >> 16) & 0xff Minor = (driver_revision >> 8) & 0xff Revision= driver_revision & 0xff