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

Functions

__STATIC_INLINE void DDL_USART_Enable (USART_TypeDef *USARTx)
 USART Enable.
__STATIC_INLINE void DDL_USART_Disable (USART_TypeDef *USARTx)
 USART Disable (all USART prescalers and outputs are disabled).
__STATIC_INLINE uint32_t DDL_USART_IsEnabled (USART_TypeDef *USARTx)
 Indicate if USART is enabled.
__STATIC_INLINE void DDL_USART_EnableDirectionRx (USART_TypeDef *USARTx)
 Receiver Enable (Receiver is enabled and begins searching for a start bit).
__STATIC_INLINE void DDL_USART_DisableDirectionRx (USART_TypeDef *USARTx)
 Receiver Disable.
__STATIC_INLINE void DDL_USART_EnableDirectionTx (USART_TypeDef *USARTx)
 Transmitter Enable.
__STATIC_INLINE void DDL_USART_DisableDirectionTx (USART_TypeDef *USARTx)
 Transmitter Disable.
__STATIC_INLINE void DDL_USART_SetTransferDirection (USART_TypeDef *USARTx, uint32_t TransferDirection)
 Configure simultaneously enabled/disabled states of Transmitter and Receiver.
__STATIC_INLINE uint32_t DDL_USART_GetTransferDirection (USART_TypeDef *USARTx)
 Return enabled/disabled states of Transmitter and Receiver.
__STATIC_INLINE void DDL_USART_SetParity (USART_TypeDef *USARTx, uint32_t Parity)
 Configure Parity (enabled/disabled and parity mode if enabled).
__STATIC_INLINE uint32_t DDL_USART_GetParity (USART_TypeDef *USARTx)
 Return Parity configuration (enabled/disabled and parity mode if enabled).
__STATIC_INLINE void DDL_USART_SetWakeUpMethod (USART_TypeDef *USARTx, uint32_t Method)
 Set Receiver Wake Up method from Mute mode.
__STATIC_INLINE uint32_t DDL_USART_GetWakeUpMethod (USART_TypeDef *USARTx)
 Return Receiver Wake Up method from Mute mode.
__STATIC_INLINE void DDL_USART_SetDataWidth (USART_TypeDef *USARTx, uint32_t DataWidth)
 Set Word length (i.e. nb of data bits, excluding start and stop bits).
__STATIC_INLINE uint32_t DDL_USART_GetDataWidth (USART_TypeDef *USARTx)
 Return Word length (i.e. nb of data bits, excluding start and stop bits).
__STATIC_INLINE void DDL_USART_SetOverSampling (USART_TypeDef *USARTx, uint32_t OverSampling)
 Set Oversampling to 8-bit or 16-bit mode.
__STATIC_INLINE uint32_t DDL_USART_GetOverSampling (USART_TypeDef *USARTx)
 Return Oversampling mode.
__STATIC_INLINE void DDL_USART_SetLastClkPulseOutput (USART_TypeDef *USARTx, uint32_t LastBitClockPulse)
 Configure if Clock pulse of the last data bit is output to the SCLK pin or not.
__STATIC_INLINE uint32_t DDL_USART_GetLastClkPulseOutput (USART_TypeDef *USARTx)
 Retrieve Clock pulse of the last data bit output configuration (Last bit Clock pulse output to the SCLK pin or not).
__STATIC_INLINE void DDL_USART_SetClockPhase (USART_TypeDef *USARTx, uint32_t ClockPhase)
 Select the phase of the clock output on the SCLK pin in synchronous mode.
__STATIC_INLINE uint32_t DDL_USART_GetClockPhase (USART_TypeDef *USARTx)
 Return phase of the clock output on the SCLK pin in synchronous mode.
__STATIC_INLINE void DDL_USART_SetClockPolarity (USART_TypeDef *USARTx, uint32_t ClockPolarity)
 Select the polarity of the clock output on the SCLK pin in synchronous mode.
