Functions | |
__STATIC_INLINE void | ll_gpio_set_pin_mode (gpio_regs_t *GPIOx, uint32_t pin_mask, uint32_t mode) |
Set several pins to input/output mode on dedicated port. More... | |
__STATIC_INLINE uint32_t | ll_gpio_get_pin_mode (gpio_regs_t *GPIOx, uint32_t pin) |
Return gpio mode for a dedicated pin on dedicated port. More... | |
__STATIC_INLINE void | ll_gpio_set_pin_pull (gpio_regs_t *GPIOx, uint32_t pin_mask, uint32_t pull) |
Configure gpio pull-up or pull-down for a dedicated pin on a dedicated port. More... | |
__STATIC_INLINE uint32_t | ll_gpio_get_pin_pull (gpio_regs_t *GPIOx, uint32_t pin) |
Return gpio pull-up or pull-down for a dedicated pin on a dedicated port. More... | |
__STATIC_INLINE void | ll_gpio_set_mux_pin_0_7 (gpio_regs_t *GPIOx, uint32_t pin, uint32_t mux) |
Configure gpio pinmux number of a dedicated pin from 0 to 7 for a dedicated port. More... | |
__STATIC_INLINE uint32_t | ll_gpio_get_mux_pin_0_7 (gpio_regs_t *GPIOx, uint32_t pin) |
Return gpio alternate function of a dedicated pin from 0 to 7 for a dedicated port. More... | |
__STATIC_INLINE void | ll_gpio_set_mux_pin_8_15 (gpio_regs_t *GPIOx, uint32_t pin, uint32_t mux) |
Configure gpio alternate function of a dedicated pin from 8 to 15 for a dedicated port. More... | |
__STATIC_INLINE uint32_t | ll_gpio_get_mux_pin_8_15 (gpio_regs_t *GPIOx, uint32_t pin) |
Return gpio alternate function of a dedicated pin from 8 to 15 for a dedicated port. More... | |
__STATIC_INLINE uint32_t ll_gpio_get_mux_pin_0_7 | ( | gpio_regs_t * | GPIOx, |
uint32_t | pin | ||
) |
Return gpio alternate function of a dedicated pin from 0 to 7 for a dedicated port.
Register | BitsName |
---|---|
DPAD_MUX_CTRL0_7 | CTRL0_7 |
DPAD_MUX_CTRL16_23 | CTRL16_23 |
GPIOx | GPIO Port |
pin | This parameter can be one of the following values: |
Returned | value can be one of the following values: |
__STATIC_INLINE uint32_t ll_gpio_get_mux_pin_8_15 | ( | gpio_regs_t * | GPIOx, |
uint32_t | pin | ||
) |
Return gpio alternate function of a dedicated pin from 8 to 15 for a dedicated port.
Register | BitsName |
---|---|
DPAD_MUX_CTRL8_15 | CTRL8_15 |
DPAD_MUX_CTRL24_31 | CTRL24_31 |
GPIOx | GPIO Port |
pin | This parameter can be one of the following values: |
Returned | value can be one of the following values: |
__STATIC_INLINE uint32_t ll_gpio_get_pin_mode | ( | gpio_regs_t * | GPIOx, |
uint32_t | pin | ||
) |
Return gpio mode for a dedicated pin on dedicated port.
Register | BitsName |
---|---|
OUTENSET | OUTENSET |
GPIOx | GPIO Port |
pin | This parameter can be one of the following values: |
Returned | value can be one of the following values: |
__STATIC_INLINE uint32_t ll_gpio_get_pin_pull | ( | gpio_regs_t * | GPIOx, |
uint32_t | pin | ||
) |
Return gpio pull-up or pull-down for a dedicated pin on a dedicated port.
Register | BitsName |
---|---|
DPAD_RE_N_BUS | RE_N |
DPAD_RTYP_BUS | RTYP |
GPIOx | GPIO Port |
pin | This parameter can be one of the following values: |
Returned | value can be one of the following values: |
__STATIC_INLINE void ll_gpio_set_mux_pin_0_7 | ( | gpio_regs_t * | GPIOx, |
uint32_t | pin, | ||
uint32_t | mux | ||
) |
Configure gpio pinmux number of a dedicated pin from 0 to 7 for a dedicated port.
Register | BitsName |
---|---|
DPAD_MUX_CTRL0_7 | CTRL0_7 |
DPAD_MUX_CTRL16_23 | CTRL16_23 |
GPIOx | GPIO Port |
pin | This parameter can be one of the following values: |
mux | This parameter can be one of the following values: |
None |
__STATIC_INLINE void ll_gpio_set_mux_pin_8_15 | ( | gpio_regs_t * | GPIOx, |
uint32_t | pin, | ||
uint32_t | mux | ||
) |
Configure gpio alternate function of a dedicated pin from 8 to 15 for a dedicated port.
Register | BitsName |
---|---|
DPAD_MUX_CTRL8_15 | CTRL8_15 |
DPAD_MUX_CTRL24_31 | CTRL24_31 |
GPIOx | GPIO Port |
pin | This parameter can be one of the following values: |
mux | This parameter can be one of the following values: |
None |
__STATIC_INLINE void ll_gpio_set_pin_mode | ( | gpio_regs_t * | GPIOx, |
uint32_t | pin_mask, | ||
uint32_t | mode | ||
) |
Set several pins to input/output mode on dedicated port.
Register | BitsName |
---|---|
OUTENSET | OUTENSET |
OUTENCLR | OUTENCLR |
GPIOx | GPIO Port |
pin_mask | This parameter can be a combination of the following values: |
mode | This parameter can be one of the following values: |
None |
__STATIC_INLINE void ll_gpio_set_pin_pull | ( | gpio_regs_t * | GPIOx, |
uint32_t | pin_mask, | ||
uint32_t | pull | ||
) |
Configure gpio pull-up or pull-down for a dedicated pin on a dedicated port.
Register | BitsName |
---|---|
DPAD_RE_N_BUS | RE_N |
DPAD_RTYP_BUS | RTYP |
GPIOx | GPIO Port |
pin_mask | This parameter can be a combination of the following values: |
pull | This parameter can be one of the following values: |
None |