Use the I2C Master Interface functions to control and monitor the I2C Master module of a DLN-series adapter. The dln_i2c_master.h file declares the I2C Master Interface functions.
General port information:
- DlnI2cMasterGetPortCount()
- Retrieves the total number of I2C master ports available at your DLN-series adapter. 
- DlnI2cMasterEnable()
- Assigns a port to the I2C Master module. 
- DlnI2cMasterDisable()
- Releases a port from the I2C Master module. 
- DlnI2cMasterIsEnabled()
- Retrieves whether a port is assigned to the I2C Master module. 
- DlnI2cMasterScanDevices()
- Scans all slave addresses searching for connected I2C slave devices. 
I2C Master module configuration functions:
- DlnI2cMasterSetFrequency()
- Configures frequency for the specified I2C master port. 
- DlnI2cMasterGetFrequency()
- Retrieves frequency configuration for an I2C Master port. 
- DlnI2cMasterSetMaxReplyCount()
- Configures the maximum reply count for an I2C master port. 
- DlnI2cMasterGetMaxReplyCount()
- Retrieves the maximum reply count configuration. 
Transmission functions:
- DlnI2cMasterRead()
- Receives data from the specified slave. Internal address can be specified. 
- DlnI2cMasterWrite()
- Sends data to the specified slave. Internal address can be specified. 
- DlnI2cMasterTransfer()
- Sends data to the specified slave, then reads data from the same slave (only DLN-1 and DLN-2 adapters support this function).