__STATIC_INLINE uint32_t DDL_USART_GetClockPolarity (USART_TypeDef *USARTx)
 Return polarity of the clock output on the SCLK pin in synchronous mode.
__STATIC_INLINE void DDL_USART_ConfigClock (USART_TypeDef *USARTx, uint32_t Phase, uint32_t Polarity, uint32_t LBCPOutput)
 Configure Clock signal format (Phase Polarity and choice about output of last bit clock pulse).
__STATIC_INLINE void DDL_USART_EnableSCLKOutput (USART_TypeDef *USARTx)
 Enable Clock output on SCLK pin.
__STATIC_INLINE void DDL_USART_DisableSCLKOutput (USART_TypeDef *USARTx)
 Disable Clock output on SCLK pin.
__STATIC_INLINE uint32_t DDL_USART_IsEnabledSCLKOutput (USART_TypeDef *USARTx)
 Indicate if Clock output on SCLK pin is enabled.
__STATIC_INLINE void DDL_USART_SetStopBitsLength (USART_TypeDef *USARTx, uint32_t StopBits)
 Set the length of the stop bits.
__STATIC_INLINE uint32_t DDL_USART_GetStopBitsLength (USART_TypeDef *USARTx)
 Retrieve the length of the stop bits.
__STATIC_INLINE void DDL_USART_ConfigCharacter (USART_TypeDef *USARTx, uint32_t DataWidth, uint32_t Parity, uint32_t StopBits)
 Configure Character frame format (Datawidth, Parity control, Stop Bits).
__STATIC_INLINE void DDL_USART_SetNodeAddress (USART_TypeDef *USARTx, uint32_t NodeAddress)
 Set Address of the USART node.
__STATIC_INLINE uint32_t DDL_USART_GetNodeAddress (USART_TypeDef *USARTx)
 Return 4 bit Address of the USART node as set in ADD field of CTRL2.
__STATIC_INLINE void DDL_USART_EnableRTSHWFlowCtrl (USART_TypeDef *USARTx)
 Enable RTS HW Flow Control.
__STATIC_INLINE void DDL_USART_DisableRTSHWFlowCtrl (USART_TypeDef *USARTx)
 Disable RTS HW Flow Control.
__STATIC_INLINE void DDL_USART_EnableCTSHWFlowCtrl (USART_TypeDef *USARTx)
 Enable CTS HW Flow Control.
__STATIC_INLINE void DDL_USART_DisableCTSHWFlowCtrl (USART_TypeDef *USARTx)
 Disable CTS HW Flow Control.
__STATIC_INLINE void DDL_USART_SetHWFlowCtrl (USART_TypeDef *USARTx, uint32_t HardwareFlowControl)
 Configure HW Flow Control mode (both CTS and RTS).
__STATIC_INLINE uint32_t DDL_USART_GetHWFlowCtrl (USART_TypeDef *USARTx)
 Return HW Flow Control configuration (both CTS and RTS).
__STATIC_INLINE void DDL_USART_SetDEDeassertionTime (USART_TypeDef *USARTx, uint32_t Time)
 Set DEDT (Driver Enable De-Assertion Time), Time value expressed on 5 bits ([4:0] bits).
__STATIC_INLINE uint32_t DDL_USART_GetDEDeassertionTime (USART_TypeDef *USARTx)
 Return DEDT (Driver Enable De-Assertion Time).
__STATIC_INLINE void DDL_USART_SetDEAssertionTime (USART_TypeDef *USARTx, uint32_t Time)
 Set DEAT (Driver Enable Assertion Time), Time value expressed on 5 bits ([4:0] bits).
__STATIC_INLINE uint32_t DDL_USART_GetDEAssertionTime (USART_TypeDef *USARTx)
 Return DEAT (Driver Enable Assertion Time).
__STATIC_INLINE void DDL_USART_EnableDEMode (USART_TypeDef *USARTx)
 Enable Driver Enable (DE) Mode.
__STATIC_INLINE void DDL_USART_DisableDEMode (USART_TypeDef *USARTx)
 Disable Driver Enable (DE) Mode.
