LL_USART_ConfigSmartcardMode() function
Perform basic configuration of USART for enabling use in Smartcard Mode
Arguments
Return value
None
Notes
In Smartcard mode, the following bits must be kept cleared: - LINEN bit in the USART_CR2 register, - IREN bit in the USART_CR3 register, - HDSEL bit in the USART_CR3 register. This function also configures Stop bits to 1.5 bits and sets the USART in Smartcard mode (SCEN bit). Clock Output is also enabled (CLKEN). Macro IS_SMARTCARD_INSTANCE(USARTx) can be used to check whether or not Smartcard feature is supported by the USARTx instance. Call of this function is equivalent to following function call sequence : - Clear LINEN in CR2 using LL_USART_DisableLIN() function - Clear IREN in CR3 using LL_USART_DisableIrda() function - Clear HDSEL in CR3 using LL_USART_DisableHalfDuplex() function - Configure STOP in CR2 using LL_USART_SetStopBitsLength() function - Set CLKEN in CR2 using LL_USART_EnableSCLKOutput() function - Set SCEN in CR3 using LL_USART_EnableSmartcard() function Other remaining configurations items related to Smartcard Mode (as Baud Rate, Word length, Parity, ...) should be set using dedicated functions CR2 STOP LL_USART_ConfigSmartcardMode\n CR2 CLKEN LL_USART_ConfigSmartcardMode\n CR3 HDSEL LL_USART_ConfigSmartcardMode\n CR3 SCEN LL_USART_ConfigSmartcardMode
Data read by LL_USART_ConfigSmartcardMode()
LL_USART_ConfigSmartcardMode()