Go to the documentation of this file.
34 #ifndef _NO_OS_GPIO_H_
35 #define _NO_OS_GPIO_H_
47 #define NO_OS_GPIO_OUT 0x01
48 #define NO_OS_GPIO_IN 0x00
182 #endif // _NO_OS_GPIO_H_
@ NO_OS_PULL_DOWN
Definition: no_os_gpio.h:70
void * extra
Definition: no_os_gpio.h:106
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
enum no_os_gpio_pull_up pull
Definition: no_os_gpio.h:85
@ NO_OS_GPIO_HIGH_Z
Definition: no_os_gpio.h:119
int32_t no_os_gpio_get_value(struct no_os_gpio_desc *desc, uint8_t *value)
Get the value of the specified GPIO.
Definition: no_os_gpio.c:221
int32_t port
Definition: no_os_gpio.h:81
@ NO_OS_PULL_UP_WEAK
Definition: no_os_gpio.h:71
@ NO_OS_GPIO_HIGH
Definition: no_os_gpio.h:117
int32_t number
Definition: no_os_gpio.h:83
@ NO_OS_PULL_DOWN_WEAK
Definition: no_os_gpio.h:72
int32_t no_os_gpio_direction_input(struct no_os_gpio_desc *desc)
Enable the input direction of the specified GPIO.
Definition: no_os_gpio.c:124
@ NO_OS_PULL_NONE
Definition: no_os_gpio.h:66
const struct no_os_gpio_platform_ops * platform_ops
Definition: no_os_gpio.h:87
@ NO_OS_GPIO_LOW
Definition: no_os_gpio.h:115
const struct no_os_gpio_platform_ops * platform_ops
Definition: no_os_gpio.h:104
int32_t no_os_gpio_remove(struct no_os_gpio_desc *desc)
Free the resources allocated by no_os_gpio_get().
Definition: no_os_gpio.c:104
int32_t port
Definition: no_os_gpio.h:98
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
int32_t no_os_gpio_get(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Obtain the GPIO decriptor.
Definition: no_os_gpio.c:49
no_os_gpio_pull_up
Enum that holds the possible pull up/ pull down resistor configuration.
Definition: no_os_gpio.h:65
int32_t no_os_gpio_get_direction(struct no_os_gpio_desc *desc, uint8_t *direction)
Get the direction of the specified GPIO.
Definition: no_os_gpio.c:172
no_os_gpio_values
Enum that holds the possible output states of a GPIO.
Definition: no_os_gpio.h:113
enum no_os_gpio_pull_up pull
Definition: no_os_gpio.h:102
int32_t no_os_gpio_set_value(struct no_os_gpio_desc *desc, uint8_t value)
Set the value of the specified GPIO.
Definition: no_os_gpio.c:197
@ NO_OS_PULL_UP
Definition: no_os_gpio.h:68
void * extra
Definition: no_os_gpio.h:89
int32_t no_os_gpio_direction_output(struct no_os_gpio_desc *desc, uint8_t value)
Enable the output direction of the specified GPIO.
Definition: no_os_gpio.c:147
int32_t number
Definition: no_os_gpio.h:100
int32_t no_os_gpio_get_optional(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Get the value of an optional GPIO.
Definition: no_os_gpio.c:75