__STATIC_INLINE uint32_t DDL_USART_IsEnabledDEMode (USART_TypeDef *USARTx)
 Indicate if Driver Enable (DE) Mode is enabled.
__STATIC_INLINE void DDL_USART_SetBaudRate (USART_TypeDef *USARTx, uint32_t PeriphClk, uint32_t OverSampling, uint32_t BaudRate)
 Configure USART BRR register for achieving expected Baud Rate value.
__STATIC_INLINE uint32_t DDL_USART_GetBaudRate (USART_TypeDef *USARTx, uint32_t PeriphClk, uint32_t OverSampling)
 Return current Baud Rate value, according to USARTDIV present in BRR register (full BRR content), and to used Peripheral Clock and Oversampling mode values.
__STATIC_INLINE void DDL_USART_SetSampleMethod (USART_TypeDef *USARTx, uint32_t Sample)
 Configure sampling method.

Detailed Description

Function Documentation

◆ DDL_USART_ConfigCharacter()

__STATIC_INLINE void DDL_USART_ConfigCharacter ( USART_TypeDef * USARTx,
uint32_t DataWidth,
uint32_t Parity,
uint32_t StopBits )

Configure Character frame format (Datawidth, Parity control, Stop Bits).

Note
Call of this function is equivalent to following function call sequence :
Parameters
USARTxUSART Instance
DataWidthThis parameter can be one of the following values:
ParityThis parameter can be one of the following values:
StopBitsThis parameter can be one of the following values:
Return values
None

Definition at line 844 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_ConfigClock()

__STATIC_INLINE void DDL_USART_ConfigClock ( USART_TypeDef * USARTx,
uint32_t Phase,
uint32_t Polarity,
uint32_t LBCPOutput )

Configure Clock signal format (Phase Polarity and choice about output of last bit clock pulse).

Note
Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not Synchronous mode is supported by the USARTx instance.
Call of this function is equivalent to following function call sequence :
Parameters
USARTxUSART Instance
PhaseThis parameter can be one of the following values:
PolarityThis parameter can be one of the following values:
LBCPOutputThis parameter can be one of the following values:
Return values
None

Definition at line 753 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_Disable()

__STATIC_INLINE void DDL_USART_Disable ( USART_TypeDef * USARTx)

USART Disable (all USART prescalers and outputs are disabled).

Note
When USART is disabled, USART prescalers and outputs are stopped immediately, and current operations are discarded. The configuration of the USART is kept, but all the status flags, in the USARTx_SR are set to their default values.
Parameters
USARTxUSART Instance
Return values
None

Definition at line 455 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_DisableCTSHWFlowCtrl()

__STATIC_INLINE void DDL_USART_DisableCTSHWFlowCtrl ( USART_TypeDef * USARTx)

Disable CTS HW Flow Control.

Note
Macro IS_UART_HWFLOW_INSTANCE(USARTx) can be used to check whether or not Hardware Flow control feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
Return values
None

Definition at line 918 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_DisableDEMode()

__STATIC_INLINE void DDL_USART_DisableDEMode ( USART_TypeDef * USARTx)

Disable Driver Enable (DE) Mode.

Note
Macro IS_UART_DRIVER_ENABLE_INSTANCE(USARTx) can be used to check whether or not Driver Enable feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
Return values
None

Definition at line 1025 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_DisableDirectionRx()

__STATIC_INLINE void DDL_USART_DisableDirectionRx ( USART_TypeDef * USARTx)

Receiver Disable.

Parameters
USARTxUSART Instance
Return values
None

Definition at line 485 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_DisableDirectionTx()

__STATIC_INLINE void DDL_USART_DisableDirectionTx ( USART_TypeDef * USARTx)

Transmitter Disable.

Parameters
USARTxUSART Instance
Return values
None

Definition at line 505 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_DisableRTSHWFlowCtrl()

__STATIC_INLINE void DDL_USART_DisableRTSHWFlowCtrl ( USART_TypeDef * USARTx)

Disable RTS HW Flow Control.

