STM32L486xx HAL User Manual
Functions
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.
Reference Manual to LL API cross reference:
CR3 SCEN LL_USART_DisableSmartcard
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 2305 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.
Reference Manual to LL API cross reference:
CR3 NACK LL_USART_DisableSmartcardNACK
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 2266 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.
Reference Manual to LL API cross reference:
CR3 SCEN LL_USART_EnableSmartcard
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 2292 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.
Reference Manual to LL API cross reference:
CR3 NACK LL_USART_EnableSmartcardNACK
Parameters:
USARTxUSART Instance
Return values:
None

Definition at line 2253 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.
Reference Manual to LL API cross reference:
CR3 SCARCNT LL_USART_GetSmartcardAutoRetryCount
Parameters:
USARTxUSART Instance
Return values:
SmartcardAuto-Retry Count value (Value between Min_Data=0 and Max_Data=7)

Definition at line 2350 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.
Reference Manual to LL API cross reference:
GTPR GT LL_USART_GetSmartcardGuardTime
Parameters:
USARTxUSART Instance
Return values:
SmartcardGuard time value (Value between Min_Data=0x00 and Max_Data=0xFF)

Definition at line 2408 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.
Reference Manual to LL API cross reference:
GTPR PSC LL_USART_GetSmartcardPrescaler
Parameters:
USARTxUSART Instance
Return values:
Smartcardprescaler value (Value between Min_Data=0 and Max_Data=31)

Definition at line 2379 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.
Reference Manual to LL API cross reference:
CR3 SCEN LL_USART_IsEnabledSmartcard
Parameters:
USARTxUSART Instance
Return values:
Stateof bit (1 or 0).

Definition at line 2318 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.
Reference Manual to LL API cross reference:
CR3 NACK LL_USART_IsEnabledSmartcardNACK
Parameters:
USARTxUSART Instance
Return values:
Stateof bit (1 or 0).

Definition at line 2279 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)
Reference Manual to LL API cross reference:
CR3 SCARCNT LL_USART_SetSmartcardAutoRetryCount
Parameters:
USARTxUSART Instance
AutoRetryCountValue between Min_Data=0 and Max_Data=7
Return values:
None

Definition at line 2337 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.
Reference Manual to LL API cross reference:
GTPR GT LL_USART_SetSmartcardGuardTime
Parameters:
USARTxUSART Instance
GuardTimeValue between Min_Data=0x00 and Max_Data=0xFF
Return values:
None

Definition at line 2394 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.
Reference Manual to LL API cross reference:
GTPR PSC LL_USART_SetSmartcardPrescaler
Parameters:
USARTxUSART Instance
PrescalerValueValue between Min_Data=0 and Max_Data=31
Return values:
None

Definition at line 2365 of file stm32l4xx_ll_usart.h.