#define | XWDS_GPIO_PIN(n) (1U << (n)) |
|
#define | XWDS_GPIO_PIN_MASK(n) (XWDS_GPIO_PIN(n) - 1U) |
|
enum | xwds_gpio_port_em {
XWDS_GPIO_PORT_A = 0
, XWDS_GPIO_PORT_B
, XWDS_GPIO_PORT_C
, XWDS_GPIO_PORT_D
,
XWDS_GPIO_PORT_E
, XWDS_GPIO_PORT_F
, XWDS_GPIO_PORT_G
, XWDS_GPIO_PORT_H
,
XWDS_GPIO_PORT_I
, XWDS_GPIO_PORT_J
, XWDS_GPIO_PORT_K
, XWDS_GPIO_PORT_L
,
XWDS_GPIO_PORT_M
, XWDS_GPIO_PORT_N
, XWDS_GPIO_PORT_O
, XWDS_GPIO_PORT_P
,
XWDS_GPIO_PORT_Q
, XWDS_GPIO_PORT_R
, XWDS_GPIO_PORT_S
, XWDS_GPIO_PORT_T
,
XWDS_GPIO_PORT_U
, XWDS_GPIO_PORT_V
, XWDS_GPIO_PORT_W
, XWDS_GPIO_PORT_X
,
XWDS_GPIO_PORT_Y
, XWDS_GPIO_PORT_Z
} |
| XWDS GPIO Port 枚举 更多...
|
|
enum | xwds_gpio_pin_em {
XWDS_GPIO_PIN_0 = (1U << ( 0 ))
, XWDS_GPIO_PIN_1 = (1U << ( 1 ))
, XWDS_GPIO_PIN_2 = (1U << ( 2 ))
, XWDS_GPIO_PIN_3 = (1U << ( 3 ))
,
XWDS_GPIO_PIN_4 = (1U << ( 4 ))
, XWDS_GPIO_PIN_5 = (1U << ( 5 ))
, XWDS_GPIO_PIN_6 = (1U << ( 6 ))
, XWDS_GPIO_PIN_7 = (1U << ( 7 ))
,
XWDS_GPIO_PIN_8 = (1U << ( 8 ))
, XWDS_GPIO_PIN_9 = (1U << ( 9 ))
, XWDS_GPIO_PIN_10 = (1U << ( 10 ))
, XWDS_GPIO_PIN_11 = (1U << ( 11 ))
,
XWDS_GPIO_PIN_12 = (1U << ( 12 ))
, XWDS_GPIO_PIN_13 = (1U << ( 13 ))
, XWDS_GPIO_PIN_14 = (1U << ( 14 ))
, XWDS_GPIO_PIN_15 = (1U << ( 15 ))
,
XWDS_GPIO_PIN_16 = (1U << ( 16 ))
, XWDS_GPIO_PIN_17 = (1U << ( 17 ))
, XWDS_GPIO_PIN_18 = (1U << ( 18 ))
, XWDS_GPIO_PIN_19 = (1U << ( 19 ))
,
XWDS_GPIO_PIN_20 = (1U << ( 20 ))
, XWDS_GPIO_PIN_21 = (1U << ( 21 ))
, XWDS_GPIO_PIN_22 = (1U << ( 22 ))
, XWDS_GPIO_PIN_23 = (1U << ( 23 ))
,
XWDS_GPIO_PIN_24 = (1U << ( 24 ))
, XWDS_GPIO_PIN_25 = (1U << ( 25 ))
, XWDS_GPIO_PIN_26 = (1U << ( 26 ))
, XWDS_GPIO_PIN_27 = (1U << ( 27 ))
,
XWDS_GPIO_PIN_28 = (1U << ( 28 ))
, XWDS_GPIO_PIN_29 = (1U << ( 29 ))
, XWDS_GPIO_PIN_30 = (1U << ( 30 ))
, XWDS_GPIO_PIN_31 = (1U << ( 31 ))
} |
| XWDS GPIO Pin 枚举 更多...
|
|
xwer_t | xwds_gpio_req (struct xwds_soc *soc, xwid_t port, xwsq_t pinmask) |
| XWDS API:申请SOC的GPIO
|
|
xwer_t | xwds_gpio_rls (struct xwds_soc *soc, xwid_t port, xwsq_t pinmask) |
| XWDS API:释放SOC的GPIO
|
|
xwer_t | xwds_gpio_cfg (struct xwds_soc *soc, xwid_t port, xwsq_t pinmask, void *cfg) |
| XWDS API:配置SOC的GPIO
|
|
xwer_t | xwds_gpio_set (struct xwds_soc *soc, xwid_t port, xwsq_t pinmask) |
| XWDS API:将SOC的GPIO设置为高电平
|
|
xwer_t | xwds_gpio_reset (struct xwds_soc *soc, xwid_t port, xwsq_t pinmask) |
| XWDS API:将SOC的GPIO设置为低电平
|
|
xwer_t | xwds_gpio_toggle (struct xwds_soc *soc, xwid_t port, xwsq_t pinmask) |
| XWDS API:翻转SOC的GPIO电平
|
|
xwer_t | xwds_gpio_output (struct xwds_soc *soc, xwid_t port, xwsq_t pinmask, xwsq_t out) |
| XWDS API:并行输出多个SOC的GPIO
|
|
xwer_t | xwds_gpio_input (struct xwds_soc *soc, xwid_t port, xwsq_t pinmask, xwsq_t *inbuf) |
| XWDS API:并行读取多个SOC的GPIO
|
|