Hal Drivers for L4
Dependents: BSP OneHopeOnePrayer FINAL_AUDIO_RECORD AudioDemo
Fork of STM32L4xx_HAL_Driver 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 1738 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 1699 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 1725 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 1686 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 (0..7)
Definition at line 1783 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 (0..0xFF)
Definition at line 1841 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 (0..31)
Definition at line 1812 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 1751 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 1712 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:
- 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)
- 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_SetSmartcardAutoRetryCount
- Parameters:
-
USARTx USART Instance AutoRetryCount 0..7
- Return values:
-
None
Definition at line 1770 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 0..0xFF
- Return values:
-
None
Definition at line 1827 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 0..31
- Return values:
-
None
Definition at line 1798 of file stm32l4xx_ll_usart.h.
Generated on Tue Jul 12 2022 11:35:29 by 1.7.2