VSF Documented
|
#include <vsf_template_gpio.h>
Data Fields | |
inherit(vsf_peripheral_capability_t) uint8_t is_async uint8_t | support_output_and_set: 1 |
To avoid bumps when converting from input to output. | |
uint8_t | support_output_and_clear: 1 |
uint8_t | support_interrupt: 1 |
supports external interrupts | |
uint8_t | pin_count |
vsf_gpio_pin_mask_t | pin_mask |
inherit (vsf_peripheral_capability_t) uint8_t is_async uint8_t vsf_gpio_capability_t::support_output_and_set |
To avoid bumps when converting from input to output.
Asynchronous GPIO they are only guaranteed to be sequential when operating the current port consecutively.
When they are used together with other ports, they are not guaranteed to be sequential for the operation of the pins of different ports.
uint8_t vsf_gpio_capability_t::support_output_and_clear |
uint8_t vsf_gpio_capability_t::support_interrupt |
supports external interrupts
uint8_t vsf_gpio_capability_t::pin_count |
total number of pins of hardware, even if some pins cannot be configured as GPIO. if some of the pins cannot be used as GPIO,the corresponding bit in pin_mask is 0, otherwise is 1.
vsf_gpio_pin_mask_t vsf_gpio_capability_t::pin_mask |
available pin mask may be: 0x000000FF (8 pins), 0x0000FFFF (16 pins), 0xFFFFFFFF (32 pins), 0xFFFFFFFE (31 pins, PIN0 is not available)