Content originally posted in LPCWare by rocketdawg on Tue Mar 25 09:34:08 MST 2014
I understand your concern. The I2C spec says that the data on SDA is an 8 bit byte.
It makes no mention of signed or unsigned.
the target device (in this case) has a register definition that referes to a signed quantity, and does so for convenience or to aid in describing the contents of the register.
but it is really a value from 0 to 0xFF
so how does your implementation work if I access a I2C EEPROM that can read a whole 64 byte flash page? Can not put that into someResults.
A byte array does not rely on the capabilities of the target device.
someCommand sizeof() is really 4 bytes and its RAM storage layout is dependent upon endianness. (so does someResults)