G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
Configuration functions related to Irda feature

Functions

__STATIC_INLINE void DDL_USART_EnableIrda (USART_TypeDef *USARTx)
 Enable IrDA mode.
__STATIC_INLINE void DDL_USART_DisableIrda (USART_TypeDef *USARTx)
 Disable IrDA mode.
__STATIC_INLINE uint32_t DDL_USART_IsEnabledIrda (USART_TypeDef *USARTx)
 Indicate if IrDA mode is enabled.
__STATIC_INLINE void DDL_USART_SetIrdaPowerMode (USART_TypeDef *USARTx, uint32_t PowerMode)
 Configure IrDA Power Mode (Normal or Low Power).
__STATIC_INLINE uint32_t DDL_USART_GetIrdaPowerMode (USART_TypeDef *USARTx)
 Retrieve IrDA Power Mode configuration (Normal or Low Power).
__STATIC_INLINE void DDL_USART_SetIrdaPrescaler (USART_TypeDef *USARTx, uint32_t PrescalerValue)
 Set Irda prescaler value, used for dividing the USART clock source to achieve the Irda Low Power frequency (8 bits value).
__STATIC_INLINE uint32_t DDL_USART_GetIrdaPrescaler (USART_TypeDef *USARTx)
 Return Irda prescaler value, used for dividing the USART clock source to achieve the Irda Low Power frequency (8 bits value).

Detailed Description

Function Documentation

◆ DDL_USART_DisableIrda()

__STATIC_INLINE void DDL_USART_DisableIrda ( USART_TypeDef * USARTx)

Disable IrDA mode.

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

Definition at line 1160 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_EnableIrda()

__STATIC_INLINE void DDL_USART_EnableIrda ( USART_TypeDef * USARTx)

Enable IrDA mode.

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

Definition at line 1148 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_GetIrdaPowerMode()

__STATIC_INLINE uint32_t DDL_USART_GetIrdaPowerMode ( USART_TypeDef * USARTx)

Retrieve IrDA Power Mode configuration (Normal or Low Power).

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

Definition at line 1201 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_GetIrdaPrescaler()

__STATIC_INLINE uint32_t DDL_USART_GetIrdaPrescaler ( USART_TypeDef * USARTx)

Return Irda prescaler value, used for dividing the USART clock source to achieve the Irda Low Power frequency (8 bits value).

Note
Macro IS_IRDA_INSTANCE(USARTx) can be used to check whether or not IrDA feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
Return values
Irdaprescaler value (Value between Min_Data=0x00 and Max_Data=0xFF)

Definition at line 1228 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_IsEnabledIrda()

__STATIC_INLINE uint32_t DDL_USART_IsEnabledIrda ( USART_TypeDef * USARTx)

Indicate if IrDA mode is enabled.

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

Definition at line 1172 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_SetIrdaPowerMode()

__STATIC_INLINE void DDL_USART_SetIrdaPowerMode ( USART_TypeDef * USARTx,
uint32_t PowerMode )

Configure IrDA Power Mode (Normal or Low Power).

Note
Macro IS_IRDA_INSTANCE(USARTx) can be used to check whether or not IrDA feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
PowerModeThis parameter can be one of the following values:
Return values
None

Definition at line 1187 of file g32r4xx_ddl_usart.h.

◆ DDL_USART_SetIrdaPrescaler()

__STATIC_INLINE void DDL_USART_SetIrdaPrescaler ( USART_TypeDef * USARTx,
uint32_t PrescalerValue )

Set Irda prescaler value, used for dividing the USART clock source to achieve the Irda Low Power frequency (8 bits value).

Note
Macro IS_IRDA_INSTANCE(USARTx) can be used to check whether or not IrDA feature is supported by the USARTx instance.
Parameters
USARTxUSART Instance
PrescalerValueValue between Min_Data=0x00 and Max_Data=0xFF
Return values
None

Definition at line 1215 of file g32r4xx_ddl_usart.h.