Go to the documentation of this file.
39 #ifndef ADUCM3029_GPIO_H_
40 #define ADUCM3029_GPIO_H_
44 #define PIN(nb) (1u << ((nb) & 0x0F))
46 #define PORT(nb) (((nb) & 0xF0) >> 4)
53 #endif // ADUCM3029_GPIO_H_
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:85
#define NO_OS_GPIO_OUT
Definition: no_os_gpio.h:53
const struct no_os_gpio_platform_ops aducm_gpio_ops
ADuCM3029 specific GPIO platform ops structure.
Definition: aducm3029_gpio.c:290
@ NO_OS_GPIO_HIGH_Z
Definition: no_os_gpio.h:125
@ NO_OS_GPIO_HIGH
Definition: no_os_gpio.h:123
int32_t number
Definition: no_os_gpio.h:89
int32_t aducm3029_gpio_direction_output(struct no_os_gpio_desc *desc, uint8_t value)
Enable the output direction of the specified GPIO and set the GPIO to the specified value.
Definition: aducm3029_gpio.c:160
int32_t aducm3029_gpio_remove(struct no_os_gpio_desc *desc)
Free the resources allocated by no_os_gpio_get().
Definition: aducm3029_gpio.c:121
#define NO_OS_GPIO_IN
Definition: no_os_gpio.h:54
int32_t aducm3029_gpio_get_direction(struct no_os_gpio_desc *desc, uint8_t *direction)
Get the direction of the specified GPIO.
Definition: aducm3029_gpio.c:192
@ NO_OS_GPIO_LOW
Definition: no_os_gpio.h:121
int32_t aducm3029_gpio_direction_input(struct no_os_gpio_desc *desc)
Enable the input direction of the specified GPIO.
Definition: aducm3029_gpio.c:141
#define PORT(nb)
Definition: aducm3029_gpio.h:46
int32_t aducm3029_gpio_get(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Obtain the GPIO descriptor from the number specified in param.
Definition: aducm3029_gpio.c:69
int32_t aducm3029_gpio_set_value(struct no_os_gpio_desc *desc, uint8_t value)
Set the value of the specified GPIO.
Definition: aducm3029_gpio.c:219
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:102
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:55
const struct no_os_gpio_platform_ops aducm_gpio_ops
ADuCM3029 platform specific GPIO platform ops structure.
Definition: aducm3029_gpio.c:290
#define NULL
Definition: wrapper.h:64
int32_t aducm3029_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: aducm3029_gpio.c:105
Header file of GPIO Interface.
int32_t aducm3029_gpio_get_value(struct no_os_gpio_desc *desc, uint8_t *value)
Get the value of the specified GPIO.
Definition: aducm3029_gpio.c:259
@ PIN
Definition: t_ad9528.h:162
int32_t number
Definition: no_os_gpio.h:106