DlnI2cSlaveSetAddress() Function
DLN_RESULT DlnI2cSlaveSetAddress(
HDLN handle,
uint8_t port,
uint8_t slaveAddressNumber,
uint8_t address
);
The DlnI2cSlaveSetAddress() function assigns I2C addresses to the specified I2C slave module. You can assign any 7-bit address, the limitation is only in quantity of addresses that can be used simultaneously. Use the DlnI2cSlaveGetAddressCount() to retrieve the number of simultaneously supported I2C slave addresses.
Parameters:
- handle
- A handle to the DLN-series adapter.
- port
- An I2C slave port to be configured.
- slaveAddressNumber
- A number of the I2C slave address to be assigned. Use the DlnI2cSlaveGetAddressCount() to retrieve the number of simultaneously supported I2C slave addresses. The slaveAddressNumber is zero based.
- address
- An I2C slave address to be assigned to the specified I2C slave module.
This function is defined in the dln_i2c_slave.h file.
2006-2012