Loading...
Searching...
No Matches

IRQ event type. More...

Detailed Description

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.

Definition at line 404 of file pcf857x.h.

#include <pcf857x.h>

Data Fields

event_t event
 inherited event data structure
 
void * dev
 PCF857X device reference.
 

Field Documentation

◆ dev

void* pcf857x_irq_event_t::dev

PCF857X device reference.

Definition at line 406 of file pcf857x.h.

◆ event

event_t pcf857x_irq_event_t::event

inherited event data structure

Definition at line 405 of file pcf857x.h.


The documentation for this struct was generated from the following file: