|
STM32L4xx_HAL_Driver
1.14.0
|
Functions | |
| __STATIC_INLINE void | LL_USART_Enable (USART_TypeDef *USARTx) |
| USART Enable CR1 UE LL_USART_Enable. More... | |
| __STATIC_INLINE void | LL_USART_Disable (USART_TypeDef *USARTx) |
| USART Disable (all USART prescalers and outputs are disabled) More... | |
| __STATIC_INLINE uint32_t | LL_USART_IsEnabled (USART_TypeDef *USARTx) |
| Indicate if USART is enabled CR1 UE LL_USART_IsEnabled. More... | |
| __STATIC_INLINE void | LL_USART_EnableFIFO (USART_TypeDef *USARTx) |
| FIFO Mode Enable. More... | |
| __STATIC_INLINE void | LL_USART_DisableFIFO (USART_TypeDef *USARTx) |
| FIFO Mode Disable. More... | |
| __STATIC_INLINE uint32_t | LL_USART_IsEnabledFIFO (USART_TypeDef *USARTx) |
| Indicate if FIFO Mode is enabled. More... | |
| __STATIC_INLINE void | LL_USART_SetTXFIFOThreshold (USART_TypeDef *USARTx, uint32_t Threshold) |
| Configure TX FIFO Threshold. More... | |
| __STATIC_INLINE uint32_t | LL_USART_GetTXFIFOThreshold (USART_TypeDef *USARTx) |
| Return TX FIFO Threshold Configuration. More... | |
| __STATIC_INLINE void | LL_USART_SetRXFIFOThreshold (USART_TypeDef *USARTx, uint32_t Threshold) |
| Configure RX FIFO Threshold. More... | |
| __STATIC_INLINE uint32_t | LL_USART_GetRXFIFOThreshold (USART_TypeDef *USARTx) |
| Return RX FIFO Threshold Configuration. More... | |
| __STATIC_INLINE void | LL_USART_ConfigFIFOsThreshold (USART_TypeDef *USARTx, uint32_t TXThreshold, uint32_t RXThreshold) |
| Configure TX and RX FIFOs Threshold. More... | |
| __STATIC_INLINE void | LL_USART_EnableInStopMode (USART_TypeDef *USARTx) |
| USART enabled in STOP Mode. More... | |
| __STATIC_INLINE void | LL_USART_DisableInStopMode (USART_TypeDef *USARTx) |
| USART disabled in STOP Mode. More... | |
| __STATIC_INLINE uint32_t | LL_USART_IsEnabledInStopMode (USART_TypeDef *USARTx) |
| Indicate if USART is enabled in STOP Mode (able to wake up MCU from Stop mode or not) More... | |
| __STATIC_INLINE void | LL_USART_EnableClockInStopMode (USART_TypeDef *USARTx) |
| USART Clock enabled in STOP Mode. More... | |
| __STATIC_INLINE void | LL_USART_DisableClockInStopMode (USART_TypeDef *USARTx) |
| USART clock disabled in STOP Mode. More... | |
| __STATIC_INLINE uint32_t | LL_USART_IsClockEnabledInStopMode (USART_TypeDef *USARTx) |
| Indicate if USART clock is enabled in STOP Mode CR3 UCESM LL_USART_IsClockEnabledInStopMode. More... | |
| __STATIC_INLINE void | LL_USART_EnableDirectionRx (USART_TypeDef *USARTx) |
| Receiver Enable (Receiver is enabled and begins searching for a start bit) CR1 RE LL_USART_EnableDirectionRx. More... | |
| __STATIC_INLINE void | LL_USART_DisableDirectionRx (USART_TypeDef *USARTx) |
| Receiver Disable CR1 RE LL_USART_DisableDirectionRx. More... | |
| __STATIC_INLINE void | LL_USART_EnableDirectionTx (USART_TypeDef *USARTx) |
| Transmitter Enable CR1 TE LL_USART_EnableDirectionTx. More... | |
| __STATIC_INLINE void | LL_USART_DisableDirectionTx (USART_TypeDef *USARTx) |
| Transmitter Disable CR1 TE LL_USART_DisableDirectionTx. More... | |
| __STATIC_INLINE void | LL_USART_SetTransferDirection (USART_TypeDef *USARTx, uint32_t TransferDirection) |
| Configure simultaneously enabled/disabled states of Transmitter and Receiver CR1 RE LL_USART_SetTransferDirection CR1 TE LL_USART_SetTransferDirection. More... | |
| __STATIC_INLINE uint32_t | LL_USART_GetTransferDirection (USART_TypeDef *USARTx) |
| Return enabled/disabled states of Transmitter and Receiver CR1 RE LL_USART_GetTransferDirection CR1 TE LL_USART_GetTransferDirection. More... | |
| __STATIC_INLINE void | LL_USART_SetParity (USART_TypeDef *USARTx, uint32_t Parity) |
| Configure Parity (enabled/disabled and parity mode if enabled). More... | |
| __STATIC_INLINE uint32_t | LL_USART_GetParity (USART_TypeDef *USARTx) |
| Return Parity configuration (enabled/disabled and parity mode if enabled) CR1 PS LL_USART_GetParity CR1 PCE LL_USART_GetParity. More... | |
| __STATIC_INLINE void | LL_USART_SetWakeUpMethod (USART_TypeDef *USARTx, uint32_t Method) |
| Set Receiver Wake Up method from Mute mode. CR1 WAKE LL_USART_SetWakeUpMethod. More... | |
| __STATIC_INLINE uint32_t | LL_USART_GetWakeUpMethod (USART_TypeDef *USARTx) |
| Return Receiver Wake Up method from Mute mode CR1 WAKE LL_USART_GetWakeUpMethod. More... | |
| __STATIC_INLINE void | LL_USART_SetDataWidth (USART_TypeDef *USARTx, uint32_t DataWidth) |
| Set Word length (i.e. nb of data bits, excluding start and stop bits) CR1 M0 LL_USART_SetDataWidth CR1 M1 LL_USART_SetDataWidth. More... | |
| __STATIC_INLINE uint32_t | LL_USART_GetDataWidth (USART_TypeDef *USARTx) |
| Return Word length (i.e. nb of data bits, excluding start and stop bits) CR1 M0 LL_USART_GetDataWidth CR1 M1 LL_USART_GetDataWidth. More... | |
| __STATIC_INLINE void | LL_USART_EnableMuteMode (USART_TypeDef *USARTx) |
| Allow switch between Mute Mode and Active mode CR1 MME LL_USART_EnableMuteMode. More... | |
| __STATIC_INLINE void | LL_USART_DisableMuteMode (USART_TypeDef *USARTx) |
| Prevent Mute Mode use. Set Receiver in active mode permanently. CR1 MME LL_USART_DisableMuteMode. More... | |
| __STATIC_INLINE uint32_t | LL_USART_IsEnabledMuteMode (USART_TypeDef *USARTx) |
| Indicate if switch between Mute Mode and Active mode is allowed CR1 MME LL_USART_IsEnabledMuteMode. More... | |
| __STATIC_INLINE void | LL_USART_SetOverSampling (USART_TypeDef *USARTx, uint32_t OverSampling) |
| Set Oversampling to 8-bit or 16-bit mode CR1 OVER8 LL_USART_SetOverSampling. More... | |
| __STATIC_INLINE uint32_t | LL_USART_GetOverSampling (USART_TypeDef *USARTx) |
| Return Oversampling mode CR1 OVER8 LL_USART_GetOverSampling. More... | |
| __STATIC_INLINE void | LL_USART_SetLastClkPulseOutput (USART_TypeDef *USARTx, uint32_t LastBitClockPulse) |
| Configure if Clock pulse of the last data bit is output to the SCLK pin or not. More... | |
| __STATIC_INLINE uint32_t | LL_USART_GetLastClkPulseOutput (USART_TypeDef *USARTx) |
| Retrieve Clock pulse of the last data bit output configuration (Last bit Clock pulse output to the SCLK pin or not) More... | |
| __STATIC_INLINE void | LL_USART_SetClockPhase (USART_TypeDef *USARTx, uint32_t ClockPhase) |
| Select the phase of the clock output on the SCLK pin in synchronous mode. More... | |
| __STATIC_INLINE uint32_t | LL_USART_GetClockPhase (USART_TypeDef *USARTx) |
| Return phase of the clock output on the SCLK pin in synchronous mode. More... | |
| __STATIC_INLINE void | LL_USART_SetClockPolarity (USART_TypeDef *USARTx, uint32_t ClockPolarity) |
| Select the polarity of the clock output on the SCLK pin in synchronous mode. More... | |
| __STATIC_INLINE uint32_t | LL_USART_GetClockPolarity (USART_TypeDef *USARTx) |
| Return polarity of the clock output on the SCLK pin in synchronous mode. More... | |
| __STATIC_INLINE void | LL_USART_ConfigClock (USART_TypeDef *USARTx, uint32_t Phase, uint32_t Polarity, uint32_t LBCPOutput) |
| Configure Clock signal format (Phase Polarity and choice about output of last bit clock pulse) More... | |
| __STATIC_INLINE void | LL_USART_SetPrescaler (USART_TypeDef *USARTx, uint32_t PrescalerValue) |
| Configure Clock source prescaler for baudrate generator and oversampling. More... | |
| __STATIC_INLINE uint32_t | LL_USART_GetPrescaler (USART_TypeDef *USARTx) |
| Retrieve the Clock source prescaler for baudrate generator and oversampling. More... | |
| __STATIC_INLINE void | LL_USART_EnableSCLKOutput (USART_TypeDef *USARTx) |
| Enable Clock output on SCLK pin. More... | |
| __STATIC_INLINE void | LL_USART_DisableSCLKOutput (USART_TypeDef *USARTx) |
| Disable Clock output on SCLK pin. More... | |
| __STATIC_INLINE uint32_t | LL_USART_IsEnabledSCLKOutput (USART_TypeDef *USARTx) |
| Indicate if Clock output on SCLK pin is enabled. More... | |
| __STATIC_INLINE void | LL_USART_SetStopBitsLength (USART_TypeDef *USARTx, uint32_t StopBits) |
| Set the length of the stop bits CR2 STOP LL_USART_SetStopBitsLength. More... | |
| __STATIC_INLINE uint32_t | LL_USART_GetStopBitsLength (USART_TypeDef *USARTx) |
| Retrieve the length of the stop bits CR2 STOP LL_USART_GetStopBitsLength. More... | |
| __STATIC_INLINE void | LL_USART_ConfigCharacter (USART_TypeDef *USARTx, uint32_t DataWidth, uint32_t Parity, uint32_t StopBits) |
| Configure Character frame format (Datawidth, Parity control, Stop Bits) More... | |
| __STATIC_INLINE void | LL_USART_SetTXRXSwap (USART_TypeDef *USARTx, uint32_t SwapConfig) |
| Configure TX/RX pins swapping setting. CR2 SWAP LL_USART_SetTXRXSwap. More... | |
| __STATIC_INLINE uint32_t | LL_USART_GetTXRXSwap (USART_TypeDef *USARTx) |
| Retrieve TX/RX pins swapping configuration. CR2 SWAP LL_USART_GetTXRXSwap. More... | |
| __STATIC_INLINE void | LL_USART_SetRXPinLevel (USART_TypeDef *USARTx, uint32_t PinInvMethod) |
| Configure RX pin active level logic CR2 RXINV LL_USART_SetRXPinLevel. More... | |
| __STATIC_INLINE uint32_t | LL_USART_GetRXPinLevel (USART_TypeDef *USARTx) |
| Retrieve RX pin active level logic configuration CR2 RXINV LL_USART_GetRXPinLevel. More... | |
| __STATIC_INLINE void | LL_USART_SetTXPinLevel (USART_TypeDef *USARTx, uint32_t PinInvMethod) |
| Configure TX pin active level logic CR2 TXINV LL_USART_SetTXPinLevel. More... | |
| __STATIC_INLINE uint32_t | LL_USART_GetTXPinLevel (USART_TypeDef *USARTx) |
| Retrieve TX pin active level logic configuration CR2 TXINV LL_USART_GetTXPinLevel. More... | |
| __STATIC_INLINE void | LL_USART_SetBinaryDataLogic (USART_TypeDef *USARTx, uint32_t DataLogic) |
| Configure Binary data logic. More... | |
| __STATIC_INLINE uint32_t | LL_USART_GetBinaryDataLogic (USART_TypeDef *USARTx) |
| Retrieve Binary data configuration CR2 DATAINV LL_USART_GetBinaryDataLogic. More... | |
| __STATIC_INLINE void | LL_USART_SetTransferBitOrder (USART_TypeDef *USARTx, uint32_t BitOrder) |
| Configure transfer bit order (either Less or Most Significant Bit First) More... | |
| __STATIC_INLINE uint32_t | LL_USART_GetTransferBitOrder (USART_TypeDef *USARTx) |
| Return transfer bit order (either Less or Most Significant Bit First) More... | |
| __STATIC_INLINE void | LL_USART_EnableAutoBaudRate (USART_TypeDef *USARTx) |
| Enable Auto Baud-Rate Detection. More... | |
| __STATIC_INLINE void | LL_USART_DisableAutoBaudRate (USART_TypeDef *USARTx) |
| Disable Auto Baud-Rate Detection. More... | |
| __STATIC_INLINE uint32_t | LL_USART_IsEnabledAutoBaud (USART_TypeDef *USARTx) |
| Indicate if Auto Baud-Rate Detection mechanism is enabled. More... | |
| __STATIC_INLINE void | LL_USART_SetAutoBaudRateMode (USART_TypeDef *USARTx, uint32_t AutoBaudRateMode) |
| Set Auto Baud-Rate mode bits. More... | |
| __STATIC_INLINE uint32_t | LL_USART_GetAutoBaudRateMode (USART_TypeDef *USARTx) |
| Return Auto Baud-Rate mode. More... | |
| __STATIC_INLINE void | LL_USART_EnableRxTimeout (USART_TypeDef *USARTx) |
| Enable Receiver Timeout CR2 RTOEN LL_USART_EnableRxTimeout. More... | |
| __STATIC_INLINE void | LL_USART_DisableRxTimeout (USART_TypeDef *USARTx) |
| Disable Receiver Timeout CR2 RTOEN LL_USART_DisableRxTimeout. More... | |
| __STATIC_INLINE uint32_t | LL_USART_IsEnabledRxTimeout (USART_TypeDef *USARTx) |
| Indicate if Receiver Timeout feature is enabled CR2 RTOEN LL_USART_IsEnabledRxTimeout. More... | |
| __STATIC_INLINE void | LL_USART_ConfigNodeAddress (USART_TypeDef *USARTx, uint32_t AddressLen, uint32_t NodeAddress) |
| Set Address of the USART node. More... | |
| __STATIC_INLINE uint32_t | LL_USART_GetNodeAddress (USART_TypeDef *USARTx) |
| Return 8 bit Address of the USART node as set in ADD field of CR2. More... | |
| __STATIC_INLINE uint32_t | LL_USART_GetNodeAddressLen (USART_TypeDef *USARTx) |
| Return Length of Node Address used in Address Detection mode (7-bit or 4-bit) CR2 ADDM7 LL_USART_GetNodeAddressLen. More... | |
| __STATIC_INLINE void | LL_USART_EnableRTSHWFlowCtrl (USART_TypeDef *USARTx) |
| Enable RTS HW Flow Control. More... | |
| __STATIC_INLINE void | LL_USART_DisableRTSHWFlowCtrl (USART_TypeDef *USARTx) |
| Disable RTS HW Flow Control. More... | |
| __STATIC_INLINE void | LL_USART_EnableCTSHWFlowCtrl (USART_TypeDef *USARTx) |
| Enable CTS HW Flow Control. More... | |
| __STATIC_INLINE void | LL_USART_DisableCTSHWFlowCtrl (USART_TypeDef *USARTx) |
| Disable CTS HW Flow Control. More... | |
| __STATIC_INLINE void | LL_USART_SetHWFlowCtrl (USART_TypeDef *USARTx, uint32_t HardwareFlowControl) |
| Configure HW Flow Control mode (both CTS and RTS) More... | |
| __STATIC_INLINE uint32_t | LL_USART_GetHWFlowCtrl (USART_TypeDef *USARTx) |
| Return HW Flow Control configuration (both CTS and RTS) More... | |
| __STATIC_INLINE void | LL_USART_EnableOneBitSamp (USART_TypeDef *USARTx) |
| Enable One bit sampling method CR3 ONEBIT LL_USART_EnableOneBitSamp. More... | |
| __STATIC_INLINE void | LL_USART_DisableOneBitSamp (USART_TypeDef *USARTx) |
| Disable One bit sampling method CR3 ONEBIT LL_USART_DisableOneBitSamp. More... | |
| __STATIC_INLINE uint32_t | LL_USART_IsEnabledOneBitSamp (USART_TypeDef *USARTx) |
| Indicate if One bit sampling method is enabled CR3 ONEBIT LL_USART_IsEnabledOneBitSamp. More... | |
| __STATIC_INLINE void | LL_USART_EnableOverrunDetect (USART_TypeDef *USARTx) |
| Enable Overrun detection CR3 OVRDIS LL_USART_EnableOverrunDetect. More... | |
| __STATIC_INLINE void | LL_USART_DisableOverrunDetect (USART_TypeDef *USARTx) |
| Disable Overrun detection CR3 OVRDIS LL_USART_DisableOverrunDetect. More... | |
| __STATIC_INLINE uint32_t | LL_USART_IsEnabledOverrunDetect (USART_TypeDef *USARTx) |
| Indicate if Overrun detection is enabled CR3 OVRDIS LL_USART_IsEnabledOverrunDetect. More... | |
| __STATIC_INLINE void | LL_USART_SetWKUPType (USART_TypeDef *USARTx, uint32_t Type) |
| Select event type for Wake UP Interrupt Flag (WUS[1:0] bits) More... | |
| __STATIC_INLINE uint32_t | LL_USART_GetWKUPType (USART_TypeDef *USARTx) |
| Return event type for Wake UP Interrupt Flag (WUS[1:0] bits) More... | |
| __STATIC_INLINE void | LL_USART_SetBaudRate (USART_TypeDef *USARTx, uint32_t PeriphClk, uint32_t PrescalerValue, uint32_t OverSampling, uint32_t BaudRate) __STATIC_INLINE void LL_USART_SetBaudRate(USART_TypeDef *USARTx |
| Configure USART BRR register for achieving expected Baud Rate value. More... | |
| if (PrescalerValue > LL_USART_PRESCALER_DIV256) | |
| else | if (OverSampling==LL_USART_OVERSAMPLING_8) if(OverSampling |
| ErrorStatus | LL_USART_Init (USART_TypeDef *USARTx, LL_USART_InitTypeDef *USART_InitStruct) |
| Initialize USART registers according to the specified parameters in USART_InitStruct. More... | |
| void | LL_USART_StructInit (LL_USART_InitTypeDef *USART_InitStruct) |
| Set each LL_USART_InitTypeDef field to default value. More... | |
| ErrorStatus | LL_USART_ClockInit (USART_TypeDef *USARTx, LL_USART_ClockInitTypeDef *USART_ClockInitStruct) |
| Initialize USART Clock related settings according to the specified parameters in the USART_ClockInitStruct. More... | |
| void | LL_USART_ClockStructInit (LL_USART_ClockInitTypeDef *USART_ClockInitStruct) |
| Set each field of a LL_USART_ClockInitTypeDef type structure to default value. More... | |
Variables | |
| __STATIC_INLINE void uint32_t | PeriphClk |
| __STATIC_INLINE void uint32_t uint32_t | OverSampling |
| __STATIC_INLINE void uint32_t uint32_t uint32_t | BaudRate |
| register uint32_t | brrtemp |
| if | ( | PrescalerValue | , |
| LL_USART_PRESCALER_DIV256 | |||
| ) |
Definition at line 1984 of file stm32l4xx_ll_usart.h.
| else if | ( | OverSampling | = =LL_USART_OVERSAMPLING_8 | ) |
| ErrorStatus LL_USART_ClockInit | ( | USART_TypeDef * | USARTx, |
| LL_USART_ClockInitTypeDef * | USART_ClockInitStruct | ||
| ) |
Initialize USART Clock related settings according to the specified parameters in the USART_ClockInitStruct.
| USARTx | USART Instance |
| USART_ClockInitStruct | pointer to a LL_USART_ClockInitTypeDef structure that contains the Clock configuration information for the specified USART peripheral. |
| An | ErrorStatus enumeration value:
|
Definition at line 375 of file stm32l4xx_ll_usart.c.
| void LL_USART_ClockStructInit | ( | LL_USART_ClockInitTypeDef * | USART_ClockInitStruct | ) |
Set each field of a LL_USART_ClockInitTypeDef type structure to default value.
| USART_ClockInitStruct | pointer to a LL_USART_ClockInitTypeDef structure whose fields will be set to default values. |
| None |
Definition at line 434 of file stm32l4xx_ll_usart.c.
| __STATIC_INLINE void LL_USART_ConfigCharacter | ( | USART_TypeDef * | USARTx, |
| uint32_t | DataWidth, | ||
| uint32_t | Parity, | ||
| uint32_t | StopBits | ||
| ) |
Configure Character frame format (Datawidth, Parity control, Stop Bits)
| USARTx | USART Instance |
| DataWidth | This parameter can be one of the following values:
|
| Parity | This parameter can be one of the following values:
|
| StopBits | This parameter can be one of the following values:
|
| None |
Definition at line 1440 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_ConfigClock | ( | USART_TypeDef * | USARTx, |
| uint32_t | Phase, | ||
| uint32_t | Polarity, | ||
| uint32_t | LBCPOutput | ||
| ) |
Configure Clock signal format (Phase Polarity and choice about output of last bit clock pulse)
| USARTx | USART Instance |
| Phase | This parameter can be one of the following values:
|
| Polarity | This parameter can be one of the following values:
|
| LBCPOutput | This parameter can be one of the following values:
|
| None |
Definition at line 1285 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_ConfigFIFOsThreshold | ( | USART_TypeDef * | USARTx, |
| uint32_t | TXThreshold, | ||
| uint32_t | RXThreshold | ||
| ) |
Configure TX and RX FIFOs Threshold.
| USARTx | USART Instance |
| TXThreshold | This parameter can be one of the following values:
|
| RXThreshold | This parameter can be one of the following values:
|
| None |
Definition at line 853 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_ConfigNodeAddress | ( | USART_TypeDef * | USARTx, |
| uint32_t | AddressLen, | ||
| uint32_t | NodeAddress | ||
| ) |
Set Address of the USART node.
| USARTx | USART Instance |
| AddressLen | This parameter can be one of the following values:
|
| NodeAddress | 4 or 7 bit Address of the USART node. |
| None |
Definition at line 1718 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_Disable | ( | USART_TypeDef * | USARTx | ) |
USART Disable (all USART prescalers and outputs are disabled)
| USARTx | USART Instance |
| None |
Definition at line 696 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_DisableAutoBaudRate | ( | USART_TypeDef * | USARTx | ) |
Disable Auto Baud-Rate Detection.
| USARTx | USART Instance |
| None |
Definition at line 1609 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_DisableClockInStopMode | ( | USART_TypeDef * | USARTx | ) |
USART clock disabled in STOP Mode.
| USARTx | USART Instance |
| None |
Definition at line 921 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_DisableCTSHWFlowCtrl | ( | USART_TypeDef * | USARTx | ) |
Disable CTS HW Flow Control.
| USARTx | USART Instance |
| None |
Definition at line 1799 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_DisableDirectionRx | ( | USART_TypeDef * | USARTx | ) |
Receiver Disable CR1 RE LL_USART_DisableDirectionRx.
| USARTx | USART Instance |
| None |
Definition at line 955 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_DisableDirectionTx | ( | USART_TypeDef * | USARTx | ) |
Transmitter Disable CR1 TE LL_USART_DisableDirectionTx.
| USARTx | USART Instance |
| None |
Definition at line 977 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_DisableFIFO | ( | USART_TypeDef * | USARTx | ) |
FIFO Mode Disable.
| USARTx | USART Instance |
| None |
Definition at line 734 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_DisableInStopMode | ( | USART_TypeDef * | USARTx | ) |
USART disabled in STOP Mode.
| USARTx | USART Instance |
| None |
Definition at line 883 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_DisableMuteMode | ( | USART_TypeDef * | USARTx | ) |
Prevent Mute Mode use. Set Receiver in active mode permanently. CR1 MME LL_USART_DisableMuteMode.
| USARTx | USART Instance |
| None |
Definition at line 1125 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_DisableOneBitSamp | ( | USART_TypeDef * | USARTx | ) |
Disable One bit sampling method CR3 ONEBIT LL_USART_DisableOneBitSamp.
| USARTx | USART Instance |
| None |
Definition at line 1858 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_DisableOverrunDetect | ( | USART_TypeDef * | USARTx | ) |
Disable Overrun detection CR3 OVRDIS LL_USART_DisableOverrunDetect.
| USARTx | USART Instance |
| None |
Definition at line 1891 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_DisableRTSHWFlowCtrl | ( | USART_TypeDef * | USARTx | ) |
Disable RTS HW Flow Control.
| USARTx | USART Instance |
| None |
Definition at line 1773 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_DisableRxTimeout | ( | USART_TypeDef * | USARTx | ) |
Disable Receiver Timeout CR2 RTOEN LL_USART_DisableRxTimeout.
| USARTx | USART Instance |
| None |
Definition at line 1679 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_DisableSCLKOutput | ( | USART_TypeDef * | USARTx | ) |
Disable Clock output on SCLK pin.
| USARTx | USART Instance |
| None |
Definition at line 1364 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_Enable | ( | USART_TypeDef * | USARTx | ) |
USART Enable CR1 UE LL_USART_Enable.
| USARTx | USART Instance |
| None |
Definition at line 682 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_EnableAutoBaudRate | ( | USART_TypeDef * | USARTx | ) |
Enable Auto Baud-Rate Detection.
| USARTx | USART Instance |
| None |
Definition at line 1596 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_EnableClockInStopMode | ( | USART_TypeDef * | USARTx | ) |
USART Clock enabled in STOP Mode.
| USARTx | USART Instance |
| None |
Definition at line 909 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_EnableCTSHWFlowCtrl | ( | USART_TypeDef * | USARTx | ) |
Enable CTS HW Flow Control.
| USARTx | USART Instance |
| None |
Definition at line 1786 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_EnableDirectionRx | ( | USART_TypeDef * | USARTx | ) |
Receiver Enable (Receiver is enabled and begins searching for a start bit) CR1 RE LL_USART_EnableDirectionRx.
| USARTx | USART Instance |
| None |
Definition at line 944 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_EnableDirectionTx | ( | USART_TypeDef * | USARTx | ) |
Transmitter Enable CR1 TE LL_USART_EnableDirectionTx.
| USARTx | USART Instance |
| None |
Definition at line 966 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_EnableFIFO | ( | USART_TypeDef * | USARTx | ) |
FIFO Mode Enable.
| USARTx | USART Instance |
| None |
Definition at line 721 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_EnableInStopMode | ( | USART_TypeDef * | USARTx | ) |
USART enabled in STOP Mode.
| USARTx | USART Instance |
| None |
Definition at line 869 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_EnableMuteMode | ( | USART_TypeDef * | USARTx | ) |
Allow switch between Mute Mode and Active mode CR1 MME LL_USART_EnableMuteMode.
| USARTx | USART Instance |
| None |
Definition at line 1114 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_EnableOneBitSamp | ( | USART_TypeDef * | USARTx | ) |
Enable One bit sampling method CR3 ONEBIT LL_USART_EnableOneBitSamp.
| USARTx | USART Instance |
| None |
Definition at line 1847 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_EnableOverrunDetect | ( | USART_TypeDef * | USARTx | ) |
Enable Overrun detection CR3 OVRDIS LL_USART_EnableOverrunDetect.
| USARTx | USART Instance |
| None |
Definition at line 1880 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_EnableRTSHWFlowCtrl | ( | USART_TypeDef * | USARTx | ) |
Enable RTS HW Flow Control.
| USARTx | USART Instance |
| None |
Definition at line 1760 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_EnableRxTimeout | ( | USART_TypeDef * | USARTx | ) |
Enable Receiver Timeout CR2 RTOEN LL_USART_EnableRxTimeout.
| USARTx | USART Instance |
| None |
Definition at line 1668 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_EnableSCLKOutput | ( | USART_TypeDef * | USARTx | ) |
Enable Clock output on SCLK pin.
| USARTx | USART Instance |
| None |
Definition at line 1351 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_GetAutoBaudRateMode | ( | USART_TypeDef * | USARTx | ) |
Return Auto Baud-Rate mode.
| USARTx | USART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1657 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_GetBinaryDataLogic | ( | USART_TypeDef * | USARTx | ) |
Retrieve Binary data configuration CR2 DATAINV LL_USART_GetBinaryDataLogic.
| USARTx | USART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1552 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_GetClockPhase | ( | USART_TypeDef * | USARTx | ) |
Return phase of the clock output on the SCLK pin in synchronous mode.
| USARTx | USART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1226 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_GetClockPolarity | ( | USART_TypeDef * | USARTx | ) |
Return polarity of the clock output on the SCLK pin in synchronous mode.
| USARTx | USART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1257 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_GetDataWidth | ( | USART_TypeDef * | USARTx | ) |
Return Word length (i.e. nb of data bits, excluding start and stop bits) CR1 M0 LL_USART_GetDataWidth
CR1 M1 LL_USART_GetDataWidth.
| USARTx | USART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1103 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_GetHWFlowCtrl | ( | USART_TypeDef * | USARTx | ) |
Return HW Flow Control configuration (both CTS and RTS)
| USARTx | USART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1836 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_GetLastClkPulseOutput | ( | USART_TypeDef * | USARTx | ) |
Retrieve Clock pulse of the last data bit output configuration (Last bit Clock pulse output to the SCLK pin or not)
| USARTx | USART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1195 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_GetNodeAddress | ( | USART_TypeDef * | USARTx | ) |
Return 8 bit Address of the USART node as set in ADD field of CR2.
| USARTx | USART Instance |
| Address | of the USART node (Value between Min_Data=0 and Max_Data=255) |
Definition at line 1734 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_GetNodeAddressLen | ( | USART_TypeDef * | USARTx | ) |
Return Length of Node Address used in Address Detection mode (7-bit or 4-bit) CR2 ADDM7 LL_USART_GetNodeAddressLen.
| USARTx | USART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1747 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_GetOverSampling | ( | USART_TypeDef * | USARTx | ) |
Return Oversampling mode CR1 OVER8 LL_USART_GetOverSampling.
| USARTx | USART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1163 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_GetParity | ( | USART_TypeDef * | USARTx | ) |
Return Parity configuration (enabled/disabled and parity mode if enabled) CR1 PS LL_USART_GetParity
CR1 PCE LL_USART_GetParity.
| USARTx | USART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1045 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_GetPrescaler | ( | USART_TypeDef * | USARTx | ) |
Retrieve the Clock source prescaler for baudrate generator and oversampling.
| USARTx | USART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1337 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_GetRXFIFOThreshold | ( | USART_TypeDef * | USARTx | ) |
Return RX FIFO Threshold Configuration.
| USARTx | USART Instance |
| Returned | value can be one of the following values:
|
Definition at line 825 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_GetRXPinLevel | ( | USART_TypeDef * | USARTx | ) |
Retrieve RX pin active level logic configuration CR2 RXINV LL_USART_GetRXPinLevel.
| USARTx | USART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1496 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_GetStopBitsLength | ( | USART_TypeDef * | USARTx | ) |
Retrieve the length of the stop bits CR2 STOP LL_USART_GetStopBitsLength.
| USARTx | USART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1408 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_GetTransferBitOrder | ( | USART_TypeDef * | USARTx | ) |
Return transfer bit order (either Less or Most Significant Bit First)
| USARTx | USART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1583 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_GetTransferDirection | ( | USART_TypeDef * | USARTx | ) |
Return enabled/disabled states of Transmitter and Receiver CR1 RE LL_USART_GetTransferDirection
CR1 TE LL_USART_GetTransferDirection.
| USARTx | USART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1011 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_GetTXFIFOThreshold | ( | USART_TypeDef * | USARTx | ) |
Return TX FIFO Threshold Configuration.
| USARTx | USART Instance |
| Returned | value can be one of the following values:
|
Definition at line 786 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_GetTXPinLevel | ( | USART_TypeDef * | USARTx | ) |
Retrieve TX pin active level logic configuration CR2 TXINV LL_USART_GetTXPinLevel.
| USARTx | USART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1523 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_GetTXRXSwap | ( | USART_TypeDef * | USARTx | ) |
Retrieve TX/RX pins swapping configuration. CR2 SWAP LL_USART_GetTXRXSwap.
| USARTx | USART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1469 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_GetWakeUpMethod | ( | USART_TypeDef * | USARTx | ) |
Return Receiver Wake Up method from Mute mode CR1 WAKE LL_USART_GetWakeUpMethod.
| USARTx | USART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1072 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_GetWKUPType | ( | USART_TypeDef * | USARTx | ) |
Return event type for Wake UP Interrupt Flag (WUS[1:0] bits)
| USARTx | USART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1935 of file stm32l4xx_ll_usart.h.
| ErrorStatus LL_USART_Init | ( | USART_TypeDef * | USARTx, |
| LL_USART_InitTypeDef * | USART_InitStruct | ||
| ) |
Initialize USART registers according to the specified parameters in USART_InitStruct.
| USARTx | USART Instance |
| USART_InitStruct | pointer to a LL_USART_InitTypeDef structure that contains the configuration information for the specified USART peripheral. |
| An | ErrorStatus enumeration value:
|
Definition at line 220 of file stm32l4xx_ll_usart.c.
| __STATIC_INLINE uint32_t LL_USART_IsClockEnabledInStopMode | ( | USART_TypeDef * | USARTx | ) |
Indicate if USART clock is enabled in STOP Mode CR3 UCESM LL_USART_IsClockEnabledInStopMode.
| USARTx | USART Instance |
| State | of bit (1 or 0). |
Definition at line 932 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_IsEnabled | ( | USART_TypeDef * | USARTx | ) |
Indicate if USART is enabled CR1 UE LL_USART_IsEnabled.
| USARTx | USART Instance |
| State | of bit (1 or 0). |
Definition at line 707 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_IsEnabledAutoBaud | ( | USART_TypeDef * | USARTx | ) |
Indicate if Auto Baud-Rate Detection mechanism is enabled.
| USARTx | USART Instance |
| State | of bit (1 or 0). |
Definition at line 1622 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_IsEnabledFIFO | ( | USART_TypeDef * | USARTx | ) |
Indicate if FIFO Mode is enabled.
| USARTx | USART Instance |
| State | of bit (1 or 0). |
Definition at line 747 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_IsEnabledInStopMode | ( | USART_TypeDef * | USARTx | ) |
Indicate if USART is enabled in STOP Mode (able to wake up MCU from Stop mode or not)
| USARTx | USART Instance |
| State | of bit (1 or 0). |
Definition at line 896 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_IsEnabledMuteMode | ( | USART_TypeDef * | USARTx | ) |
Indicate if switch between Mute Mode and Active mode is allowed CR1 MME LL_USART_IsEnabledMuteMode.
| USARTx | USART Instance |
| State | of bit (1 or 0). |
Definition at line 1136 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_IsEnabledOneBitSamp | ( | USART_TypeDef * | USARTx | ) |
Indicate if One bit sampling method is enabled CR3 ONEBIT LL_USART_IsEnabledOneBitSamp.
| USARTx | USART Instance |
| State | of bit (1 or 0). |
Definition at line 1869 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_IsEnabledOverrunDetect | ( | USART_TypeDef * | USARTx | ) |
Indicate if Overrun detection is enabled CR3 OVRDIS LL_USART_IsEnabledOverrunDetect.
| USARTx | USART Instance |
| State | of bit (1 or 0). |
Definition at line 1902 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_IsEnabledRxTimeout | ( | USART_TypeDef * | USARTx | ) |
Indicate if Receiver Timeout feature is enabled CR2 RTOEN LL_USART_IsEnabledRxTimeout.
| USARTx | USART Instance |
| State | of bit (1 or 0). |
Definition at line 1690 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE uint32_t LL_USART_IsEnabledSCLKOutput | ( | USART_TypeDef * | USARTx | ) |
Indicate if Clock output on SCLK pin is enabled.
| USARTx | USART Instance |
| State | of bit (1 or 0). |
Definition at line 1377 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_SetAutoBaudRateMode | ( | USART_TypeDef * | USARTx, |
| uint32_t | AutoBaudRateMode | ||
| ) |
Set Auto Baud-Rate mode bits.
| USARTx | USART Instance |
| AutoBaudRateMode | This parameter can be one of the following values:
|
| None |
Definition at line 1640 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_SetBaudRate | ( | USART_TypeDef * | USARTx, |
| uint32_t | PeriphClk, | ||
| uint32_t | PrescalerValue, | ||
| uint32_t | OverSampling, | ||
| uint32_t | BaudRate | ||
| ) |
Configure USART BRR register for achieving expected Baud Rate value.
| USARTx | USART Instance |
| PeriphClk | Peripheral Clock |
| OverSampling | This parameter can be one of the following values:
|
| BaudRate | Baud Rate |
| None |
| __STATIC_INLINE void LL_USART_SetBinaryDataLogic | ( | USART_TypeDef * | USARTx, |
| uint32_t | DataLogic | ||
| ) |
Configure Binary data logic.
| USARTx | USART Instance |
| DataLogic | This parameter can be one of the following values:
|
| None |
Definition at line 1539 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_SetClockPhase | ( | USART_TypeDef * | USARTx, |
| uint32_t | ClockPhase | ||
| ) |
Select the phase of the clock output on the SCLK pin in synchronous mode.
| USARTx | USART Instance |
| ClockPhase | This parameter can be one of the following values:
|
| None |
Definition at line 1211 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_SetClockPolarity | ( | USART_TypeDef * | USARTx, |
| uint32_t | ClockPolarity | ||
| ) |
Select the polarity of the clock output on the SCLK pin in synchronous mode.
| USARTx | USART Instance |
| ClockPolarity | This parameter can be one of the following values:
|
| None |
Definition at line 1242 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_SetDataWidth | ( | USART_TypeDef * | USARTx, |
| uint32_t | DataWidth | ||
| ) |
Set Word length (i.e. nb of data bits, excluding start and stop bits) CR1 M0 LL_USART_SetDataWidth
CR1 M1 LL_USART_SetDataWidth.
| USARTx | USART Instance |
| DataWidth | This parameter can be one of the following values:
|
| None |
Definition at line 1088 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_SetHWFlowCtrl | ( | USART_TypeDef * | USARTx, |
| uint32_t | HardwareFlowControl | ||
| ) |
Configure HW Flow Control mode (both CTS and RTS)
| USARTx | USART Instance |
| HardwareFlowControl | This parameter can be one of the following values:
|
| None |
Definition at line 1818 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_SetLastClkPulseOutput | ( | USART_TypeDef * | USARTx, |
| uint32_t | LastBitClockPulse | ||
| ) |
Configure if Clock pulse of the last data bit is output to the SCLK pin or not.
| USARTx | USART Instance |
| LastBitClockPulse | This parameter can be one of the following values:
|
| None |
Definition at line 1179 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_SetOverSampling | ( | USART_TypeDef * | USARTx, |
| uint32_t | OverSampling | ||
| ) |
Set Oversampling to 8-bit or 16-bit mode CR1 OVER8 LL_USART_SetOverSampling.
| USARTx | USART Instance |
| OverSampling | This parameter can be one of the following values:
|
| None |
Definition at line 1150 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_SetParity | ( | USART_TypeDef * | USARTx, |
| uint32_t | Parity | ||
| ) |
Configure Parity (enabled/disabled and parity mode if enabled).
| USARTx | USART Instance |
| Parity | This parameter can be one of the following values:
|
| None |
Definition at line 1030 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_SetPrescaler | ( | USART_TypeDef * | USARTx, |
| uint32_t | PrescalerValue | ||
| ) |
Configure Clock source prescaler for baudrate generator and oversampling.
| USARTx | USART Instance |
| PrescalerValue | This parameter can be one of the following values:
|
| None |
Definition at line 1312 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_SetRXFIFOThreshold | ( | USART_TypeDef * | USARTx, |
| uint32_t | Threshold | ||
| ) |
Configure RX FIFO Threshold.
| USARTx | USART Instance |
| Threshold | This parameter can be one of the following values:
|
| None |
Definition at line 806 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_SetRXPinLevel | ( | USART_TypeDef * | USARTx, |
| uint32_t | PinInvMethod | ||
| ) |
Configure RX pin active level logic CR2 RXINV LL_USART_SetRXPinLevel.
| USARTx | USART Instance |
| PinInvMethod | This parameter can be one of the following values:
|
| None |
Definition at line 1483 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_SetStopBitsLength | ( | USART_TypeDef * | USARTx, |
| uint32_t | StopBits | ||
| ) |
Set the length of the stop bits CR2 STOP LL_USART_SetStopBitsLength.
| USARTx | USART Instance |
| StopBits | This parameter can be one of the following values:
|
| None |
Definition at line 1393 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_SetTransferBitOrder | ( | USART_TypeDef * | USARTx, |
| uint32_t | BitOrder | ||
| ) |
Configure transfer bit order (either Less or Most Significant Bit First)
| USARTx | USART Instance |
| BitOrder | This parameter can be one of the following values:
|
| None |
Definition at line 1568 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_SetTransferDirection | ( | USART_TypeDef * | USARTx, |
| uint32_t | TransferDirection | ||
| ) |
Configure simultaneously enabled/disabled states of Transmitter and Receiver CR1 RE LL_USART_SetTransferDirection
CR1 TE LL_USART_SetTransferDirection.
| USARTx | USART Instance |
| TransferDirection | This parameter can be one of the following values:
|
| None |
Definition at line 995 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_SetTXFIFOThreshold | ( | USART_TypeDef * | USARTx, |
| uint32_t | Threshold | ||
| ) |
Configure TX FIFO Threshold.
| USARTx | USART Instance |
| Threshold | This parameter can be one of the following values:
|
| None |
Definition at line 767 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_SetTXPinLevel | ( | USART_TypeDef * | USARTx, |
| uint32_t | PinInvMethod | ||
| ) |
Configure TX pin active level logic CR2 TXINV LL_USART_SetTXPinLevel.
| USARTx | USART Instance |
| PinInvMethod | This parameter can be one of the following values:
|
| None |
Definition at line 1510 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_SetTXRXSwap | ( | USART_TypeDef * | USARTx, |
| uint32_t | SwapConfig | ||
| ) |
Configure TX/RX pins swapping setting. CR2 SWAP LL_USART_SetTXRXSwap.
| USARTx | USART Instance |
| SwapConfig | This parameter can be one of the following values:
|
| None |
Definition at line 1456 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_SetWakeUpMethod | ( | USART_TypeDef * | USARTx, |
| uint32_t | Method | ||
| ) |
Set Receiver Wake Up method from Mute mode. CR1 WAKE LL_USART_SetWakeUpMethod.
| USARTx | USART Instance |
| Method | This parameter can be one of the following values:
|
| None |
Definition at line 1059 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void LL_USART_SetWKUPType | ( | USART_TypeDef * | USARTx, |
| uint32_t | Type | ||
| ) |
Select event type for Wake UP Interrupt Flag (WUS[1:0] bits)
| USARTx | USART Instance |
| Type | This parameter can be one of the following values:
|
| None |
Definition at line 1919 of file stm32l4xx_ll_usart.h.
| void LL_USART_StructInit | ( | LL_USART_InitTypeDef * | USART_InitStruct | ) |
Set each LL_USART_InitTypeDef field to default value.
| USART_InitStruct | pointer to a LL_USART_InitTypeDef structure whose fields will be set to default values. |
| None |
Definition at line 348 of file stm32l4xx_ll_usart.c.
| __STATIC_INLINE void uint32_t uint32_t uint32_t BaudRate |
Definition at line 1979 of file stm32l4xx_ll_usart.h.
| register uint32_t brrtemp |
Definition at line 1981 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void uint32_t uint32_t OverSampling |
Definition at line 1976 of file stm32l4xx_ll_usart.h.
| __STATIC_INLINE void uint32_t PeriphClk |
Definition at line 1976 of file stm32l4xx_ll_usart.h.