Note
Macro IS_UART_HWFLOW_INSTANCE(USARTx) can be used to check whether or not Hardware Flow control feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
Return values
None

Definition at line 894 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_DisableSCLKOutput()

__STATIC_INLINE void DDL_USART_DisableSCLKOutput ( USART_TypeDef * USARTx)

Disable Clock output on SCLK pin.

Note
Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not Synchronous mode is supported by the USARTx instance.
Parameters
USARTxUSART Instance
Return values
None

Definition at line 777 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_Enable()

__STATIC_INLINE void DDL_USART_Enable ( USART_TypeDef * USARTx)

USART Enable.

Parameters
USARTxUSART Instance
Return values
None

Definition at line 442 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_EnableCTSHWFlowCtrl()

__STATIC_INLINE void DDL_USART_EnableCTSHWFlowCtrl ( USART_TypeDef * USARTx)

Enable CTS HW Flow Control.

Note
Macro IS_UART_HWFLOW_INSTANCE(USARTx) can be used to check whether or not Hardware Flow control feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
Return values
None

Definition at line 906 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_EnableDEMode()

__STATIC_INLINE void DDL_USART_EnableDEMode ( USART_TypeDef * USARTx)

Enable Driver Enable (DE) Mode.

Note
Macro IS_UART_DRIVER_ENABLE_INSTANCE(USARTx) can be used to check whether or not Driver Enable feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
Return values
None

Definition at line 1013 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_EnableDirectionRx()

__STATIC_INLINE void DDL_USART_EnableDirectionRx ( USART_TypeDef * USARTx)

Receiver Enable (Receiver is enabled and begins searching for a start bit).

Parameters
USARTxUSART Instance
Return values
None

Definition at line 475 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_EnableDirectionTx()

__STATIC_INLINE void DDL_USART_EnableDirectionTx ( USART_TypeDef * USARTx)

Transmitter Enable.

Parameters
USARTxUSART Instance
Return values
None

Definition at line 495 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_EnableRTSHWFlowCtrl()

__STATIC_INLINE void DDL_USART_EnableRTSHWFlowCtrl ( USART_TypeDef * USARTx)

Enable RTS HW Flow Control.

Note
Macro IS_UART_HWFLOW_INSTANCE(USARTx) can be used to check whether or not Hardware Flow control feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
Return values
None

Definition at line 882 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_EnableSCLKOutput()

__STATIC_INLINE void DDL_USART_EnableSCLKOutput ( USART_TypeDef * USARTx)

Enable Clock output on SCLK pin.

Note
Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not Synchronous mode is supported by the USARTx instance.
Parameters
USARTxUSART Instance
Return values
None

Definition at line 765 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_GetBaudRate()

__STATIC_INLINE uint32_t DDL_USART_GetBaudRate ( USART_TypeDef * USARTx,
uint32_t PeriphClk,
uint32_t OverSampling )

Return current Baud Rate value, according to USARTDIV present in BRR register (full BRR content), and to used Peripheral Clock and Oversampling mode values.

Note
In case of non-initialized or invalid value stored in BRR register, value 0 will be returned.
Parameters
USARTxUSART Instance
PeriphClkPeripheral Clock
OverSamplingThis parameter can be one of the following values:
Return values
BaudRate

Definition at line 1095 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_GetClockPhase()

__STATIC_INLINE uint32_t DDL_USART_GetClockPhase ( USART_TypeDef * USARTx)

Return phase of the clock output on the SCLK pin in synchronous mode.

Note
Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not Synchronous mode is supported by the USARTx instance.
Parameters
USARTxUSART Instance
Return values
Returnedvalue can be one of the following values:

Definition at line 699 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_GetClockPolarity()

__STATIC_INLINE uint32_t DDL_USART_GetClockPolarity ( USART_TypeDef * USARTx)

Return polarity of the clock output on the SCLK pin in synchronous mode.

Note
Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not Synchronous mode is supported by the USARTx instance.
Parameters
USARTxUSART Instance
Return values
Returnedvalue can be one of the following values:

