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

Functions

__STATIC_INLINE uint32_t DDL_USART_IsActiveFlag_PE (USART_TypeDef *USARTx)
 Check if the USART Parity Error Flag is set or not.
__STATIC_INLINE void DDL_USART_ClearFlag_PE (USART_TypeDef *USARTx)
 Clear Parity Error Flag.
__STATIC_INLINE uint32_t DDL_USART_IsActiveFlag_FE (USART_TypeDef *USARTx)
 Check if the USART Framing Error Flag is set or not.
__STATIC_INLINE void DDL_USART_ClearFlag_FE (USART_TypeDef *USARTx)
 Clear Framing Error Flag.
__STATIC_INLINE uint32_t DDL_USART_IsActiveFlag_NE (USART_TypeDef *USARTx)
 Check if the USART Noise error detected Flag is set or not.
__STATIC_INLINE void DDL_USART_ClearFlag_NE (USART_TypeDef *USARTx)
 Clear Noise detected Flag.
__STATIC_INLINE uint32_t DDL_USART_IsActiveFlag_ORE (USART_TypeDef *USARTx)
 Check if the USART OverRun Error Flag is set or not.
__STATIC_INLINE void DDL_USART_ClearFlag_ORE (USART_TypeDef *USARTx)
 Clear OverRun Error Flag.
__STATIC_INLINE uint32_t DDL_USART_IsActiveFlag_IDLE (USART_TypeDef *USARTx)
 Check if the USART IDLE line detected Flag is set or not.
__STATIC_INLINE void DDL_USART_ClearFlag_IDLE (USART_TypeDef *USARTx)
 Clear IDLE line detected Flag.
__STATIC_INLINE uint32_t DDL_USART_IsActiveFlag_RXNE (USART_TypeDef *USARTx)
 Check if the USART Read Data Register Not Empty Flag is set or not.
__STATIC_INLINE void DDL_USART_ClearFlag_RXNE (USART_TypeDef *USARTx)
 Clear RX Not Empty Flag.
__STATIC_INLINE uint32_t DDL_USART_IsActiveFlag_TC (USART_TypeDef *USARTx)
 Check if the USART Transmission Complete Flag is set or not.
__STATIC_INLINE void DDL_USART_ClearFlag_TC (USART_TypeDef *USARTx)
 Clear Transmission Complete Flag.
__STATIC_INLINE uint32_t DDL_USART_IsActiveFlag_TXE (USART_TypeDef *USARTx)
 Check if the USART Transmit Data Register Empty Flag is set or not.
__STATIC_INLINE uint32_t DDL_USART_IsActiveFlag_LBD (USART_TypeDef *USARTx)
 Check if the USART LIN Break Detection Flag is set or not.
__STATIC_INLINE void DDL_USART_ClearFlag_LBD (USART_TypeDef *USARTx)
 Clear LIN Break Detection Flag.
__STATIC_INLINE uint32_t DDL_USART_IsActiveFlag_CTS (USART_TypeDef *USARTx)
 Check if the USART CTS Flag is set or not.
__STATIC_INLINE void DDL_USART_ClearFlag_CTS (USART_TypeDef *USARTx)
 Clear CTS Interrupt Flag.
__STATIC_INLINE uint32_t DDL_USART_IsActiveFlag_SBK (USART_TypeDef *USARTx)
 Check if the USART Send Break Flag is set or not.
__STATIC_INLINE uint32_t DDL_USART_IsActiveFlag_RWU (USART_TypeDef *USARTx)
 Check if the USART Receive Wake Up from mute mode Flag is set or not.

Detailed Description

Function Documentation

◆ DDL_USART_ClearFlag_CTS()

__STATIC_INLINE void DDL_USART_ClearFlag_CTS ( USART_TypeDef * USARTx)

Clear CTS Interrupt Flag.

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 1965 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_ClearFlag_FE()

__STATIC_INLINE void DDL_USART_ClearFlag_FE ( USART_TypeDef * USARTx)

Clear Framing Error Flag.

Note
Clearing this flag is done by a read access to the USARTx_SR register followed by a read access to the USARTx_DR register.
Please also consider that when clearing this flag, other flags as PE, NE, ORE, IDLE would also be cleared.
Parameters
USARTxUSART Instance
Return values
None

Definition at line 1779 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_ClearFlag_IDLE()

__STATIC_INLINE void DDL_USART_ClearFlag_IDLE ( USART_TypeDef * USARTx)

Clear IDLE line detected Flag.

Note
Clearing this flag is done by a read access to the USARTx_SR register followed by a read access to the USARTx_DR register.
Please also consider that when clearing this flag, other flags as PE, NE, FE, ORE would also be cleared.
Parameters
USARTxUSART Instance
Return values
None

Definition at line 1863 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_ClearFlag_LBD()

__STATIC_INLINE void DDL_USART_ClearFlag_LBD ( USART_TypeDef * USARTx)

Clear LIN Break Detection Flag.

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

Definition at line 1941 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_ClearFlag_NE()

