Hello,
the driver has been refactored to have as universal API as possible.
At least, following sequence is needed now for correct behaviour:
i2c_fd=open("i2c0:", NULL); // master mode is default
param=0x66; // addressed device
ioctl(i2c_fd, IO_IOCTL_I2C_SET_DESTINATION_ADDRESS, ¶m);
fwrite(i2c_send_buffer, 1, 17, i2c_fd);
fflush(i2c_fd);
ioctl(i2c_fd, IO_IOCTL_I2C_STOP, NULL);
Please see I2C example application for more details.
Regards,
PetrM