libeasymcp2221 2.0.3
Public Attributes | List of all members
mcp2221_gpio_event_t Struct Reference

One GPIO edge event produced by mcp2221_gpio_poll_events(). More...

#include <mcp2221_gpio_poll.h>

Public Attributes

char id [12]
 Null-terminated event identifier. More...
 
uint8_t gpio
 GP pin number from 0 through 3. More...
 
mcp2221_gpio_event_type_t type
 Detected edge type. More...
 
double time
 Wall-clock time of the current poll, in seconds. More...
 
double last_time
 Wall-clock time of the previous successful GPIO poll. More...
 

Detailed Description

One GPIO edge event produced by mcp2221_gpio_poll_events().

Definition at line 88 of file mcp2221_gpio_poll.h.

Member Data Documentation

◆ gpio

uint8_t mcp2221_gpio_event_t::gpio

GP pin number from 0 through 3.

Definition at line 98 of file mcp2221_gpio_poll.h.

◆ id

char mcp2221_gpio_event_t::id[12]

Null-terminated event identifier.

The current implementation formats identifiers as "GPIOx_RISE" or "GPIOx_FALL".

Definition at line 95 of file mcp2221_gpio_poll.h.

◆ last_time

double mcp2221_gpio_event_t::last_time

Wall-clock time of the previous successful GPIO poll.

Definition at line 107 of file mcp2221_gpio_poll.h.

◆ time

double mcp2221_gpio_event_t::time

Wall-clock time of the current poll, in seconds.

Definition at line 104 of file mcp2221_gpio_poll.h.

◆ type

mcp2221_gpio_event_type_t mcp2221_gpio_event_t::type

Detected edge type.

Definition at line 101 of file mcp2221_gpio_poll.h.


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