GPIO
Files | |
file | gpio.h |
GPIO interface. | |
Enumerations | |
enum | KGPIOMode { K_GPIO_INPUT = 0, K_GPIO_OUTPUT, K_GPIO_OUTPUT_OD, K_GPIO_ALT, K_GPIO_ALT_OD } |
enum | KGPIOPullup { K_GPIO_PULL_NONE = 0, K_GPIO_PULL_UP, K_GPIO_PULL_DOWN } |
Functions | |
void | k_gpio_init (int pin, KGPIOMode mode, KGPIOPullup pullup) |
unsigned int | k_gpio_read (int pin) |
void | k_gpio_write (int pin, unsigned int val) |
void | k_gpio_toggle (int pin) |
Enumeration Type Documentation
enum KGPIOMode |
enum KGPIOPullup |
Function Documentation
void k_gpio_init | ( | int | pin, |
KGPIOMode | mode, | ||
KGPIOPullup | pullup | ||
) |
unsigned int k_gpio_read | ( | int | pin | ) |
void k_gpio_toggle | ( | int | pin | ) |
void k_gpio_write | ( | int | pin, |
unsigned int | val | ||
) |