G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference

Functions

__STATIC_INLINE void DDL_GPIO_SetPinMode (GPIO_Type GPIOx, uint32_t Pin, uint32_t Mode)
 Configure gpio mode for a dedicated pin on a dedicated port.
__STATIC_INLINE uint32_t DDL_GPIO_GetPinMode (GPIO_Type GPIOx, uint32_t Pin)
 Return gpio mode for a dedicated pin on a dedicated port.
__STATIC_INLINE void DDL_GPIO_SetPinOutputType (GPIO_Type GPIOx, uint32_t PinMask, uint32_t OutputType)
 Configure gpio output type for several pins on dedicated port.
__STATIC_INLINE uint32_t DDL_GPIO_GetPinOutputType (GPIO_Type GPIOx, uint32_t Pin)
 Return gpio output type for several pins on dedicated port.
__STATIC_INLINE void DDL_GPIO_SetPinSpeed (GPIO_Type GPIOx, uint32_t Pin, uint32_t Speed)
 Configure gpio speed for a dedicated pin on a dedicated port.
__STATIC_INLINE uint32_t DDL_GPIO_GetPinSpeed (GPIO_Type GPIOx, uint32_t Pin)
 Return gpio speed for a dedicated pin on dedicated port.
__STATIC_INLINE void DDL_GPIO_SetPinPull (GPIO_Type GPIOx, uint32_t Pin, uint32_t Pull)
 Configure gpio pull-up or pull-down for a dedicated pin on a dedicated port.
__STATIC_INLINE uint32_t DDL_GPIO_GetPinPull (GPIO_Type GPIOx, uint32_t Pin)
 Return gpio pull-up or pull-down for a dedicated pin on a dedicated port.
__STATIC_INLINE void DDL_GPIO_SetAFPin (GPIO_Type GPIOx, uint32_t Pin, uint32_t Alternate)
 Configure gpio alternate function of a dedicated pin for a dedicated port.
__STATIC_INLINE uint32_t DDL_GPIO_GetAFPin (GPIO_Type GPIOx, uint32_t Pin)
 Return gpio alternate function of a dedicated pin for a dedicated port.
__STATIC_INLINE void DDL_GPIO_EnablePinFilter (GPIO_Type GPIOx, uint32_t Pin)
 Enable the wave filter for a certain pin of the specified GPIO port.
__STATIC_INLINE void DDL_GPIO_DisablePinFilter (GPIO_Type GPIOx, uint32_t Pin)
 Disable the wave filter for a certain pin of the specified GPIO port.
__STATIC_INLINE uint32_t DDL_GPIO_IsEnabledPinFilter (GPIO_Type GPIOx, uint32_t Pin)
 Check whether the wave filter for a certain pin is enabled or disabled.

Detailed Description

Function Documentation

◆ DDL_GPIO_DisablePinFilter()

__STATIC_INLINE void DDL_GPIO_DisablePinFilter ( GPIO_Type GPIOx,
uint32_t Pin )

Disable the wave filter for a certain pin of the specified GPIO port.

Note
This function clears the corresponding FLTEN bit in the GPIO_FILTERR register to disable the filtering feature for the selected pin.
Warning: only one pin can be passed as parameter.
Parameters
GPIOxGPIO port.
PinThis parameter can be one of the following values:
Return values
None

Definition at line 681 of file g32r4xx_ddl_gpio.h.

◆ DDL_GPIO_EnablePinFilter()

__STATIC_INLINE void DDL_GPIO_EnablePinFilter ( GPIO_Type GPIOx,
uint32_t Pin )

Enable the wave filter for a certain pin of the specified GPIO port.

Note
This function sets the corresponding FLTEN bit in the GPIO_FILTERR register to enable the filtering feature for the selected pin.
Warning: only one pin can be passed as parameter.
Parameters
GPIOxGPIO port.
PinThis parameter can be one of the following values:
Return values
None

Definition at line 650 of file g32r4xx_ddl_gpio.h.

◆ DDL_GPIO_GetAFPin()

__STATIC_INLINE uint32_t DDL_GPIO_GetAFPin ( GPIO_Type GPIOx,
uint32_t Pin )

Return gpio alternate function of a dedicated pin for a dedicated port.

Parameters
PinThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

Definition at line 618 of file g32r4xx_ddl_gpio.h.

◆ DDL_GPIO_GetPinMode()

__STATIC_INLINE uint32_t DDL_GPIO_GetPinMode ( GPIO_Type GPIOx,
uint32_t Pin )

Return gpio mode for a dedicated pin on a dedicated port.

Note
I/O mode can be Input mode, General purpose output, Alternate function mode or Analog.
Warning: only one pin can be passed as parameter.
Parameters
GPIOxGPIO port.
PinThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

Definition at line 343 of file g32r4xx_ddl_gpio.h.

◆ DDL_GPIO_GetPinOutputType()

__STATIC_INLINE uint32_t DDL_GPIO_GetPinOutputType ( GPIO_Type GPIOx,
uint32_t Pin )

