DLN-series adapters support only 7-bit addressing. To start transmission, the I2C master generates the START (S) condition followed by seven bits of a slave address and an eighth bit which is a data direction bit.
7-bit addressing allows 127 different addresses. Some addresses are reserved (See Slave Address and Data Direction), only 112 devices can actually be connected to the I2C bus. To scan all possible addresses and to find devices connected to the I2C bus, us the DlnI2cMasterScanDevices() function. It returns the number of connected devices and the list of their addresses.You can use these addresses for I2C transmission in one of the following functions:
- DlnI2cMasterRead()
Receives data from the specified slave. Internal address can be specified (See READ Operation for details).
- DlnI2cMasterWrite()
Sends data to the specified slave. Internal address can be specified (See WRITE Operation for details).
- DlnI2cMasterTransfer()
Sends data to the specified slave, then reads data from the same slave (only DLN-1 and DLN-2 adapters support this function).