8 #ifndef HPM_GPIOM_DRV_H
9 #define HPM_GPIOM_DRV_H
11 #include "hpm_gpiom_regs.h"
12 #include "hpm_gpiom_soc_drv.h"
#define GPIOM_ASSIGN_PIN_LOCK_MASK
Definition: hpm_gpiom_regs.h:27
#define GPIOM_ASSIGN_PIN_SELECT_SHIFT
Definition: hpm_gpiom_regs.h:52
#define GPIOM_ASSIGN_PIN_SELECT_SET(x)
Definition: hpm_gpiom_regs.h:53
#define GPIOM_ASSIGN_PIN_HIDE_SHIFT
Definition: hpm_gpiom_regs.h:40
#define GPIOM_ASSIGN_PIN_HIDE_SET(x)
Definition: hpm_gpiom_regs.h:41
#define GPIOM_ASSIGN_PIN_SELECT_MASK
Definition: hpm_gpiom_regs.h:51
static void gpiom_disable_pin_visibility(GPIOM_Type *ptr, uint8_t gpio_index, uint8_t pin_index, gpiom_gpio_t gpio)
disable pin visibility for specified module
Definition: hpm_gpiom_drv.h:112
enum gpiom_pin_visibility gpiom_pin_visibility_t
static void gpiom_enable_pin_visibility(GPIOM_Type *ptr, uint8_t gpio_index, uint8_t pin_index, gpiom_gpio_t gpio)
enable pin visibility for specified module
Definition: hpm_gpiom_drv.h:95
static void gpiom_set_pin_controller(GPIOM_Type *ptr, uint8_t gpio_index, uint8_t pin_index, gpiom_gpio_t gpio)
set pin's controller
Definition: hpm_gpiom_drv.h:57
static gpiom_gpio_t gpiom_get_pin_controller(GPIOM_Type *ptr, uint8_t gpio_index, uint8_t pin_index)
Get pin's controller.
Definition: hpm_gpiom_drv.h:41
static bool gpiom_pin_is_locked(GPIOM_Type *ptr, uint8_t gpio_index, uint8_t pin_index)
Check if pin management is locked.
Definition: hpm_gpiom_drv.h:132
static void gpiom_lock_pin(GPIOM_Type *ptr, uint8_t gpio_index, uint8_t pin_index)
lock pin management
Definition: hpm_gpiom_drv.h:147
enum gpiom_gpio gpiom_gpio_t
gpiom_pin_visibility
Definition: hpm_gpiom_drv.h:23
static bool gpiom_check_pin_visibility(GPIOM_Type *ptr, uint8_t gpio_index, uint8_t pin_index, gpiom_gpio_t gpio)
Check if pin is visibility for specified module.
Definition: hpm_gpiom_drv.h:78
@ gpiom_pin_invisible
Definition: hpm_gpiom_drv.h:25
@ gpiom_pin_visible
Definition: hpm_gpiom_drv.h:24
Definition: hpm_gpiom_regs.h:12
struct GPIOM_Type::@302 ASSIGN[15]
__RW uint32_t PIN[32]
Definition: hpm_gpiom_regs.h:14