Return gpio output type for several pins on dedicated port.

Note
Output type as to be set when gpio pin is in output or alternate modes. Possible type are Push-pull or Open-drain.
Warning: only one pin can be passed as parameter.
Parameters
GPIOxGPIO Port.
PinThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

Definition at line 412 of file g32r4xx_ddl_gpio.h.

◆ DDL_GPIO_GetPinPull()

__STATIC_INLINE uint32_t DDL_GPIO_GetPinPull ( GPIO_Type GPIOx,
uint32_t Pin )

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

Note
Warning: only one pin can be passed as parameter.
Parameters
GPIOxGPIO port.
PinThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

Definition at line 550 of file g32r4xx_ddl_gpio.h.

◆ DDL_GPIO_GetPinSpeed()

__STATIC_INLINE uint32_t DDL_GPIO_GetPinSpeed ( GPIO_Type GPIOx,
uint32_t Pin )

Return gpio speed for a dedicated pin on dedicated port.

Note
I/O speed can be Low, Medium, Fast or High speed.
Warning: only one pin can be passed as parameter.
Refer to datasheet for frequency specifications and the power supply and load conditions for each speed.
Parameters
GPIOxGPIO port.
PinThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:

Definition at line 484 of file g32r4xx_ddl_gpio.h.

◆ DDL_GPIO_IsEnabledPinFilter()

__STATIC_INLINE uint32_t DDL_GPIO_IsEnabledPinFilter ( GPIO_Type GPIOx,
uint32_t Pin )

Check whether the wave filter for a certain pin is enabled or disabled.

Note
This function reads the corresponding FLTEN bit in the GPIO_FILTERR register to determine the filtering status of the selected pin.
Warning: only one pin can be passed as parameter.
Parameters
GPIOxGPIO port.
PinThis parameter can be one of the following values:
Return values
Stateof bit (1 or 0).

Definition at line 712 of file g32r4xx_ddl_gpio.h.

◆ DDL_GPIO_SetAFPin()

__STATIC_INLINE void DDL_GPIO_SetAFPin ( GPIO_Type GPIOx,
uint32_t Pin,
uint32_t Alternate )

Configure gpio alternate function of a dedicated pin for a dedicated port.

Note
Possible values are from AF0 to AF15 depending on target.
Warning: only one pin can be passed as parameter.
Parameters
GPIOxGPIO port.
PinThis parameter can be one of the following values:
AlternateThis parameter can be one of the following values:
Return values
None

Definition at line 586 of file g32r4xx_ddl_gpio.h.

◆ DDL_GPIO_SetPinMode()

__STATIC_INLINE void DDL_GPIO_SetPinMode ( GPIO_Type GPIOx,
uint32_t Pin,
uint32_t Mode )

Configure gpio mode for a dedicated pin on a dedicated port.

Note
I/O mode can be Input mode, General purpose output, Alternate function mode or Analog.
Warning: only one pin can be passed as parameter.
Parameters
GPIOxGPIO Port.
PinThis parameter can be one of the following values:
ModeThis parameter can be one of the following values:
Return values
None

Definition at line 309 of file g32r4xx_ddl_gpio.h.

◆ DDL_GPIO_SetPinOutputType()

__STATIC_INLINE void DDL_GPIO_SetPinOutputType ( GPIO_Type GPIOx,
uint32_t PinMask,
uint32_t OutputType )

Configure gpio output type for several pins on dedicated port.

Note
Output type as to be set when gpio pin is in output or alternate modes. Possible type are Push-pull or Open-drain.
Parameters
GPIOxGPIO port.
PinMaskThis parameter can be a combination of the following values:
OutputTypeThis parameter can be one of the following values:
Return values
None

Definition at line 378 of file g32r4xx_ddl_gpio.h.

◆ DDL_GPIO_SetPinPull()

__STATIC_INLINE void DDL_GPIO_SetPinPull ( GPIO_Type GPIOx,
uint32_t Pin,
uint32_t Pull )

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

Note
Warning: only one pin can be passed as parameter.
Parameters
GPIOxGPIO port.
PinThis parameter can be one of the following values:
PullThis parameter can be one of the following values:
Return values
None

Definition at line 518 of file g32r4xx_ddl_gpio.h.

◆ DDL_GPIO_SetPinSpeed()

__STATIC_INLINE void DDL_GPIO_SetPinSpeed ( GPIO_Type GPIOx,
uint32_t Pin,
uint32_t Speed )

Configure gpio speed for a dedicated pin on a dedicated port.

Note
I/O speed can be Low, Medium, Fast or High speed.
Warning: only one pin can be passed as parameter.
Refer to datasheet for frequency specifications and the power supply and load conditions for each speed.
Parameters
GPIOxGPIO port.
PinThis parameter can be one of the following values:
SpeedThis parameter can be one of the following values:
Return values
None

Definition at line 448 of file g32r4xx_ddl_gpio.h.