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

Functions

__STATIC_INLINE uint32_t DDL_GPIO_ReadInputPort (GPIO_Type GPIOx)
 Return full input data register value for a dedicated port.
__STATIC_INLINE uint32_t DDL_GPIO_IsInputPinSet (GPIO_Type GPIOx, uint32_t PinMask)
 Return if input data level for several pins of a dedicated port is high or low.
__STATIC_INLINE void DDL_GPIO_WriteOutputPort (GPIO_Type GPIOx, uint32_t PortValue)
 Write output data register for the port.
__STATIC_INLINE uint32_t DDL_GPIO_ReadOutputPort (GPIO_Type GPIOx)
 Return full output data register value for a dedicated port.
__STATIC_INLINE uint32_t DDL_GPIO_IsOutputPinSet (GPIO_Type GPIOx, uint32_t PinMask)
 Return if input data level for several pins of dedicated port is high or low.
__STATIC_INLINE void DDL_GPIO_SetOutputPin (GPIO_Type GPIOx, uint32_t PinMask)
 Set several pins to high level on dedicated gpio port.
__STATIC_INLINE void DDL_GPIO_ResetOutputPin (GPIO_Type GPIOx, uint32_t PinMask)
 Set several pins to low level on dedicated gpio port.
__STATIC_INLINE void DDL_GPIO_TogglePin (GPIO_Type GPIOx, uint32_t PinMask)
 Toggle data value for several pin of dedicated port.
void DDL_GPIO_EnableAdc3AnalogSwitchPin (GPIO_Type GPIOx, uint32_t PinMask)
 Enable ADC3 analog switch bits in SWR for the given GPIO port.
void DDL_GPIO_DisableAdc3AnalogSwitchPin (GPIO_Type GPIOx, uint32_t PinMask)
 Disable ADC3 analog switch bits in SWR for the given GPIO port.
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_DisableAdc3AnalogSwitchPin()

void DDL_GPIO_DisableAdc3AnalogSwitchPin ( GPIO_Type GPIOx,
uint32_t PinMask )

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

Note
Same pin whitelist as DDL_GPIO_EnableAdc3AnalogSwitchPin.
Parameters
GPIOxGPIO Port.
PinMaskCombination of pins allowed for this port (see Enable API).
Return values
None

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 for the given GPIO port.

Note
Call this only after configuring the pin as analog and only when the pin is used as the listed ADC3 channel. DDL_GPIO_Init() leaves SWR at 0. Do not use this API for ADC16 GPIO (Init leaves SWR at 0). Do not use this API for 5VIO pins (PB4, PB6, PC12, PD5, PD12); use DDL_GPIO_SetSpecialPinType() instead. Do not use for PD15 (not ADC3; not in the 5VIO table; for EVS keep SWR at 0 per SWR supplement V1.1 rule 3).
Parameters
GPIOxGPIO Port.
PinMaskCombination of pins allowed for this port: GPIOB: DDL_GPIO_PIN_2 (ADC3_CH0), DDL_GPIO_PIN_3 (ADC3_CH1), DDL_GPIO_PIN_5 (ADC3_CH2) GPIOC: DDL_GPIO_PIN_3 (ADC3_CH0), DDL_GPIO_PIN_4 (ADC3_CH1), DDL_GPIO_PIN_5 (ADC3_CH2), DDL_GPIO_PIN_6 (ADC3_CH3), DDL_GPIO_PIN_9 (ADC3_CH6), DDL_GPIO_PIN_10 (ADC3_CH7), DDL_GPIO_PIN_11 (ADC3_CH8) GPIOD: DDL_GPIO_PIN_0 (ADC3_CH10), DDL_GPIO_PIN_1 (ADC3_CH11), DDL_GPIO_PIN_2 (ADC3_CH12)
Return values
None

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.

Note
This API is only applicable to the following GPIO/pin combinations:
Warning: only one pin can be passed as parameter.
Parameters
GPIOxGPIO port.
PinMaskThis parameter can be one of the following values:
Return values
Returnedvalue can be one of the following values:
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_IsInputPinSet()

