Choco OS  V.0.16.9.0
Join to the chocolate world
oC_GPIO_Config_t Struct Reference

GPIO driver configuration structure. More...

#include <oc_gpio.h>

Data Fields

oC_Pins_t Pins
 
oC_GPIO_Protection_t Protection
 
oC_GPIO_Speed_t Speed
 
oC_GPIO_Current_t Current
 
oC_GPIO_Mode_t Mode
 
oC_GPIO_Pull_t Pull
 
oC_GPIO_OutputCircuit_t OutputCircuit
 
oC_GPIO_IntTrigger_t InterruptTrigger
 

Detailed Description

This is the configuration structure for the GPIO driver. You should fill all fields or set to 0 all that are not required. To use this structure call the oC_GPIO_Configure function

Note
When the structure is defined as constant, the unused fields must not be filled, cause there will be set to 0 as default.

Definition at line 190 of file oc_gpio.h.

Field Documentation

Maximum current for input/output pins

Definition at line 195 of file oc_gpio.h.

oC_GPIO_IntTrigger_t InterruptTrigger

Active event of pins interrupt

Definition at line 199 of file oc_gpio.h.

Mode of pins work - input/output/alternative

Definition at line 196 of file oc_gpio.h.

oC_GPIO_OutputCircuit_t OutputCircuit

For output pins - selection between open drain and push-pull modes

Definition at line 198 of file oc_gpio.h.

oC_Pins_t Pins

List of pins from single port, that should be configured. More pins can be joined by '|' operator

Definition at line 192 of file oc_gpio.h.

Take off protection if exists (for special pins)

Definition at line 193 of file oc_gpio.h.

For input pins - if it should be pull up or pull down by default

Definition at line 197 of file oc_gpio.h.

Maximum speed of output pins toggling

Definition at line 194 of file oc_gpio.h.


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