DlnI2cSlaveGetAddress() Function
DLN_RESULT DlnI2cSlaveGetAddress(
HDLN handle,
uint8_t port,
uint8_t slaveAddressNumber,
uint8_t* address
);
The DlnI2cSlaveGetAddress() function retrieves one of the I2C slave addresses, assigned to the specified I2C slave module. The total number of simultaneously assigned addresses can be retrieved with DlnI2cSlaveGetAddressCount() function.
Parameters:
- handle
- A handle to the DLN-series adapter.
- port
- A number of the I2C slave port to retrieve the information from.
- slaveAddressNumber
- A number of the I2C slave address to be retrieved. The slaveAddressNumber value can be in the range from 0 up to (but not including) the value returned by the DlnI2cSlaveGetAddressCount() function.
- address
- A pointer to an unsigned 8-bit integer. The integer will be filled with the I2C slave address after the function execution.
This function is defined in the dln_i2c_slave.h file.
2006-2012