I'm running vanilla 3.2.38 on Intel's ATOM.
After running sensors-detect I have /dev/i2c-0
One of the slave devices connected to the BUS is TI's microcontroller (MSP430F5529) that waits for I2C message.
It's slave address is 0x43.
I opened the controller with:
int Handle = open ("/dev/i2c-0",O_RDWR);
if (Handle < 0)
printf ("Failed to open smbus\n");
Now I have to write a 16 bytes message to the slave.
How can I tell the kernel to write to slave address 0x43 ?
The message can be longer than 32 bytes.
should I use:
BytesWritten = write(Handle, WriteBuffer, sizeof(WriteBuffer));