Definition at line 728 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_GetDataWidth()

__STATIC_INLINE uint32_t DDL_USART_GetDataWidth ( USART_TypeDef * USARTx)

Return Word length (i.e. nb of data bits, excluding start and stop bits).

Parameters
USARTxUSART Instance
Return values
Returnedvalue can be one of the following values:

Definition at line 615 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_GetDEAssertionTime()

__STATIC_INLINE uint32_t DDL_USART_GetDEAssertionTime ( USART_TypeDef * USARTx)

Return DEAT (Driver Enable Assertion Time).

Note
Macro IS_UART_DRIVER_ENABLE_INSTANCE(USARTx) can be used to check whether or not Driver Enable feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
Return values
Timevalue expressed on 5 bits ([4:0] bits) : Value between Min_Data=0 and Max_Data=31

Definition at line 1001 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_GetDEDeassertionTime()

__STATIC_INLINE uint32_t DDL_USART_GetDEDeassertionTime ( USART_TypeDef * USARTx)

Return DEDT (Driver Enable De-Assertion Time).

Note
Macro IS_UART_DRIVER_ENABLE_INSTANCE(USARTx) can be used to check whether or not Driver Enable feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
Return values
Timevalue expressed on 5 bits ([4:0] bits) : Value between Min_Data=0 and Max_Data=31

Definition at line 976 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_GetHWFlowCtrl()

__STATIC_INLINE uint32_t DDL_USART_GetHWFlowCtrl ( USART_TypeDef * USARTx)

Return HW Flow Control configuration (both CTS and RTS).

Note
Macro IS_UART_HWFLOW_INSTANCE(USARTx) can be used to check whether or not Hardware Flow control feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
Return values
Returnedvalue can be one of the following values:

Definition at line 951 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_GetLastClkPulseOutput()

__STATIC_INLINE uint32_t DDL_USART_GetLastClkPulseOutput ( USART_TypeDef * USARTx)

Retrieve Clock pulse of the last data bit output configuration (Last bit Clock pulse output to the SCLK pin or not).

Note
Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not Synchronous mode is supported by the USARTx instance.
Parameters
USARTxUSART Instance
Return values
Returnedvalue can be one of the following values:

Definition at line 670 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_GetNodeAddress()

__STATIC_INLINE uint32_t DDL_USART_GetNodeAddress ( USART_TypeDef * USARTx)

Return 4 bit Address of the USART node as set in ADD field of CTRL2.

Note
only 4bits (b3-b0) of returned value are relevant (b31-b4 are not relevant)
Parameters
USARTxUSART Instance
Return values
Addressof the USART node (Value between Min_Data=0 and Max_Data=255)

Definition at line 870 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_GetOverSampling()

__STATIC_INLINE uint32_t DDL_USART_GetOverSampling ( USART_TypeDef * USARTx)

Return Oversampling mode.

Parameters
USARTxUSART Instance
Return values
Returnedvalue can be one of the following values:

Definition at line 640 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_GetParity()

__STATIC_INLINE uint32_t DDL_USART_GetParity ( USART_TypeDef * USARTx)

Return Parity configuration (enabled/disabled and parity mode if enabled).

Parameters
USARTxUSART Instance
Return values
Returnedvalue can be one of the following values:

Definition at line 565 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_GetStopBitsLength()

__STATIC_INLINE uint32_t DDL_USART_GetStopBitsLength ( USART_TypeDef * USARTx)

Retrieve the length of the stop bits.

Parameters
USARTxUSART Instance
Return values
Returnedvalue can be one of the following values:

Definition at line 818 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_GetTransferDirection()

__STATIC_INLINE uint32_t DDL_USART_GetTransferDirection ( USART_TypeDef * USARTx)

Return enabled/disabled states of Transmitter and Receiver.

Parameters
USARTxUSART Instance
Return values
Returnedvalue can be one of the following values:

Definition at line 535 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_GetWakeUpMethod()

__STATIC_INLINE uint32_t DDL_USART_GetWakeUpMethod ( USART_TypeDef * USARTx)

