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 Smartcard feature
[USART Exported Functions]
Functions | |
__STATIC_INLINE void | LL_USART_EnableSmartcardNACK (USART_TypeDef *USARTx) |
Enable Smartcard NACK transmission. | |
__STATIC_INLINE void | LL_USART_DisableSmartcardNACK (USART_TypeDef *USARTx) |
Disable Smartcard NACK transmission. | |
__STATIC_INLINE uint32_t | LL_USART_IsEnabledSmartcardNACK (USART_TypeDef *USARTx) |
Indicate if Smartcard NACK transmission is enabled. | |
__STATIC_INLINE void | LL_USART_EnableSmartcard (USART_TypeDef *USARTx) |
Enable Smartcard mode. | |
__STATIC_INLINE void | LL_USART_DisableSmartcard (USART_TypeDef *USARTx) |
Disable Smartcard mode. | |
__STATIC_INLINE uint32_t | LL_USART_IsEnabledSmartcard (USART_TypeDef *USARTx) |
Indicate if Smartcard mode is enabled. | |
__STATIC_INLINE void | LL_USART_SetSmartcardAutoRetryCount (USART_TypeDef *USARTx, uint32_t AutoRetryCount) |
Set Smartcard Auto-Retry Count value (SCARCNT[2:0] bits) | |
__STATIC_INLINE uint32_t | LL_USART_GetSmartcardAutoRetryCount (USART_TypeDef *USARTx) |
Return Smartcard Auto-Retry Count value (SCARCNT[2:0] bits) | |
__STATIC_INLINE void | LL_USART_SetSmartcardPrescaler (USART_TypeDef *USARTx, uint32_t PrescalerValue) |
Set Smartcard prescaler value, used for dividing the USART clock source to provide the SMARTCARD Clock (5 bits value) | |
__STATIC_INLINE uint32_t | LL_USART_GetSmartcardPrescaler (USART_TypeDef *USARTx) |
Return Smartcard prescaler value, used for dividing the USART clock source to provide the SMARTCARD Clock (5 bits value) | |
__STATIC_INLINE void | LL_USART_SetSmartcardGuardTime (USART_TypeDef *USARTx, uint32_t GuardTime) |
Set Smartcard Guard time value, expressed in nb of baud clocks periods (GT[7:0] bits : Guard time value) | |
__STATIC_INLINE uint32_t | LL_USART_GetSmartcardGuardTime (USART_TypeDef *USARTx) |
Return Smartcard Guard time value, expressed in nb of baud clocks periods (GT[7:0] bits : Guard time value) |
Function Documentation
__STATIC_INLINE void LL_USART_DisableSmartcard | ( | USART_TypeDef * | USARTx ) |
Disable Smartcard mode.
- Note:
- Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance. CR3 SCEN LL_USART_DisableSmartcard
- Parameters:
-
USARTx USART Instance
- Return values:
-
None
Definition at line 1870 of file stm32l4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_DisableSmartcardNACK | ( | USART_TypeDef * | USARTx ) |
Disable Smartcard NACK transmission.
- Note:
- Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance. CR3 NACK LL_USART_DisableSmartcardNACK
- Parameters:
-
USARTx USART Instance
- Return values:
-
None
Definition at line 1831 of file stm32l4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_EnableSmartcard | ( | USART_TypeDef * | USARTx ) |
Enable Smartcard mode.
- Note:
- Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance. CR3 SCEN LL_USART_EnableSmartcard
- Parameters:
-
USARTx USART Instance
- Return values:
-
None
Definition at line 1857 of file stm32l4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_EnableSmartcardNACK | ( | USART_TypeDef * | USARTx ) |
Enable Smartcard NACK transmission.
- Note:
- Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance. CR3 NACK LL_USART_EnableSmartcardNACK
- Parameters:
-
USARTx USART Instance
- Return values:
-
None
Definition at line 1818 of file stm32l4xx_ll_usart.h.
__STATIC_INLINE uint32_t LL_USART_GetSmartcardAutoRetryCount | ( | USART_TypeDef * | USARTx ) |
Return Smartcard Auto-Retry Count value (SCARCNT[2:0] bits)
- Note:
- Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance. CR3 SCARCNT LL_USART_GetSmartcardAutoRetryCount
- Parameters:
-
USARTx USART Instance
- Return values:
-
Smartcard Auto-Retry Count value (Value between Min_Data=0 and Max_Data=7)
Definition at line 1915 of file stm32l4xx_ll_usart.h.
__STATIC_INLINE uint32_t LL_USART_GetSmartcardGuardTime | ( | USART_TypeDef * | USARTx ) |
Return Smartcard Guard time value, expressed in nb of baud clocks periods (GT[7:0] bits : Guard time value)
- Note:
- Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance. GTPR GT LL_USART_GetSmartcardGuardTime
- Parameters:
-
USARTx USART Instance
- Return values:
-
Smartcard Guard time value (Value between Min_Data=0x00 and Max_Data=0xFF)
Definition at line 1973 of file stm32l4xx_ll_usart.h.
__STATIC_INLINE uint32_t LL_USART_GetSmartcardPrescaler | ( | USART_TypeDef * | USARTx ) |
Return Smartcard prescaler value, used for dividing the USART clock source to provide the SMARTCARD Clock (5 bits value)
- Note:
- Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance. GTPR PSC LL_USART_GetSmartcardPrescaler
- Parameters:
-
USARTx USART Instance
- Return values:
-
Smartcard prescaler value (Value between Min_Data=0 and Max_Data=31)
Definition at line 1944 of file stm32l4xx_ll_usart.h.
__STATIC_INLINE uint32_t LL_USART_IsEnabledSmartcard | ( | USART_TypeDef * | USARTx ) |
Indicate if Smartcard mode is enabled.
- Note:
- Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance. CR3 SCEN LL_USART_IsEnabledSmartcard
- Parameters:
-
USARTx USART Instance
- Return values:
-
State of bit (1 or 0).
Definition at line 1883 of file stm32l4xx_ll_usart.h.
__STATIC_INLINE uint32_t LL_USART_IsEnabledSmartcardNACK | ( | USART_TypeDef * | USARTx ) |
Indicate if Smartcard NACK transmission is enabled.
- Note:
- Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance. CR3 NACK LL_USART_IsEnabledSmartcardNACK
- Parameters:
-
USARTx USART Instance
- Return values:
-
State of bit (1 or 0).
Definition at line 1844 of file stm32l4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_SetSmartcardAutoRetryCount | ( | USART_TypeDef * | USARTx, |
uint32_t | AutoRetryCount | ||
) |
Set Smartcard Auto-Retry Count value (SCARCNT[2:0] bits)
- Note:
- Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance.
- This bit-field specifies the number of retries in transmit and receive, in Smartcard mode. In transmission mode, it specifies the number of automatic retransmission retries, before generating a transmission error (FE bit set). In reception mode, it specifies the number or erroneous reception trials, before generating a reception error (RXNE and PE bits set) CR3 SCARCNT LL_USART_SetSmartcardAutoRetryCount
- Parameters:
-
USARTx USART Instance AutoRetryCount Value between Min_Data=0 and Max_Data=7
- Return values:
-
None
Definition at line 1902 of file stm32l4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_SetSmartcardGuardTime | ( | USART_TypeDef * | USARTx, |
uint32_t | GuardTime | ||
) |
Set Smartcard Guard time value, expressed in nb of baud clocks periods (GT[7:0] bits : Guard time value)
- Note:
- Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance. GTPR GT LL_USART_SetSmartcardGuardTime
- Parameters:
-
USARTx USART Instance GuardTime Value between Min_Data=0x00 and Max_Data=0xFF
- Return values:
-
None
Definition at line 1959 of file stm32l4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_SetSmartcardPrescaler | ( | USART_TypeDef * | USARTx, |
uint32_t | PrescalerValue | ||
) |
Set Smartcard prescaler value, used for dividing the USART clock source to provide the SMARTCARD Clock (5 bits value)
- Note:
- Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance. GTPR PSC LL_USART_SetSmartcardPrescaler
- Parameters:
-
USARTx USART Instance PrescalerValue Value between Min_Data=0 and Max_Data=31
- Return values:
-
None
Definition at line 1930 of file stm32l4xx_ll_usart.h.
Generated on Tue Jul 12 2022 17:38:59 by
