18#ifndef __VSF_HAL_DISTBUS_GPIO_H__
19#define __VSF_HAL_DISTBUS_GPIO_H__
25#if VSF_HAL_USE_GPIO == ENABLED && VSF_HAL_DISTBUS_USE_GPIO == ENABLED
27#if defined(__VSF_HAL_DISTBUS_GPIO_CLASS_IMPLEMENT)
28# define __VSF_CLASS_IMPLEMENT__
29#elif defined(__VSF_HAL_DISTBUS_GPIO_CLASS_INHERIT__)
30# define __VSF_CLASS_INHERIT__
41#ifndef VSF_HAL_DISTBUS_GPIO_CFG_MULTI_CLASS
42# define VSF_HAL_DISTBUS_GPIO_CFG_MULTI_CLASS VSF_GPIO_CFG_MULTI_CLASS
48#if defined(__VSF_HAL_DISTBUS_GPIO_CLASS_IMPLEMENT) || defined(__VSF_HAL_DISTBUS_GPIO_CLASS_INHERIT__)
51 VSF_HAL_DISTBUS_GPIO_CMD_CONFIG_PIN = 0,
52 VSF_HAL_DISTBUS_GPIO_CMD_SET_DIRECTION,
53 VSF_HAL_DISTBUS_GPIO_CMD_WRITE,
54 VSF_HAL_DISTBUS_GPIO_CMD_SET,
55 VSF_HAL_DISTBUS_GPIO_CMD_CLEAR,
56 VSF_HAL_DISTBUS_GPIO_CMD_TOGGLE,
57 VSF_HAL_DISTBUS_GPIO_CMD_OUTPUT_AND_SET,
58 VSF_HAL_DISTBUS_GPIO_CMD_OUTPUT_AND_CLEAR,
61 VSF_HAL_DISTBUS_GPIO_CMD_SYNC,
63 VSF_HAL_DISTBUS_GPIO_CMD_ADDR_RANGE,
66typedef enum vsf_hal_distbus_gpio_mode_t {
68 VSF_HAL_DISTBUS_GPIO_MODE_DUMMY,
69} vsf_hal_distbus_gpio_mode_t;
70typedef struct vsf_hal_distbus_gpio_port_config_pins_t {
76typedef struct vsf_hal_distbus_gpio_set_direction_t {
81typedef struct vsf_hal_distbus_gpio_write_t {
86typedef struct vsf_hal_distbus_gpio_pin_mask_t {
90typedef struct vsf_hal_distbus_gpio_sync_t {
107#if VSF_HAL_DISTBUS_GPIO_CFG_MULTI_CLASS == ENABLED
127#if defined(__VSF_HAL_DISTBUS_GPIO_CLASS_IMPLEMENT) || defined(__VSF_HAL_DISTBUS_GPIO_CLASS_INHERIT__)
134#define VSF_GPIO_CFG_DEC_PREFIX vsf_hal_distbus
135#define VSF_GPIO_CFG_DEC_UPCASE_PREFIX VSF_HAL_DISTBUS
142#undef __VSF_HAL_DISTBUS_GPIO_CLASS_IMPLEMENT
143#undef __VSF_HAL_DISTBUS_GPIO_CLASS_INHERIT__
vsf_gpio_mode_t
Definition gpio.h:31
Definition vsf_distbus.h:86
Definition vsf_distbus.h:119
Definition vsf_hal_distbus_gpio.h:106
unsigned short uint16_t
Definition lvgl.h:41
unsigned int uint32_t
Definition lvgl.h:43
unsigned char uint8_t
Definition lvgl.h:40
#define vsf_class(__name)
Definition ooc_class.h:48
Definition vsf_template_gpio.h:491
Definition vsf_hal_distbus_gpio.h:95
vsf_gpio_pin_mask_t direction
Definition vsf_hal_distbus_gpio.h:102
uint8_t support_config_pin
Definition vsf_hal_distbus_gpio.h:96
vsf_gpio_pin_mask_t pin_mask
Definition vsf_hal_distbus_gpio.h:100
uint8_t support_output_and_set
Definition vsf_hal_distbus_gpio.h:97
uint8_t support_output_and_clear
Definition vsf_hal_distbus_gpio.h:98
vsf_gpio_pin_mask_t value
Definition vsf_hal_distbus_gpio.h:103
uint8_t pin_count
Definition vsf_hal_distbus_gpio.h:99
vk_av_control_value_t value
Definition vsf_audio.h:171
uint32_t vsf_generic_io_feature_to_hal_distbus_io_feature(vsf_gpio_mode_t generic_io_feature)
Definition vsf_hal_distbus_gpio.c:69
vsf_gpio_mode_t vsf_hal_distbus_io_feature_to_generic_io_feature(uint32_t hal_distbus_io_feature)
Definition vsf_hal_distbus_gpio.c:65
uint32_t vsf_hal_distbus_gpio_register_service(vsf_distbus_t *distbus, vsf_hal_distbus_gpio_t *gpio, void *info, uint32_t infolen)
Definition vsf_hal_distbus_gpio.c:98
struct vk_romfs_header_t VSF_CAL_PACKED
#define vsf_gpio_pin_mask_t
Definition vsf_template_gpio.h:207