Return Receiver Wake Up method from Mute mode.

Parameters
USARTxUSART Instance
Return values
Returnedvalue can be one of the following values:

Definition at line 590 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_IsEnabled()

__STATIC_INLINE uint32_t DDL_USART_IsEnabled ( USART_TypeDef * USARTx)

Indicate if USART is enabled.

Parameters
USARTxUSART Instance
Return values
Stateof bit (1 or 0).

Definition at line 465 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_IsEnabledDEMode()

__STATIC_INLINE uint32_t DDL_USART_IsEnabledDEMode ( USART_TypeDef * USARTx)

Indicate if Driver Enable (DE) Mode is enabled.

Note
Macro IS_UART_DRIVER_ENABLE_INSTANCE(USARTx) can be used to check whether or not Driver Enable feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
Return values
Stateof bit (1 or 0).

Definition at line 1037 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_IsEnabledSCLKOutput()

__STATIC_INLINE uint32_t DDL_USART_IsEnabledSCLKOutput ( USART_TypeDef * USARTx)

Indicate if Clock output on SCLK pin is enabled.

Note
Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not Synchronous mode is supported by the USARTx instance.
Parameters
USARTxUSART Instance
Return values
Stateof bit (1 or 0).

Definition at line 789 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_SetBaudRate()

__STATIC_INLINE void DDL_USART_SetBaudRate ( USART_TypeDef * USARTx,
uint32_t PeriphClk,
uint32_t OverSampling,
uint32_t BaudRate )

Configure USART BRR register for achieving expected Baud Rate value.

Note
Compute and set USARTDIV value in BRR Register (full BRR content) according to used Peripheral Clock, Oversampling mode, and expected Baud Rate values
Peripheral clock and Baud rate values provided as function parameters should be valid (Baud rate value != 0)
Parameters
USARTxUSART Instance
PeriphClkPeripheral Clock
OverSamplingThis parameter can be one of the following values:
BaudRateBaud Rate
Return values
None

Definition at line 1056 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_SetClockPhase()

__STATIC_INLINE void DDL_USART_SetClockPhase ( USART_TypeDef * USARTx,
uint32_t ClockPhase )

Select the phase of the clock output on the SCLK pin in synchronous mode.

Note
Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not Synchronous mode is supported by the USARTx instance.
Parameters
USARTxUSART Instance
ClockPhaseThis parameter can be one of the following values:
Return values
None

Definition at line 685 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_SetClockPolarity()

__STATIC_INLINE void DDL_USART_SetClockPolarity ( USART_TypeDef * USARTx,
uint32_t ClockPolarity )

Select the polarity of the clock output on the SCLK pin in synchronous mode.

Note
Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not Synchronous mode is supported by the USARTx instance.
Parameters
USARTxUSART Instance
ClockPolarityThis parameter can be one of the following values:
Return values
None

Definition at line 714 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_SetDataWidth()

__STATIC_INLINE void DDL_USART_SetDataWidth ( USART_TypeDef * USARTx,
uint32_t DataWidth )

Set Word length (i.e. nb of data bits, excluding start and stop bits).

Parameters
USARTxUSART Instance
DataWidthThis parameter can be one of the following values:
Return values
None

Definition at line 603 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_SetDEAssertionTime()

__STATIC_INLINE void DDL_USART_SetDEAssertionTime ( USART_TypeDef * USARTx,
uint32_t Time )

Set DEAT (Driver Enable Assertion Time), Time value expressed on 5 bits ([4:0] bits).

Note
Macro IS_UART_DRIVER_ENABLE_INSTANCE(USARTx) can be used to check whether or not Driver Enable feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
TimeValue between Min_Data=0 and Max_Data=31
Return values
None

Definition at line 989 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_SetDEDeassertionTime()

__STATIC_INLINE void DDL_USART_SetDEDeassertionTime ( USART_TypeDef * USARTx,
uint32_t Time )

