The DlnI2cMasterGetPortCount() function retrieves the total number of I2C master ports available at your DLN-series adapter.
DlnI2cMasterGetPortCount()
DLN_RESULT DlnI2cMasterGetPortCount( HDLN handle, uint8_t* count );
A handle to the DLN-series adapter.
A pointer to an unsigned 8-bit integer that receives the number of available I2C master ports.
The function retrieved the number of available I2C master ports successfully.
The handle parameter is invalid, or the corresponding DLN adapter was disconnected.
The DlnI2cMasterGetPortCount() function is defined in the dln_i2c_master.h file.
dln_i2c_master.h