G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
Initialization and de-initialization functions

Functions

ErrorStatus DDL_GPIO_DeInit (GPIO_Type GPIOx)
 De-initialize GPIO registers (Registers restored to their default values).
ErrorStatus DDL_GPIO_Init (GPIO_Type GPIOx, DDL_GPIO_InitTypeDef *GPIO_InitStruct)
 Initialize GPIO registers according to the specified parameters in GPIO_InitStruct.
void DDL_GPIO_StructInit (DDL_GPIO_InitTypeDef *GPIO_InitStruct)
 Set each DDL_GPIO_InitTypeDef field to default value.
void DDL_GPIO_EnableAdc3AnalogSwitchPin (GPIO_Type GPIOx, uint32_t PinMask)
 Enable ADC3 analog switch bits in SWR.
void DDL_GPIO_DisableAdc3AnalogSwitchPin (GPIO_Type GPIOx, uint32_t PinMask)
 Disable ADC3 analog switch bits in SWR.
void DDL_GPIO_SetSpecialPinType (GPIO_Type GPIOx, uint32_t PinMask, uint32_t PinType)
 Configure special pin type for the dedicated special GPIO pin.
uint32_t DDL_GPIO_GetSpecialPinType (GPIO_Type GPIOx, uint32_t PinMask)
 Return special pin type configuration for the dedicated special GPIO pin.

Detailed Description

Function Documentation

◆ DDL_GPIO_DeInit()

ErrorStatus DDL_GPIO_DeInit ( GPIO_Type GPIOx)

De-initialize GPIO registers (Registers restored to their default values).

Parameters
GPIOxGPIO Port
Return values
AnErrorStatus enumeration value:
  • SUCCESS: GPIO registers are de-initialized
  • ERROR: Wrong GPIO Port

Definition at line 143 of file g32r4xx_ddl_gpio.c.

◆ DDL_GPIO_DisableAdc3AnalogSwitchPin()

void DDL_GPIO_DisableAdc3AnalogSwitchPin ( GPIO_Type GPIOx,
uint32_t PinMask )

Disable ADC3 analog switch bits in SWR.

Disable ADC3 analog switch bits in SWR for the given GPIO port.

Parameters
GPIOxGPIO port.
PinMaskADC3 analog-switch pin mask for this port.
Return values
None

Definition at line 278 of file g32r4xx_ddl_gpio.c.

◆ DDL_GPIO_EnableAdc3AnalogSwitchPin()

void DDL_GPIO_EnableAdc3AnalogSwitchPin ( GPIO_Type GPIOx,
uint32_t PinMask )

Enable ADC3 analog switch bits in SWR.

Enable ADC3 analog switch bits in SWR for the given GPIO port.

Parameters
GPIOxGPIO port.
PinMaskADC3 analog-switch pin mask for this port.
Return values
None

Definition at line 262 of file g32r4xx_ddl_gpio.c.

◆ DDL_GPIO_GetSpecialPinType()

uint32_t DDL_GPIO_GetSpecialPinType ( GPIO_Type GPIOx,
uint32_t PinMask )

Return special pin type configuration for the dedicated special GPIO pin.

Parameters
GPIOxGPIO port.
PinMaskGPIO pin mask.
Return values
Returnedvalue can be a value of Special Pin Type Configuration.

Definition at line 312 of file g32r4xx_ddl_gpio.c.

◆ DDL_GPIO_Init()

ErrorStatus DDL_GPIO_Init ( GPIO_Type GPIOx,
DDL_GPIO_InitTypeDef * GPIO_InitStruct )

Initialize GPIO registers according to the specified parameters in GPIO_InitStruct.

Parameters
GPIOxGPIO port.
GPIO_InitStructpointer to a DDL_GPIO_InitTypeDef structure that contains the configuration information for the specified GPIO peripheral.
Return values
AnErrorStatus enumeration value:
  • SUCCESS: GPIO registers are initialized according to GPIO_InitStruct content
  • ERROR: Not applicable

Definition at line 166 of file g32r4xx_ddl_gpio.c.

◆ DDL_GPIO_SetSpecialPinType()

void DDL_GPIO_SetSpecialPinType ( GPIO_Type GPIOx,
uint32_t PinMask,
uint32_t PinType )

Configure special pin type for the dedicated special GPIO pin.

Parameters
GPIOxGPIO port.
PinMaskGPIO pin mask.
PinTypeThis parameter can be a value of Special Pin Type Configuration.
Return values
None

Definition at line 295 of file g32r4xx_ddl_gpio.c.

◆ DDL_GPIO_StructInit()

void DDL_GPIO_StructInit ( DDL_GPIO_InitTypeDef * GPIO_InitStruct)

Set each DDL_GPIO_InitTypeDef field to default value.

Parameters
GPIO_InitStructpointer to a DDL_GPIO_InitTypeDef structure whose fields will be set to default values.
Return values
None

Definition at line 245 of file g32r4xx_ddl_gpio.c.