HAL
LL_USART_ConfigIrdaMode() is only used within HAL.
 
Symbols
loading...
Files
loading...
SummarySyntaxArgumentsRelatedReferences

Return value

None

Notes

In IRDA mode, the following bits must be kept cleared: - LINEN bit in the USART_CR2 register, - STOP and CLKEN bits in the USART_CR2 register, - SCEN bit in the USART_CR3 register, - HDSEL bit in the USART_CR3 register. This function also sets the UART/USART in IRDA mode (IREN bit). Macro IS_IRDA_INSTANCE(USARTx) can be used to check whether or not IrDA 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 CLKEN in CR2 using LL_USART_DisableSCLKOutput() function - Clear SCEN in CR3 using LL_USART_DisableSmartcard() function - Clear HDSEL in CR3 using LL_USART_DisableHalfDuplex() function - Configure STOP in CR2 using LL_USART_SetStopBitsLength() function - Set IREN in CR3 using LL_USART_EnableIrda() function Other remaining configurations items related to Irda Mode (as Baud Rate, Word length, Power mode, ...) should be set using dedicated functions CR2 CLKEN LL_USART_ConfigIrdaMode\n CR2 STOP LL_USART_ConfigIrdaMode\n CR3 SCEN LL_USART_ConfigIrdaMode\n CR3 HDSEL LL_USART_ConfigIrdaMode\n CR3 IREN LL_USART_ConfigIrdaMode

References

from examples