DLN_RESULT DlnI2cSlaveGetEvent( HDLN handle, uint8_t port, uint16_t slaveAddressNumber uint8_t* eventType, );
- A handle to the DLN-series adapter.
- A number of the I2C slave port to be used.
- A number of the I2C slave address to retrieve settings for. Use DlnI2cSlaveGetAddressCount() function to obtain the total number of supported I2C slave addresses.
A pointer to an unsigned 8-bit integer. The integer will be filled with current event generation settings. The following values are supported:
I2C_SLAVE_EVENT_NONE (0) no events are generated I2C_SLAVE_EVENT_READ (1) events are generated when an I2C master device reads data from the adapter I2C_SLAVE_EVENT_WRITE (2) events are generated when an I2C master device writes data to the adapter I2C_SLAVE_EVENT_READ_WRITE (1) events are generated both for I2C read and I2C write transactions
This function is defined in the dln_i2c_slave.h file.