I2C Slave Functions
The following functions are used to control and manage the I2C slave module of a DLN-series adapter:
| Function | Description |
|---|---|
| DlnI2cSlaveGetPortCount() | Retrieves the total number of I2C slave ports available in your PC-I2C adapter. |
| DlnI2cSlaveEnable() | Activates the specified I2C slave port at your PC-I2C adapter. |
| DlnI2cSlaveDisable() | Deactivates the specified I2C slave port at your PC-I2C adapter and releases pins previously used for SDA and SCL lines. |
| DlnI2cSlaveIsEnabled() | Checks whether the specified I2C slave port is active or not. |
| DlnI2cSlaveGetAddressCount() | Retrieves the total number of supported I2C slave addresses. DLN-series PC-I2C adapters can acknowledge any I2C slave address. The limitation is only in the amount of slave addresses to be used simultaneously. |
| DlnI2cSlaveSetAddress() | Assigns I2C slave addresses to the specified I2C slave module. You can assign any 7-bit address, the limitation is only in quantity of addresses that can be used simultaneously. |
| DlnI2cSlaveGetAddress() | Retrieves one of the I2C slave addresses, assigned to the specified I2C slave module. |
| DlnI2cSlaveGeneralCallEnable() | Instructs PC-I2C adapter to recognize I2C general call address (0) at the specified I2C slave port. |
| DlnI2cSlaveGeneralCallDisable() | Instructs PC-I2C adapter to ignore general call (I2C address 0) at the specified I2C slave port. |
| DlnI2cSlaveGeneralCallIsEnabled() | Checks whether I2C general call (address 0) is acknowledged by the PC-I2C adapter or not. |
| DlnI2cSlaveLoadReply() | Loads data to be transferred to an I2C master device. |
| DlnI2cSlaveSetEvent() | Configures the I2C slave events generation conditions for the specified I2C slave port and I2C slave address. |
| DlnI2cSlaveGetEvent() | Retrieves settings for I2C event generation for the specified I2C slave port and I2C slave address. |
Actual control of the device is performed by use of I2C commands and responses. Each function encapsulates respective commands and responses. You can send such commands directly if necessary.
2006-2012