__STATIC_INLINE void DDL_USART_ClearFlag_NE ( USART_TypeDef * USARTx)

Clear Noise detected Flag.

Note
Clearing this flag is done by a read access to the USARTx_SR register followed by a read access to the USARTx_DR register.
Please also consider that when clearing this flag, other flags as PE, FE, ORE, IDLE would also be cleared.
Parameters
USARTxUSART Instance
Return values
None

Definition at line 1807 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_ClearFlag_ORE()

__STATIC_INLINE void DDL_USART_ClearFlag_ORE ( USART_TypeDef * USARTx)

Clear OverRun Error Flag.

Note
Clearing this flag is done by a read access to the USARTx_SR register followed by a read access to the USARTx_DR register.
Please also consider that when clearing this flag, other flags as PE, NE, FE, IDLE would also be cleared.
Parameters
USARTxUSART Instance
Return values
None

Definition at line 1835 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_ClearFlag_PE()

__STATIC_INLINE void DDL_USART_ClearFlag_PE ( USART_TypeDef * USARTx)

Clear Parity Error Flag.

Note
Clearing this flag is done by a read access to the USARTx_SR register followed by a read access to the USARTx_DR register.
Please also consider that when clearing this flag, other flags as NE, FE, ORE, IDLE would also be cleared.
Parameters
USARTxUSART Instance
Return values
None

Definition at line 1751 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_ClearFlag_RXNE()

__STATIC_INLINE void DDL_USART_ClearFlag_RXNE ( USART_TypeDef * USARTx)

Clear RX Not Empty Flag.

Parameters
USARTxUSART Instance
Return values
None

Definition at line 1887 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_ClearFlag_TC()

__STATIC_INLINE void DDL_USART_ClearFlag_TC ( USART_TypeDef * USARTx)

Clear Transmission Complete Flag.

Parameters
USARTxUSART Instance
Return values
None

Definition at line 1907 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_IsActiveFlag_CTS()

__STATIC_INLINE uint32_t DDL_USART_IsActiveFlag_CTS ( USART_TypeDef * USARTx)

Check if the USART CTS Flag is set or not.

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
Stateof bit (1 or 0).

Definition at line 1953 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_IsActiveFlag_FE()

__STATIC_INLINE uint32_t DDL_USART_IsActiveFlag_FE ( USART_TypeDef * USARTx)

Check if the USART Framing Error Flag is set or not.

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

Definition at line 1765 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_IsActiveFlag_IDLE()

__STATIC_INLINE uint32_t DDL_USART_IsActiveFlag_IDLE ( USART_TypeDef * USARTx)

Check if the USART IDLE line detected Flag is set or not.

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

Definition at line 1849 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_IsActiveFlag_LBD()

__STATIC_INLINE uint32_t DDL_USART_IsActiveFlag_LBD ( USART_TypeDef * USARTx)

Check if the USART LIN Break Detection Flag is set or not.

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

Definition at line 1929 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_IsActiveFlag_NE()

__STATIC_INLINE uint32_t DDL_USART_IsActiveFlag_NE ( USART_TypeDef * USARTx)

Check if the USART Noise error detected Flag is set or not.

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

Definition at line 1793 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_IsActiveFlag_ORE()

__STATIC_INLINE uint32_t DDL_USART_IsActiveFlag_ORE ( USART_TypeDef * USARTx)

Check if the USART OverRun Error Flag is set or not.

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

Definition at line 1821 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_IsActiveFlag_PE()

__STATIC_INLINE uint32_t DDL_USART_IsActiveFlag_PE ( USART_TypeDef * USARTx)

Check if the USART Parity Error Flag is set or not.

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

Definition at line 1737 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_IsActiveFlag_RWU()

__STATIC_INLINE uint32_t DDL_USART_IsActiveFlag_RWU ( USART_TypeDef * USARTx)

Check if the USART Receive Wake Up from mute mode Flag is set or not.

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

Definition at line 1985 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_IsActiveFlag_RXNE()

__STATIC_INLINE uint32_t DDL_USART_IsActiveFlag_RXNE ( USART_TypeDef * USARTx)

Check if the USART Read Data Register Not Empty Flag is set or not.

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

Definition at line 1877 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_IsActiveFlag_SBK()

__STATIC_INLINE uint32_t DDL_USART_IsActiveFlag_SBK ( USART_TypeDef * USARTx)

Check if the USART Send Break Flag is set or not.

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

Definition at line 1975 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_IsActiveFlag_TC()

__STATIC_INLINE uint32_t DDL_USART_IsActiveFlag_TC ( USART_TypeDef * USARTx)

Check if the USART Transmission Complete Flag is set or not.

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

Definition at line 1897 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_IsActiveFlag_TXE()

__STATIC_INLINE uint32_t DDL_USART_IsActiveFlag_TXE ( USART_TypeDef * USARTx)

Check if the USART Transmit Data Register Empty Flag is set or not.

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

Definition at line 1917 of file g32r4xx_ddl_usart.h.