To write to a slave device, the I2C master follows these steps:
Sends the START (S) condition.
Sends the I2C address of the slave device.
Sends the WRITE (W) direction bit.
Receives the acknowledgement (ACK) bit.
Sends the internal address where it wants to write.
Receives the acknowledgement (ACK) bit.
Sends data bytes and receives the acknowledgement (ACK) bit after each byte.
Sends the STOP (P) condition.
To write data using internal address, call the DlnI2cMasterWrite() function. It requires the slave device address (the slaveDeviceAddress
parameter), the length of the internal address (the memoryAddressLength
parameter) and the internal address (the memoryAddress
parameter).