Port Configuration

Functions

__STATIC_INLINE void ll_msio_set_pin_direction (uint32_t pin_mask, uint32_t direction)
 Set several MSIO pins to input/output direction. More...
 
__STATIC_INLINE uint32_t ll_msio_get_pin_direction (uint32_t pin)
 Return gpio direction for a MSIO pin. More...
 
__STATIC_INLINE void ll_msio_set_pin_mode (uint32_t pin_mask, uint32_t mode)
 Set several MSIO pins to analog/digital mode. More...
 
__STATIC_INLINE uint32_t ll_msio_get_pin_mode (uint32_t pin)
 Return gpio mode for a MSIO pin. More...
 
__STATIC_INLINE void ll_msio_set_pin_pull (uint32_t pin_mask, uint32_t pull)
 Configure gpio pull-up or pull-down for a dedicated MSIO pin. More...
 
__STATIC_INLINE uint32_t ll_msio_get_pin_pull (uint32_t pin)
 Return gpio pull-up or pull-down for a dedicated MSIO pin. More...
 
__STATIC_INLINE void ll_msio_set_pin_mux (uint32_t pin, uint32_t mux)
 Configure gpio pinmux number of a dedicated pin from 0 to 4 for a dedicated port. More...
 
__STATIC_INLINE uint32_t ll_msio_get_pin_mux (uint32_t pin)
 Return gpio alternate function of a dedicated pin from 0 to 4 for a dedicated port. More...
 

Detailed Description

Function Documentation

◆ ll_msio_get_pin_direction()

__STATIC_INLINE uint32_t ll_msio_get_pin_direction ( uint32_t  pin)

Return gpio direction for a MSIO pin.

Note
I/O direction can be Input direction, General purpose output.
Warning: only one pin can be passed as parameter.
Register BitsName
MSIO_PAD_CFG_0 OE_N
MSIO_PAD_CFG_0 IE_N
Parameters
pinThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

◆ ll_msio_get_pin_mode()

__STATIC_INLINE uint32_t ll_msio_get_pin_mode ( uint32_t  pin)

Return gpio mode for a MSIO pin.

Note
I/O mode can be analog or digital.
Warning: only one pin can be passed as parameter.
Register BitsName
MSIO_PAD_CFG_1 AE_N
Parameters
pinThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

◆ ll_msio_get_pin_mux()

__STATIC_INLINE uint32_t ll_msio_get_pin_mux ( uint32_t  pin)

Return gpio alternate function of a dedicated pin from 0 to 4 for a dedicated port.

Register BitsName
MSIO_PAD_MUX_CTL CTL_00_04
MSIO_PAD_CFG_1 MCU_OVR
Parameters
pinThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

◆ ll_msio_get_pin_pull()

__STATIC_INLINE uint32_t ll_msio_get_pin_pull ( uint32_t  pin)

Return gpio pull-up or pull-down for a dedicated MSIO pin.

Note
Warning: only one pin can be passed as parameter.
Register BitsName
MSIO_PAD_CFG_0 RE_N
MSIO_PAD_CFG_1 RTYPE
Parameters
pinThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

◆ ll_msio_set_pin_direction()

__STATIC_INLINE void ll_msio_set_pin_direction ( uint32_t  pin_mask,
uint32_t  direction 
)

Set several MSIO pins to input/output direction.

Register BitsName
MSIO_PAD_CFG_0 OE_N
MSIO_PAD_CFG_0 IE_N
Parameters
pin_maskThis parameter can be a combination of the following values:
directionThis parameter can be one of the following values:
Return values
None

◆ ll_msio_set_pin_mode()

__STATIC_INLINE void ll_msio_set_pin_mode ( uint32_t  pin_mask,
uint32_t  mode 
)

Set several MSIO pins to analog/digital mode.

Register BitsName
MSIO_PAD_CFG_1 AE_N
Parameters
pin_maskThis parameter can be a combination of the following values:
modeThis parameter can be one of the following values:
Return values
None

◆ ll_msio_set_pin_mux()

__STATIC_INLINE void ll_msio_set_pin_mux ( uint32_t  pin,
uint32_t  mux 
)

Configure gpio pinmux number of a dedicated pin from 0 to 4 for a dedicated port.

Note
Possible values are from AF0 to AF7 depending on target.
Warning: only one pin can be passed as parameter.
Register BitsName
MSIO_PAD_MUX_CTL CTL_00_04
MSIO_PAD_CFG_1 MCU_OVR
Parameters
pinThis parameter can be one of the following values:
muxThis parameter can be one of the following values:
Return values
None

◆ ll_msio_set_pin_pull()

__STATIC_INLINE void ll_msio_set_pin_pull ( uint32_t  pin_mask,
uint32_t  pull 
)

Configure gpio pull-up or pull-down for a dedicated MSIO pin.

Register BitsName
MSIO_PAD_CFG_0 RE_N
MSIO_PAD_CFG_1 RTYPE
Parameters
pin_maskThis parameter can be a combination of the following values:
pullThis parameter can be one of the following values:
Return values
None