DlnI2cSlaveGetAddressCount() Function

 DLN_RESULT DlnI2cSlaveGetAddressCount(
    HDLN handle,
    uint8_t port,
    uint8_t* count
 );
 

The DlnI2cSlaveGetAddressCount() function retrieves the number of I2C slave addresses supported by the PC-I2C adapter. DLN-series adapters can acknowledge any I2C slave address. The limitation is only in the amount of slave addresses to be used simultaneously. You can use the DlnI2cSlaveSetAddress() function to configure the I2C slave module to acknowledge specific addresses.

Parameters:

handle
A handle to the DLN-series adapter
port
A number of the I2C slave port to retrieve the information from.
count
A pointer to an unsigned 8-bit integer. The integer will be filled with the number of supported I2C slave addresses.

This function is defined in the dln_i2c_slave.h file.