36 #ifndef __OS_HAL_GPIO_H__
37 #define __OS_HAL_GPIO_H__
39 #include "mhal_gpio.h"
int mtk_os_hal_gpio_get_input(os_hal_gpio_pin pin, os_hal_gpio_data *pvalue)
This function is used to get input data of the target GPIO.
Define GPIO data of low.
Definition: mhal_gpio.h:266
int mtk_os_hal_gpio_set_direction(os_hal_gpio_pin pin, os_hal_gpio_direction dir)
This function is used to set the direction of the target GPIO.
Define GPIO input direction.
Definition: mhal_gpio.h:256
os_hal_gpio_direction
This enum defines GPIO direction.
Definition: os_hal_gpio.h:218
Define GPIO output direction.
Definition: os_hal_gpio.h:222
Define GPIO output direction.
Definition: mhal_gpio.h:258
os_hal_gpio_data
This enum defines input or output data of GPIO.
Definition: os_hal_gpio.h:228
int mtk_os_hal_gpio_get_output(os_hal_gpio_pin pin, os_hal_gpio_data *pvalue)
This function is used to get output data of the target GPIO.
Define GPIO data of high.
Definition: os_hal_gpio.h:232
int mtk_os_hal_gpio_set_pullen_pullsel(os_hal_gpio_pin pin, bool enable, bool isup)
This function is used to set the target GPIO to pull-up/pull-down state.
GPIO pin number is 0.
Definition: os_hal_gpio.h:118
Define GPIO data of high.
Definition: mhal_gpio.h:268
Define GPIO data of low.
Definition: os_hal_gpio.h:230
int mtk_os_hal_gpio_set_output(os_hal_gpio_pin pin, os_hal_gpio_data out_val)
This function is used to set output data of the target GPIO.
int mtk_os_hal_gpio_get_direction(os_hal_gpio_pin pin, os_hal_gpio_direction *pvalue)
This function is used to get the direction of the target GPIO.
GPIO pin maximum number(invalid)
Definition: os_hal_gpio.h:213
os_hal_gpio_pin
This enum defines the GPIO port.
Definition: os_hal_gpio.h:116
Define GPIO input direction.
Definition: os_hal_gpio.h:220