IRQ event type. More...
IRQ event type.
Handling an interrupt of a PCF857x expander requires the driver to access the device directly via I2C. However, the mutex-based synchronization of I2C accesses does not work in the interrupt context. Therefore the ISR must not access the PCF857x expander device directly. Rather, the ISR must only indicate the occurrence of the interrupt which has to be handled asynchronously in the thread context.
The type defines the data structure that is part of each device data structure to indicate that an interrupt of the device occurred. Since there is only one interrupt source, only one interrupt can be pending per device. Thus, only one object of this type per device is required.
#include <pcf857x.h>
Data Fields | |
event_t | event |
inherited event data structure | |
void * | dev |
PCF857X device reference. | |
event_t pcf857x_irq_event_t::event |