__STATIC_INLINE uint32_t DDL_GPIO_IsInputPinSet ( GPIO_Type GPIOx,
uint32_t PinMask )

Return if input data level for several pins of a dedicated port is high or low.

Parameters
GPIOxGPIO Port.
PinMaskThis parameter can be a combination of the following values:
Return values
Stateof bit (1 or 0).

Definition at line 761 of file g32r4xx_ddl_gpio.h.

◆ DDL_GPIO_IsOutputPinSet()

__STATIC_INLINE uint32_t DDL_GPIO_IsOutputPinSet ( GPIO_Type GPIOx,
uint32_t PinMask )

Return if input data level for several pins of dedicated port is high or low.

Parameters
GPIOxGPIO Port
PinMaskThis parameter can be a combination of the following values:
Return values
Stateof bit (1 or 0).

Definition at line 813 of file g32r4xx_ddl_gpio.h.

◆ DDL_GPIO_ReadInputPort()

__STATIC_INLINE uint32_t DDL_GPIO_ReadInputPort ( GPIO_Type GPIOx)

Return full input data register value for a dedicated port.

Parameters
GPIOxGPIO port.
Return values
Inputdata register value of port

Definition at line 732 of file g32r4xx_ddl_gpio.h.

◆ DDL_GPIO_ReadOutputPort()

__STATIC_INLINE uint32_t DDL_GPIO_ReadOutputPort ( GPIO_Type GPIOx)

Return full output data register value for a dedicated port.

Parameters
GPIOxGPIO Port
Return values
Outputdata register value of port

Definition at line 784 of file g32r4xx_ddl_gpio.h.

◆ DDL_GPIO_ResetOutputPin()

__STATIC_INLINE void DDL_GPIO_ResetOutputPin ( GPIO_Type GPIOx,
uint32_t PinMask )

Set several pins to low level on dedicated gpio port.

Parameters
GPIOxGPIO Port.
PinMaskThis parameter can be a combination of the following values:
Return values
None

Definition at line 871 of file g32r4xx_ddl_gpio.h.

◆ DDL_GPIO_SetOutputPin()

__STATIC_INLINE void DDL_GPIO_SetOutputPin ( GPIO_Type GPIOx,
uint32_t PinMask )

Set several pins to high level on dedicated gpio port.

Parameters
GPIOxGPIO Port.
PinMaskThis parameter can be a combination of the following values:
Return values
None

Definition at line 842 of file g32r4xx_ddl_gpio.h.

◆ 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.

Note
This API is only applicable to the following GPIO/pin combinations:
For 5VIO pins PB4, PB6, PC12, PD5, PD12 (SWR supplement V1.1 table): SWR 0 = digital 5 V-tolerant input, SWR 1 = analog 3.3 V input/output.
PD15 is not in the 5VIO table. For EVS, keep SWR at 0 (recommended); SWR=1 does not block EVS. Do not select DDL_GPIO_SPECIAL_PIN_TYPE_ANALOG_3V3_INPUT_OUTPUT on PD15. This API may still be used on PD15 (e.g. USART) to force SWR=0 via DDL_GPIO_SPECIAL_PIN_TYPE_DIGITAL_5V_INPUT.
Warning: only one pin can be passed as parameter.
Parameters
GPIOxGPIO port.
PinMaskThis parameter can be one of the following values:
PinTypeThis parameter can be one of the following values:
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_TogglePin()

__STATIC_INLINE void DDL_GPIO_TogglePin ( GPIO_Type GPIOx,
uint32_t PinMask )

Toggle data value for several pin of dedicated port.

Parameters
GPIOxGPIO Port
PinMaskThis parameter can be a combination of the following values:
Return values
None

Definition at line 900 of file g32r4xx_ddl_gpio.h.

◆ DDL_GPIO_WriteOutputPort()

__STATIC_INLINE void DDL_GPIO_WriteOutputPort ( GPIO_Type GPIOx,
uint32_t PortValue )

Write output data register for the port.

Parameters
GPIOxGPIO Port.
PortValueLevel value for each pin of the port. limited in 0x0000 - 0xffff
Return values
None

Definition at line 773 of file g32r4xx_ddl_gpio.h.