G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
Advanced Configurations services

Functions

__STATIC_INLINE void DDL_USART_ConfigAsyncMode (USART_TypeDef *USARTx)
 Perform basic configuration of USART for enabling use in Asynchronous Mode (UART).
__STATIC_INLINE void DDL_USART_ConfigSyncMode (USART_TypeDef *USARTx)
 Perform basic configuration of USART for enabling use in Synchronous Mode.
__STATIC_INLINE void DDL_USART_ConfigLINMode (USART_TypeDef *USARTx)
 Perform basic configuration of USART for enabling use in LIN Mode.
__STATIC_INLINE void DDL_USART_ConfigHalfDuplexMode (USART_TypeDef *USARTx)
 Perform basic configuration of USART for enabling use in Half Duplex Mode.
__STATIC_INLINE void DDL_USART_ConfigSmartcardMode (USART_TypeDef *USARTx)
 Perform basic configuration of USART for enabling use in Smartcard Mode.
__STATIC_INLINE void DDL_USART_ConfigIrdaMode (USART_TypeDef *USARTx)
 Perform basic configuration of USART for enabling use in Irda Mode.
__STATIC_INLINE void DDL_USART_ConfigMultiProcessMode (USART_TypeDef *USARTx)
 Perform basic configuration of USART for enabling use in Multi processor Mode (several USARTs connected in a network, one of the USARTs can be the master, its TX output connected to the RX inputs of the other slaves USARTs).

Detailed Description

Function Documentation

◆ DDL_USART_ConfigAsyncMode()

__STATIC_INLINE void DDL_USART_ConfigAsyncMode ( USART_TypeDef * USARTx)

Perform basic configuration of USART for enabling use in Asynchronous Mode (UART).

Note
In UART mode, the following bits must be kept cleared:
  • LINEN bit in the USART_CTRL2 register,
  • CLKEN bit in the USART_CTRL2 register,
  • SCEN bit in the USART_CTRL3 register,
  • IREN bit in the USART_CTRL3 register,
  • HDSEL bit in the USART_CTRL3 register.
Call of this function is equivalent to following function call sequence :
Other remaining configurations items related to Asynchronous Mode (as Baud Rate, Word length, Parity, ...) should be set using dedicated functions
Parameters
USARTxUSART Instance
Return values
None

Definition at line 1512 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_ConfigHalfDuplexMode()

__STATIC_INLINE void DDL_USART_ConfigHalfDuplexMode ( USART_TypeDef * USARTx)

Perform basic configuration of USART for enabling use in Half Duplex Mode.

Note
In Half Duplex mode, the following bits must be kept cleared:
  • LINEN bit in the USART_CTRL2 register,
  • CLKEN bit in the USART_CTRL2 register,
  • SCEN bit in the USART_CTRL3 register,
  • IREN bit in the USART_CTRL3 register, This function also sets the UART/USART in Half Duplex mode.
Macro IS_UART_HALFDUPLEX_INSTANCE(USARTx) can be used to check whether or not Half-Duplex mode is supported by the USARTx instance.
Call of this function is equivalent to following function call sequence :
Other remaining configurations items related to Half Duplex Mode (as Baud Rate, Word length, Parity, ...) should be set using dedicated functions
Parameters
USARTxUSART Instance
Return values
None

Definition at line 1610 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_ConfigIrdaMode()

__STATIC_INLINE void DDL_USART_ConfigIrdaMode ( USART_TypeDef * USARTx)

Perform basic configuration of USART for enabling use in Irda Mode.

Note
In IRDA mode, the following bits must be kept cleared:
  • LINEN bit in the USART_CTRL2 register,
  • STOP and CLKEN bits in the USART_CTRL2 register,
  • SCEN bit in the USART_CTRL3 register,
  • HDSEL bit in the USART_CTRL3 register. This function also sets the UART/USART in IRDA mode (IREN bit).
