I2C Master Commands and Responses

The following commands and responses are used to control and monitor the I2C master module of a DLN-series adapter.

Command/Response Description
DLN_I2C_MASTER_GET_PORT_COUNT The DLN_I2C_MASTER_GET_PORT_COUNT command is used to retrieve the number of I2C master ports available in your DLN-series adapter.
DLN_I2C_MASTER_ENABLE The DLN_I2C_MASTER_ENABLE command is used to activate the corresponding I2C master port of your DLN-series adapter.
DLN_I2C_MASTER_DISABLE The DLN_I2C_MASTER_DISABLE command is used to deactivate the specified I2C master port of your DLN-series adapter.
DLN_I2C_MASTER_IS_ENABLED The DLN_I2C_MASTER_IS_ENABLED command is used to retrieve information, whether the specified I2C master port is activated.
DLN_I2C_MASTER_SET_FREQUENCY The DLN_I2C_MASTER_SET_FREQUENCY command is used to set the clock frequency to synchronize data transfer between master and slave devices.
DLN_I2C_MASTER_GET_FREQUENCY The DLN_I2C_GET_FREQUENCY command is used to retrieve current I2C bus clock frequency.
DLN_I2C_MASTER_WRITE The DLN_I2C_MASTER_WRITE command is used to send the data via I2C interface.
DLN_I2C_MASTER_READ The DLN_I2C_MASTER_READ command is used to read data from I2C slave device.
DLN_I2C_MASTER_SCAN_DEVICES The DLN_I2C_MASTER_SCAN_DEVICES command is used to scan all the 127 slave addresses searching for connected I2C slave devices.
DLN_I2C_MASTER_PULLUP_ENABLE The DLN_I2C_MASTER_PULLUP_ENABLE command is used to enable embedded pull-up resistor for the specified I2C master port.
DLN_I2C_MASTER_PULLUP_DISABLE The DLN_I2C_MASTER_PULLUP_DISABLE command is used to disable the embedded pull-uo resistor for the specified I2C master port.
DLN_I2C_MASTER_PULLUP_IS_ENABLED The DLN_I2C_MASTER_PULLUP_IS_ENABLED command is used to retrieve information on whether the embedded pull-up resistor is currently activated for the specified I2C master port.