PHiLIP
basic_gpio_t Struct Reference

Simplified GPIO for periph GPIO control. More...

#include <PHiLIP_typedef.h>

Data Fields

uint8_t io_type: 2
 
uint8_t pull: 2
 
uint8_t set_level: 1
 
uint8_t level: 1
 
uint8_t res: 2
 

Detailed Description

Simplified GPIO for periph GPIO control.

Field Documentation

uint8_t basic_gpio_t::io_type

0:high impedance input - 1:push pull output - 2:open drain output

uint8_t basic_gpio_t::level

Current value of gpio - 0:low - 1:high

uint8_t basic_gpio_t::pull

pull of the resistor - 0:none - 1:pullup - 2:pulldown

uint8_t basic_gpio_t::res

Reserved bits

uint8_t basic_gpio_t::set_level

If output sets gpio level - 0:low - 1:high


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