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

Change information for one GP pin. More...

#include <mcp2221_gpio_poll.h>

Public Attributes

int old_value
 Previous sampled state. More...
 
int new_value
 Current sampled state. More...
 
int changed
 Nonzero when old_value and new_value differ. More...
 

Detailed Description

Change information for one GP pin.

Definition at line 19 of file mcp2221_gpio_poll.h.

Member Data Documentation

◆ changed

int mcp2221_gpio_change_t::changed

Nonzero when old_value and new_value differ.

Definition at line 37 of file mcp2221_gpio_poll.h.

◆ new_value

int mcp2221_gpio_change_t::new_value

Current sampled state.

A value of -1 means the pin is not configured as GPIO; otherwise the value is 0 or 1.

Definition at line 34 of file mcp2221_gpio_poll.h.

◆ old_value

int mcp2221_gpio_change_t::old_value

Previous sampled state.

A value of -1 means the pin was not configured as GPIO; otherwise the value is 0 or 1.

Definition at line 26 of file mcp2221_gpio_poll.h.


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