Macro IS_IRDA_INSTANCE(USARTx) can be used to check whether or not IrDA feature is supported by the USARTx instance.
Call of this function is equivalent to following function call sequence :
Other remaining configurations items related to Irda Mode (as Baud Rate, Word length, Power mode, ...) should be set using dedicated functions
Parameters
USARTxUSART Instance
Return values
None

Definition at line 1682 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_ConfigLINMode()

__STATIC_INLINE void DDL_USART_ConfigLINMode ( USART_TypeDef * USARTx)

Perform basic configuration of USART for enabling use in LIN Mode.

Note
In LIN mode, the following bits must be kept cleared:
  • STOP and CLKEN bits in the USART_CTRL2 register,
  • SCEN bit in the USART_CTRL3 register,
  • IREN bit in the USART_CTRL3 register,
  • HDSEL bit in the USART_CTRL3 register. This function also set the UART/USART in LIN mode.
Macro IS_UART_LIN_INSTANCE(USARTx) can be used to check whether or not LIN feature is supported by the USARTx instance.
Call of this function is equivalent to following function call sequence :
Other remaining configurations items related to LIN Mode (as Baud Rate, Word length, LIN Break Detection Length, ...) should be set using dedicated functions
Parameters
USARTxUSART Instance
Return values
None

Definition at line 1577 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_ConfigMultiProcessMode()

__STATIC_INLINE void DDL_USART_ConfigMultiProcessMode ( USART_TypeDef * USARTx)

Perform basic configuration of USART for enabling use in Multi processor Mode (several USARTs connected in a network, one of the USARTs can be the master, its TX output connected to the RX inputs of the other slaves USARTs).

Note
In MultiProcessor mode, the following bits must be kept cleared:
  • LINEN bit in the USART_CTRL2 register,
  • CLKEN bit in the USART_CTRL2 register,
  • SCEN bit in the USART_CTRL3 register,
  • IREN bit in the USART_CTRL3 register,
  • HDSEL bit in the USART_CTRL3 register.
Call of this function is equivalent to following function call sequence :
Other remaining configurations items related to Multi processor Mode (as Baud Rate, Wake Up Method, Node address, ...) should be set using dedicated functions
Parameters
USARTxUSART Instance
Return values
None

Definition at line 1715 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_ConfigSmartcardMode()

__STATIC_INLINE void DDL_USART_ConfigSmartcardMode ( USART_TypeDef * USARTx)

Perform basic configuration of USART for enabling use in Smartcard Mode.

Note
In Smartcard mode, the following bits must be kept cleared:
  • LINEN bit in the USART_CTRL2 register,
  • IREN bit in the USART_CTRL3 register,
  • HDSEL bit in the USART_CTRL3 register. This function also configures Stop bits to 1.5 bits and sets the USART in Smartcard mode (SCEN bit). Clock Output is also enabled (CLKEN).
Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance.
Call of this function is equivalent to following function call sequence :
Other remaining configurations items related to Smartcard Mode (as Baud Rate, Word length, Parity, ...) should be set using dedicated functions
Parameters
USARTxUSART Instance
Return values
None

Definition at line 1645 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_ConfigSyncMode()

__STATIC_INLINE void DDL_USART_ConfigSyncMode ( USART_TypeDef * USARTx)

Perform basic configuration of USART for enabling use in Synchronous Mode.

Note
In Synchronous mode, the following bits must be kept cleared:
  • LINEN bit in the USART_CTRL2 register,
  • SCEN bit in the USART_CTRL3 register,
  • IREN bit in the USART_CTRL3 register,
  • HDSEL bit in the USART_CTRL3 register. This function also sets the USART in Synchronous mode.
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 :
Other remaining configurations items related to Synchronous Mode (as Baud Rate, Word length, Parity, Clock Polarity, ...) should be set using dedicated functions
Parameters
USARTxUSART Instance
Return values
None

Definition at line 1543 of file g32r4xx_ddl_usart.h.