Set DEDT (Driver Enable De-Assertion Time), Time value expressed on 5 bits ([4:0] bits).

Note
Macro IS_UART_DRIVER_ENABLE_INSTANCE(USARTx) can be used to check whether or not Driver Enable feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
TimeValue between Min_Data=0 and Max_Data=31
Return values
None

Definition at line 964 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_SetHWFlowCtrl()

__STATIC_INLINE void DDL_USART_SetHWFlowCtrl ( USART_TypeDef * USARTx,
uint32_t HardwareFlowControl )

Configure HW Flow Control mode (both CTS and RTS).

Note
Macro IS_UART_HWFLOW_INSTANCE(USARTx) can be used to check whether or not Hardware Flow control feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
HardwareFlowControlThis parameter can be one of the following values:
Return values
None

Definition at line 935 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_SetLastClkPulseOutput()

__STATIC_INLINE void DDL_USART_SetLastClkPulseOutput ( USART_TypeDef * USARTx,
uint32_t LastBitClockPulse )

Configure if Clock pulse of the last data bit is output to the SCLK pin or not.

Note
Macro IS_USART_INSTANCE(USARTx) can be used to check whether or not Synchronous mode is supported by the USARTx instance.
Parameters
USARTxUSART Instance
LastBitClockPulseThis parameter can be one of the following values:
Return values
None

Definition at line 655 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_SetNodeAddress()

__STATIC_INLINE void DDL_USART_SetNodeAddress ( USART_TypeDef * USARTx,
uint32_t NodeAddress )

Set Address of the USART node.

Note
This is used in multiprocessor communication during Mute mode or Stop mode, for wake up with address mark detection.
Parameters
USARTxUSART Instance
NodeAddress4 bit Address of the USART node.
Return values
None

Definition at line 859 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_SetOverSampling()

__STATIC_INLINE void DDL_USART_SetOverSampling ( USART_TypeDef * USARTx,
uint32_t OverSampling )

Set Oversampling to 8-bit or 16-bit mode.

Parameters
USARTxUSART Instance
OverSamplingThis parameter can be one of the following values:
Return values
None

Definition at line 628 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_SetParity()

__STATIC_INLINE void DDL_USART_SetParity ( USART_TypeDef * USARTx,
uint32_t Parity )

Configure Parity (enabled/disabled and parity mode if enabled).

Note
This function selects if hardware parity control (generation and detection) is enabled or disabled. When the parity control is enabled (Odd or Even), computed parity bit is inserted at the MSB position (9th or 8th bit depending on data width) and parity is checked on the received data.
Parameters
USARTxUSART Instance
ParityThis parameter can be one of the following values:
Return values
None

Definition at line 552 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_SetSampleMethod()

__STATIC_INLINE void DDL_USART_SetSampleMethod ( USART_TypeDef * USARTx,
uint32_t Sample )

Configure sampling method.

Parameters
USARTxUSART Instance
SamplePeripheral Clock
Return values
None

Definition at line 1128 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_SetStopBitsLength()

__STATIC_INLINE void DDL_USART_SetStopBitsLength ( USART_TypeDef * USARTx,
uint32_t StopBits )

Set the length of the stop bits.

Parameters
USARTxUSART Instance
StopBitsThis parameter can be one of the following values:
Return values
None

Definition at line 804 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_SetTransferDirection()

__STATIC_INLINE void DDL_USART_SetTransferDirection ( USART_TypeDef * USARTx,
uint32_t TransferDirection )

Configure simultaneously enabled/disabled states of Transmitter and Receiver.

Parameters
USARTxUSART Instance
TransferDirectionThis parameter can be one of the following values:
Return values
None

Definition at line 521 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_SetWakeUpMethod()

__STATIC_INLINE void DDL_USART_SetWakeUpMethod ( USART_TypeDef * USARTx,
uint32_t Method )

Set Receiver Wake Up method from Mute mode.

Parameters
USARTxUSART Instance
MethodThis parameter can be one of the following values:
Return values
None

Definition at line 578 of file g32r4xx_ddl_usart.h.