I2C Master Functions

The following functions are used to control and manage the I2C master module of a DLN-series adapter.

Function Description
DlnI2cMasterGetPortCount() Retrieves the total number of I2C master ports available at your PC-I2C adapter.
DlnI2cMasterEnable() Activates the specified I2C master port at your PC-I2C adapter.
DlnI2cMasterDisable() Deactivates the specified I2C master port at your PC-I2C adapter.
DlnI2cMasterIsEnabled() Checks whether the specified I2C master port is active or not.
DlnI2cMasterSetFrequency() Configures the clock frequency for the specified I2C master port.
DlnI2cMasterGetFrequency() Retrieves current I2C bus clock frequency for the specified I2C master port.
DlnI2cMasterWrite() Sends data from the DLN-series PC-I2C adapter to the specified I2C slave device.
DlnI2cMasterRead() Reads data from the specified I2C slave device.
DlnI2cMasterScanDevices() Scans all the 127 I2C slave addresses searching for connected I2C slave devices.

Actual control of the device is performed by the use of commands and responses. Each function encapsulates respective commands and responses. You can send these commands directly if necessary.