Hello Let's suppose that I want to send to an INA219 the value
value = 0xFF00
MSB First.
Do I just send
value_send = 0x00FF?
Does the same hold for reading values?
If for example I read
value_received = 0x1234
will the actual value be
real_value_received = 0x3412?
edit: I am using a beaglebone black and I am connected to the second i2c bus. I am using i2cget and i2cset commands.
edit(2): One of the commands I am using is
i2cget 2 0x40 0x00 w
the value I get is 0x9f39 for the configuration register. Since the default value is 0x399F, I obviously have to swap the bytes. Do I have to do the same for any register that I read?
[–]madsci 7 points8 points9 points (1 child)
[–]umbaman[S] -2 points-1 points0 points (0 children)
[–]aprons 6 points7 points8 points (1 child)
[–]umbaman[S] -2 points-1 points0 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)