Hi Jean,
> You probably want to use i2c_smbus_write_i2c_block_data instead. With
> i2c_smbus_write_block_data, the first data byte isn't real data,
> instead in indicates how many bytes follow until the end of the block.
> It should result in "5D W 11 33 44" in your case though, not sure why
> you get "5D W 11 03 33" instead.
i'm aware of the length field and i2c_smbus_write_i2c_block_data doesn't work,
too. Now i get: 5D W 11 44
unsigned char values[3];
int reg = 0x11;
values[0] = 0x33;
values[1] = 0x44;
i2c_smbus_write_i2c_block_data(fd, reg, 2, values);
If i change the third parameter (length) to 1 I get the 0x33.
I've no idea! :-(
Regards,
Nick
__________________________________________________________
Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.
http://de.overview.mail.yahoo.com
_______________________________________________
i2c mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/i2c