The DLN_I2C_SLAVE_READ_EV structure contains information about the I2C read event.
DLN_I2C_SLAVE_READ_EV
typedef struct { DLN_MSG_HEADER header; uint16_t eventCount; uint8_t eventType; uint8_t port; uint8_t slaveAddress; uint16_t size; } __PACKED_ATTR DLN_I2C_SLAVE_READ_EV;
Defines the DLN message header. It should have the following value: DLN_MSG_ID_I2C_SLAVE_READ_EV (0x0C10).
DLN_MSG_ID_I2C_SLAVE_READ_EV (0x0C10)
The number of events generated after the event configuration changed.
The type of generating events. The following values are possible:
1
DLN_I2C_SLAVE_EVENT_READ
Events are generated when the I2C master initiates receiving data from the I2C slave device.
3
DLN_I2C_SLAVE_EVENT_READ_WRITE
Events are generated when the I2C master initiates receiving data from or transmitting data to the I2C slave device.
The number of the I2C slave port where the event is generated.
The I2C slave address assigned to the DLN adapter that generated the event.
A size of the buffer that stores the event data.