Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of TUKS-COURSE-TIMER by
Configuration functions related to Irda feature
[USART Exported Functions]
Functions | |
__STATIC_INLINE void | LL_USART_EnableIrda (USART_TypeDef *USARTx) |
Enable IrDA mode. | |
__STATIC_INLINE void | LL_USART_DisableIrda (USART_TypeDef *USARTx) |
Disable IrDA mode. | |
__STATIC_INLINE uint32_t | LL_USART_IsEnabledIrda (USART_TypeDef *USARTx) |
Indicate if IrDA mode is enabled. | |
__STATIC_INLINE void | LL_USART_SetIrdaPowerMode (USART_TypeDef *USARTx, uint32_t PowerMode) |
Configure IrDA Power Mode (Normal or Low Power) | |
__STATIC_INLINE uint32_t | LL_USART_GetIrdaPowerMode (USART_TypeDef *USARTx) |
Retrieve IrDA Power Mode configuration (Normal or Low Power) | |
__STATIC_INLINE void | LL_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 | LL_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) |
Function Documentation
__STATIC_INLINE void LL_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. CR3 IREN LL_USART_DisableIrda
- Parameters:
-
USARTx USART Instance
- Return values:
-
None
Definition at line 1724 of file stm32l4xx_ll_usart.h.
__STATIC_INLINE void LL_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. CR3 IREN LL_USART_EnableIrda
- Parameters:
-
USARTx USART Instance
- Return values:
-
None
Definition at line 1711 of file stm32l4xx_ll_usart.h.
__STATIC_INLINE uint32_t LL_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. CR3 IRLP LL_USART_GetIrdaPowerMode
- Parameters:
-
USARTx USART Instance
- Return values:
-
Returned value can be one of the following values: - LL_USART_IRDA_POWER_NORMAL
- LL_USART_PHASE_2EDGE
Definition at line 1768 of file stm32l4xx_ll_usart.h.
__STATIC_INLINE uint32_t LL_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. GTPR PSC LL_USART_GetIrdaPrescaler
- Parameters:
-
USARTx USART Instance
- Return values:
-
Irda prescaler value (Value between Min_Data=0x00 and Max_Data=0xFF)
Definition at line 1797 of file stm32l4xx_ll_usart.h.
__STATIC_INLINE uint32_t LL_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. CR3 IREN LL_USART_IsEnabledIrda
- Parameters:
-
USARTx USART Instance
- Return values:
-
State of bit (1 or 0).
Definition at line 1737 of file stm32l4xx_ll_usart.h.
__STATIC_INLINE void LL_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. CR3 IRLP LL_USART_SetIrdaPowerMode
- Parameters:
-
USARTx USART Instance PowerMode This parameter can be one of the following values: - LL_USART_IRDA_POWER_NORMAL
- LL_USART_IRDA_POWER_LOW
- Return values:
-
None
Definition at line 1753 of file stm32l4xx_ll_usart.h.
__STATIC_INLINE void LL_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. GTPR PSC LL_USART_SetIrdaPrescaler
- Parameters:
-
USARTx USART Instance PrescalerValue Value between Min_Data=0x00 and Max_Data=0xFF
- Return values:
-
None
Definition at line 1783 of file stm32l4xx_ll_usart.h.
Generated on Tue Jul 12 2022 17:38:59 by
