WiringPi.Net
WiringPi.Net copied to clipboard
I2C 16 bit operations no sign or endian accomodation
Not really the wrapper's fault I don't think as I couldn't really find 16 bit reads and writes except as purpose written methods in specific devices. Could be wrong, might be a universal one I just can't find (not a C or C++ expert by any means).
So for two or more byte reads I use the ReadReg8() methods and assemble the bytes appropriately.
I haven't had any issues with the WriteReg16 but then I haven't actually used it. Didn't see anything dealing with sign/endian in the intellisense information though.