|
STM32L4xx_HAL_Driver
1.14.0
|
Functions | |
| __STATIC_INLINE void | LL_LPUART_Enable (USART_TypeDef *LPUARTx) |
| LPUART Enable CR1 UE LL_LPUART_Enable. More... | |
| __STATIC_INLINE void | LL_LPUART_Disable (USART_TypeDef *LPUARTx) |
| LPUART Disable. More... | |
| __STATIC_INLINE uint32_t | LL_LPUART_IsEnabled (USART_TypeDef *LPUARTx) |
| Indicate if LPUART is enabled CR1 UE LL_LPUART_IsEnabled. More... | |
| __STATIC_INLINE void | LL_LPUART_EnableFIFO (USART_TypeDef *LPUARTx) |
| FIFO Mode Enable CR1 FIFOEN LL_LPUART_EnableFIFO. More... | |
| __STATIC_INLINE void | LL_LPUART_DisableFIFO (USART_TypeDef *LPUARTx) |
| FIFO Mode Disable CR1 FIFOEN LL_LPUART_DisableFIFO. More... | |
| __STATIC_INLINE uint32_t | LL_LPUART_IsEnabledFIFO (USART_TypeDef *LPUARTx) |
| Indicate if FIFO Mode is enabled CR1 FIFOEN LL_LPUART_IsEnabledFIFO. More... | |
| __STATIC_INLINE void | LL_LPUART_SetTXFIFOThreshold (USART_TypeDef *LPUARTx, uint32_t Threshold) |
| Configure TX FIFO Threshold CR3 TXFTCFG LL_LPUART_SetTXFIFOThreshold. More... | |
| __STATIC_INLINE uint32_t | LL_LPUART_GetTXFIFOThreshold (USART_TypeDef *LPUARTx) |
| Return TX FIFO Threshold Configuration CR3 TXFTCFG LL_LPUART_GetTXFIFOThreshold. More... | |
| __STATIC_INLINE void | LL_LPUART_SetRXFIFOThreshold (USART_TypeDef *LPUARTx, uint32_t Threshold) |
| Configure RX FIFO Threshold CR3 RXFTCFG LL_LPUART_SetRXFIFOThreshold. More... | |
| __STATIC_INLINE uint32_t | LL_LPUART_GetRXFIFOThreshold (USART_TypeDef *LPUARTx) |
| Return RX FIFO Threshold Configuration CR3 RXFTCFG LL_LPUART_GetRXFIFOThreshold. More... | |
| __STATIC_INLINE void | LL_LPUART_ConfigFIFOsThreshold (USART_TypeDef *LPUARTx, uint32_t TXThreshold, uint32_t RXThreshold) |
| Configure TX and RX FIFOs Threshold CR3 TXFTCFG LL_LPUART_ConfigFIFOsThreshold CR3 RXFTCFG LL_LPUART_ConfigFIFOsThreshold. More... | |
| __STATIC_INLINE void | LL_LPUART_EnableInStopMode (USART_TypeDef *LPUARTx) |
| LPUART enabled in STOP Mode. More... | |
| __STATIC_INLINE void | LL_LPUART_DisableInStopMode (USART_TypeDef *LPUARTx) |
| LPUART disabled in STOP Mode. More... | |
| __STATIC_INLINE uint32_t | LL_LPUART_IsEnabledInStopMode (USART_TypeDef *LPUARTx) |
| Indicate if LPUART is enabled in STOP Mode (able to wake up MCU from Stop mode or not) CR1 UESM LL_LPUART_IsEnabledInStopMode. More... | |
| __STATIC_INLINE void | LL_LPUART_EnableClockInStopMode (USART_TypeDef *LPUARTx) |
| LPUART Clock enabled in STOP Mode. More... | |
| __STATIC_INLINE void | LL_LPUART_DisableClockInStopMode (USART_TypeDef *LPUARTx) |
| LPUART clock disabled in STOP Mode. More... | |
| __STATIC_INLINE uint32_t | LL_LPUART_IsClockEnabledInStopMode (USART_TypeDef *LPUARTx) |
| Indicate if LPUART clock is enabled in STOP Mode CR3 UCESM LL_LPUART_IsClockEnabledInStopMode. More... | |
| __STATIC_INLINE void | LL_LPUART_EnableDirectionRx (USART_TypeDef *LPUARTx) |
| Receiver Enable (Receiver is enabled and begins searching for a start bit) CR1 RE LL_LPUART_EnableDirectionRx. More... | |
| __STATIC_INLINE void | LL_LPUART_DisableDirectionRx (USART_TypeDef *LPUARTx) |
| Receiver Disable CR1 RE LL_LPUART_DisableDirectionRx. More... | |
| __STATIC_INLINE void | LL_LPUART_EnableDirectionTx (USART_TypeDef *LPUARTx) |
| Transmitter Enable CR1 TE LL_LPUART_EnableDirectionTx. More... | |
| __STATIC_INLINE void | LL_LPUART_DisableDirectionTx (USART_TypeDef *LPUARTx) |
| Transmitter Disable CR1 TE LL_LPUART_DisableDirectionTx. More... | |
| __STATIC_INLINE void | LL_LPUART_SetTransferDirection (USART_TypeDef *LPUARTx, uint32_t TransferDirection) |
| Configure simultaneously enabled/disabled states of Transmitter and Receiver CR1 RE LL_LPUART_SetTransferDirection CR1 TE LL_LPUART_SetTransferDirection. More... | |
| __STATIC_INLINE uint32_t | LL_LPUART_GetTransferDirection (USART_TypeDef *LPUARTx) |
| Return enabled/disabled states of Transmitter and Receiver CR1 RE LL_LPUART_GetTransferDirection CR1 TE LL_LPUART_GetTransferDirection. More... | |
| __STATIC_INLINE void | LL_LPUART_SetParity (USART_TypeDef *LPUARTx, uint32_t Parity) |
| Configure Parity (enabled/disabled and parity mode if enabled) More... | |
| __STATIC_INLINE uint32_t | LL_LPUART_GetParity (USART_TypeDef *LPUARTx) |
| Return Parity configuration (enabled/disabled and parity mode if enabled) CR1 PS LL_LPUART_GetParity CR1 PCE LL_LPUART_GetParity. More... | |
| __STATIC_INLINE void | LL_LPUART_SetWakeUpMethod (USART_TypeDef *LPUARTx, uint32_t Method) |
| Set Receiver Wake Up method from Mute mode. CR1 WAKE LL_LPUART_SetWakeUpMethod. More... | |
| __STATIC_INLINE uint32_t | LL_LPUART_GetWakeUpMethod (USART_TypeDef *LPUARTx) |
| Return Receiver Wake Up method from Mute mode CR1 WAKE LL_LPUART_GetWakeUpMethod. More... | |
| __STATIC_INLINE void | LL_LPUART_SetDataWidth (USART_TypeDef *LPUARTx, uint32_t DataWidth) |
| Set Word length (nb of data bits, excluding start and stop bits) CR1 M LL_LPUART_SetDataWidth. More... | |
| __STATIC_INLINE uint32_t | LL_LPUART_GetDataWidth (USART_TypeDef *LPUARTx) |
| Return Word length (i.e. nb of data bits, excluding start and stop bits) CR1 M LL_LPUART_GetDataWidth. More... | |
| __STATIC_INLINE void | LL_LPUART_EnableMuteMode (USART_TypeDef *LPUARTx) |
| Allow switch between Mute Mode and Active mode CR1 MME LL_LPUART_EnableMuteMode. More... | |
| __STATIC_INLINE void | LL_LPUART_DisableMuteMode (USART_TypeDef *LPUARTx) |
| Prevent Mute Mode use. Set Receiver in active mode permanently. CR1 MME LL_LPUART_DisableMuteMode. More... | |
| __STATIC_INLINE uint32_t | LL_LPUART_IsEnabledMuteMode (USART_TypeDef *LPUARTx) |
| Indicate if switch between Mute Mode and Active mode is allowed CR1 MME LL_LPUART_IsEnabledMuteMode. More... | |
| __STATIC_INLINE void | LL_LPUART_SetPrescaler (USART_TypeDef *LPUARTx, uint32_t PrescalerValue) |
| Configure Clock source prescaler for baudrate generator and oversampling PRESC PRESCALER LL_LPUART_SetPrescaler. More... | |
| __STATIC_INLINE uint32_t | LL_LPUART_GetPrescaler (USART_TypeDef *LPUARTx) |
| Retrieve the Clock source prescaler for baudrate generator and oversampling PRESC PRESCALER LL_LPUART_GetPrescaler. More... | |
| __STATIC_INLINE void | LL_LPUART_SetStopBitsLength (USART_TypeDef *LPUARTx, uint32_t StopBits) |
| Set the length of the stop bits CR2 STOP LL_LPUART_SetStopBitsLength. More... | |
| __STATIC_INLINE uint32_t | LL_LPUART_GetStopBitsLength (USART_TypeDef *LPUARTx) |
| Retrieve the length of the stop bits CR2 STOP LL_LPUART_GetStopBitsLength. More... | |
| __STATIC_INLINE void | LL_LPUART_ConfigCharacter (USART_TypeDef *LPUARTx, uint32_t DataWidth, uint32_t Parity, uint32_t StopBits) |
| Configure Character frame format (Datawidth, Parity control, Stop Bits) More... | |
| __STATIC_INLINE void | LL_LPUART_SetTXRXSwap (USART_TypeDef *LPUARTx, uint32_t SwapConfig) |
| Configure TX/RX pins swapping setting. CR2 SWAP LL_LPUART_SetTXRXSwap. More... | |
| __STATIC_INLINE uint32_t | LL_LPUART_GetTXRXSwap (USART_TypeDef *LPUARTx) |
| Retrieve TX/RX pins swapping configuration. CR2 SWAP LL_LPUART_GetTXRXSwap. More... | |
| __STATIC_INLINE void | LL_LPUART_SetRXPinLevel (USART_TypeDef *LPUARTx, uint32_t PinInvMethod) |
| Configure RX pin active level logic CR2 RXINV LL_LPUART_SetRXPinLevel. More... | |
| __STATIC_INLINE uint32_t | LL_LPUART_GetRXPinLevel (USART_TypeDef *LPUARTx) |
| Retrieve RX pin active level logic configuration CR2 RXINV LL_LPUART_GetRXPinLevel. More... | |
| __STATIC_INLINE void | LL_LPUART_SetTXPinLevel (USART_TypeDef *LPUARTx, uint32_t PinInvMethod) |
| Configure TX pin active level logic CR2 TXINV LL_LPUART_SetTXPinLevel. More... | |
| __STATIC_INLINE uint32_t | LL_LPUART_GetTXPinLevel (USART_TypeDef *LPUARTx) |
| Retrieve TX pin active level logic configuration CR2 TXINV LL_LPUART_GetTXPinLevel. More... | |
| __STATIC_INLINE void | LL_LPUART_SetBinaryDataLogic (USART_TypeDef *LPUARTx, uint32_t DataLogic) |
| Configure Binary data logic. More... | |
| __STATIC_INLINE uint32_t | LL_LPUART_GetBinaryDataLogic (USART_TypeDef *LPUARTx) |
| Retrieve Binary data configuration CR2 DATAINV LL_LPUART_GetBinaryDataLogic. More... | |
| __STATIC_INLINE void | LL_LPUART_SetTransferBitOrder (USART_TypeDef *LPUARTx, uint32_t BitOrder) |
| Configure transfer bit order (either Less or Most Significant Bit First) More... | |
| __STATIC_INLINE uint32_t | LL_LPUART_GetTransferBitOrder (USART_TypeDef *LPUARTx) |
| Return transfer bit order (either Less or Most Significant Bit First) More... | |
| __STATIC_INLINE void | LL_LPUART_ConfigNodeAddress (USART_TypeDef *LPUARTx, uint32_t AddressLen, uint32_t NodeAddress) |
| Set Address of the LPUART node. More... | |
| __STATIC_INLINE uint32_t | LL_LPUART_GetNodeAddress (USART_TypeDef *LPUARTx) |
| Return 8 bit Address of the LPUART node as set in ADD field of CR2. More... | |
| __STATIC_INLINE uint32_t | LL_LPUART_GetNodeAddressLen (USART_TypeDef *LPUARTx) |
| Return Length of Node Address used in Address Detection mode (7-bit or 4-bit) CR2 ADDM7 LL_LPUART_GetNodeAddressLen. More... | |
| __STATIC_INLINE void | LL_LPUART_EnableRTSHWFlowCtrl (USART_TypeDef *LPUARTx) |
| Enable RTS HW Flow Control CR3 RTSE LL_LPUART_EnableRTSHWFlowCtrl. More... | |
| __STATIC_INLINE void | LL_LPUART_DisableRTSHWFlowCtrl (USART_TypeDef *LPUARTx) |
| Disable RTS HW Flow Control CR3 RTSE LL_LPUART_DisableRTSHWFlowCtrl. More... | |
| __STATIC_INLINE void | LL_LPUART_EnableCTSHWFlowCtrl (USART_TypeDef *LPUARTx) |
| Enable CTS HW Flow Control CR3 CTSE LL_LPUART_EnableCTSHWFlowCtrl. More... | |
| __STATIC_INLINE void | LL_LPUART_DisableCTSHWFlowCtrl (USART_TypeDef *LPUARTx) |
| Disable CTS HW Flow Control CR3 CTSE LL_LPUART_DisableCTSHWFlowCtrl. More... | |
| __STATIC_INLINE void | LL_LPUART_SetHWFlowCtrl (USART_TypeDef *LPUARTx, uint32_t HardwareFlowControl) |
| Configure HW Flow Control mode (both CTS and RTS) CR3 RTSE LL_LPUART_SetHWFlowCtrl CR3 CTSE LL_LPUART_SetHWFlowCtrl. More... | |
| __STATIC_INLINE uint32_t | LL_LPUART_GetHWFlowCtrl (USART_TypeDef *LPUARTx) |
| Return HW Flow Control configuration (both CTS and RTS) CR3 RTSE LL_LPUART_GetHWFlowCtrl CR3 CTSE LL_LPUART_GetHWFlowCtrl. More... | |
| __STATIC_INLINE void | LL_LPUART_EnableOverrunDetect (USART_TypeDef *LPUARTx) |
| Enable Overrun detection CR3 OVRDIS LL_LPUART_EnableOverrunDetect. More... | |
| __STATIC_INLINE void | LL_LPUART_DisableOverrunDetect (USART_TypeDef *LPUARTx) |
| Disable Overrun detection CR3 OVRDIS LL_LPUART_DisableOverrunDetect. More... | |
| __STATIC_INLINE uint32_t | LL_LPUART_IsEnabledOverrunDetect (USART_TypeDef *LPUARTx) |
| Indicate if Overrun detection is enabled CR3 OVRDIS LL_LPUART_IsEnabledOverrunDetect. More... | |
| __STATIC_INLINE void | LL_LPUART_SetWKUPType (USART_TypeDef *LPUARTx, uint32_t Type) |
| Select event type for Wake UP Interrupt Flag (WUS[1:0] bits) CR3 WUS LL_LPUART_SetWKUPType. More... | |
| __STATIC_INLINE uint32_t | LL_LPUART_GetWKUPType (USART_TypeDef *LPUARTx) |
| Return event type for Wake UP Interrupt Flag (WUS[1:0] bits) CR3 WUS LL_LPUART_GetWKUPType. More... | |
| __STATIC_INLINE void | LL_LPUART_SetBaudRate (USART_TypeDef *LPUARTx, uint32_t PeriphClk, uint32_t PrescalerValue, uint32_t BaudRate) __STATIC_INLINE void LL_LPUART_SetBaudRate(USART_TypeDef *LPUARTx |
| Configure LPUART BRR register for achieving expected Baud Rate value. More... | |
| __STATIC_INLINE uint32_t | LL_LPUART_GetBaudRate (USART_TypeDef *LPUARTx, uint32_t PeriphClk, uint32_t PrescalerValue) __STATIC_INLINE uint32_t LL_LPUART_GetBaudRate(USART_TypeDef *LPUARTx |
| Return current Baud Rate value, according to LPUARTDIV present in BRR register (full BRR content), and to used Peripheral Clock values. More... | |
| if (lpuartdiv >=LPUART_BRR_MIN_VALUE) | |
| return (brrresult) | |
Variables | |
| __STATIC_INLINE void uint32_t | PeriphClk |
| __STATIC_INLINE void uint32_t uint32_t | BaudRate |
| LPUARTx | BRR = __LL_LPUART_DIV(PeriphClk, BaudRate) |
| register uint32_t | brrresult |
| register uint32_t | periphclkpresc = (uint32_t)(PeriphClk / (LPUART_PRESCALER_TAB[(uint16_t)PrescalerValue])) |
| lpuartdiv = LPUARTx->BRR & LPUART_BRR_MASK | |
| else | |
| if | ( | lpuartdiv >= | LPUART_BRR_MIN_VALUE | ) |
Definition at line 1479 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_ConfigCharacter | ( | USART_TypeDef * | LPUARTx, |
| uint32_t | DataWidth, | ||
| uint32_t | Parity, | ||
| uint32_t | StopBits | ||
| ) |
Configure Character frame format (Datawidth, Parity control, Stop Bits)
| LPUARTx | LPUART 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 1051 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_ConfigFIFOsThreshold | ( | USART_TypeDef * | LPUARTx, |
| uint32_t | TXThreshold, | ||
| uint32_t | RXThreshold | ||
| ) |
Configure TX and RX FIFOs Threshold CR3 TXFTCFG LL_LPUART_ConfigFIFOsThreshold
CR3 RXFTCFG LL_LPUART_ConfigFIFOsThreshold.
| LPUARTx | LPUART 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 670 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_ConfigNodeAddress | ( | USART_TypeDef * | LPUARTx, |
| uint32_t | AddressLen, | ||
| uint32_t | NodeAddress | ||
| ) |
Set Address of the LPUART node.
| LPUARTx | LPUART Instance |
| AddressLen | This parameter can be one of the following values:
|
| NodeAddress | 4 or 7 bit Address of the LPUART node. |
| None |
Definition at line 1223 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_Disable | ( | USART_TypeDef * | LPUARTx | ) |
LPUART Disable.
| LPUARTx | LPUART Instance |
| None |
Definition at line 529 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_DisableClockInStopMode | ( | USART_TypeDef * | LPUARTx | ) |
LPUART clock disabled in STOP Mode.
| LPUARTx | LPUART Instance |
| None |
Definition at line 733 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_DisableCTSHWFlowCtrl | ( | USART_TypeDef * | LPUARTx | ) |
Disable CTS HW Flow Control CR3 CTSE LL_LPUART_DisableCTSHWFlowCtrl.
| LPUARTx | LPUART Instance |
| None |
Definition at line 1296 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_DisableDirectionRx | ( | USART_TypeDef * | LPUARTx | ) |
Receiver Disable CR1 RE LL_LPUART_DisableDirectionRx.
| LPUARTx | LPUART Instance |
| None |
Definition at line 767 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_DisableDirectionTx | ( | USART_TypeDef * | LPUARTx | ) |
Transmitter Disable CR1 TE LL_LPUART_DisableDirectionTx.
| LPUARTx | LPUART Instance |
| None |
Definition at line 789 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_DisableFIFO | ( | USART_TypeDef * | LPUARTx | ) |
FIFO Mode Disable CR1 FIFOEN LL_LPUART_DisableFIFO.
| LPUARTx | LPUART Instance |
| None |
Definition at line 563 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_DisableInStopMode | ( | USART_TypeDef * | LPUARTx | ) |
LPUART disabled in STOP Mode.
| LPUARTx | LPUART Instance |
| None |
Definition at line 696 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_DisableMuteMode | ( | USART_TypeDef * | LPUARTx | ) |
Prevent Mute Mode use. Set Receiver in active mode permanently. CR1 MME LL_LPUART_DisableMuteMode.
| LPUARTx | LPUART Instance |
| None |
Definition at line 935 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_DisableOverrunDetect | ( | USART_TypeDef * | LPUARTx | ) |
Disable Overrun detection CR3 OVRDIS LL_LPUART_DisableOverrunDetect.
| LPUARTx | LPUART Instance |
| None |
Definition at line 1351 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_DisableRTSHWFlowCtrl | ( | USART_TypeDef * | LPUARTx | ) |
Disable RTS HW Flow Control CR3 RTSE LL_LPUART_DisableRTSHWFlowCtrl.
| LPUARTx | LPUART Instance |
| None |
Definition at line 1274 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_Enable | ( | USART_TypeDef * | LPUARTx | ) |
LPUART Enable CR1 UE LL_LPUART_Enable.
| LPUARTx | LPUART Instance |
| None |
Definition at line 510 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_EnableClockInStopMode | ( | USART_TypeDef * | LPUARTx | ) |
LPUART Clock enabled in STOP Mode.
| LPUARTx | LPUART Instance |
| None |
Definition at line 721 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_EnableCTSHWFlowCtrl | ( | USART_TypeDef * | LPUARTx | ) |
Enable CTS HW Flow Control CR3 CTSE LL_LPUART_EnableCTSHWFlowCtrl.
| LPUARTx | LPUART Instance |
| None |
Definition at line 1285 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_EnableDirectionRx | ( | USART_TypeDef * | LPUARTx | ) |
Receiver Enable (Receiver is enabled and begins searching for a start bit) CR1 RE LL_LPUART_EnableDirectionRx.
| LPUARTx | LPUART Instance |
| None |
Definition at line 756 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_EnableDirectionTx | ( | USART_TypeDef * | LPUARTx | ) |
Transmitter Enable CR1 TE LL_LPUART_EnableDirectionTx.
| LPUARTx | LPUART Instance |
| None |
Definition at line 778 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_EnableFIFO | ( | USART_TypeDef * | LPUARTx | ) |
FIFO Mode Enable CR1 FIFOEN LL_LPUART_EnableFIFO.
| LPUARTx | LPUART Instance |
| None |
Definition at line 552 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_EnableInStopMode | ( | USART_TypeDef * | LPUARTx | ) |
LPUART enabled in STOP Mode.
| LPUARTx | LPUART Instance |
| None |
Definition at line 684 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_EnableMuteMode | ( | USART_TypeDef * | LPUARTx | ) |
Allow switch between Mute Mode and Active mode CR1 MME LL_LPUART_EnableMuteMode.
| LPUARTx | LPUART Instance |
| None |
Definition at line 924 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_EnableOverrunDetect | ( | USART_TypeDef * | LPUARTx | ) |
Enable Overrun detection CR3 OVRDIS LL_LPUART_EnableOverrunDetect.
| LPUARTx | LPUART Instance |
| None |
Definition at line 1340 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_EnableRTSHWFlowCtrl | ( | USART_TypeDef * | LPUARTx | ) |
Enable RTS HW Flow Control CR3 RTSE LL_LPUART_EnableRTSHWFlowCtrl.
| LPUARTx | LPUART Instance |
| None |
Definition at line 1263 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE uint32_t LL_LPUART_GetBaudRate | ( | USART_TypeDef * | LPUARTx, |
| uint32_t | PeriphClk, | ||
| uint32_t | PrescalerValue | ||
| ) |
Return current Baud Rate value, according to LPUARTDIV present in BRR register (full BRR content), and to used Peripheral Clock values.
| LPUARTx | LPUART Instance |
| PeriphClk | Peripheral Clock |
| Baud | Rate |
| __STATIC_INLINE uint32_t LL_LPUART_GetBinaryDataLogic | ( | USART_TypeDef * | LPUARTx | ) |
Retrieve Binary data configuration CR2 DATAINV LL_LPUART_GetBinaryDataLogic.
| LPUARTx | LPUART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1164 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE uint32_t LL_LPUART_GetDataWidth | ( | USART_TypeDef * | LPUARTx | ) |
Return Word length (i.e. nb of data bits, excluding start and stop bits) CR1 M LL_LPUART_GetDataWidth.
| LPUARTx | LPUART Instance |
| Returned | value can be one of the following values:
|
Definition at line 913 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE uint32_t LL_LPUART_GetHWFlowCtrl | ( | USART_TypeDef * | LPUARTx | ) |
Return HW Flow Control configuration (both CTS and RTS) CR3 RTSE LL_LPUART_GetHWFlowCtrl
CR3 CTSE LL_LPUART_GetHWFlowCtrl.
| LPUARTx | LPUART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1329 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE uint32_t LL_LPUART_GetNodeAddress | ( | USART_TypeDef * | LPUARTx | ) |
Return 8 bit Address of the LPUART node as set in ADD field of CR2.
| LPUARTx | LPUART Instance |
| Address | of the LPUART node (Value between Min_Data=0 and Max_Data=255) |
Definition at line 1239 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE uint32_t LL_LPUART_GetNodeAddressLen | ( | USART_TypeDef * | LPUARTx | ) |
Return Length of Node Address used in Address Detection mode (7-bit or 4-bit) CR2 ADDM7 LL_LPUART_GetNodeAddressLen.
| LPUARTx | LPUART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1252 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE uint32_t LL_LPUART_GetParity | ( | USART_TypeDef * | LPUARTx | ) |
Return Parity configuration (enabled/disabled and parity mode if enabled) CR1 PS LL_LPUART_GetParity
CR1 PCE LL_LPUART_GetParity.
| LPUARTx | LPUART Instance |
| Returned | value can be one of the following values:
|
Definition at line 857 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE uint32_t LL_LPUART_GetPrescaler | ( | USART_TypeDef * | LPUARTx | ) |
Retrieve the Clock source prescaler for baudrate generator and oversampling PRESC PRESCALER LL_LPUART_GetPrescaler.
| LPUARTx | LPUART Instance |
| Returned | value can be one of the following values:
|
Definition at line 994 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE uint32_t LL_LPUART_GetRXFIFOThreshold | ( | USART_TypeDef * | LPUARTx | ) |
Return RX FIFO Threshold Configuration CR3 RXFTCFG LL_LPUART_GetRXFIFOThreshold.
| LPUARTx | LPUART Instance |
| Returned | value can be one of the following values:
|
Definition at line 644 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE uint32_t LL_LPUART_GetRXPinLevel | ( | USART_TypeDef * | LPUARTx | ) |
Retrieve RX pin active level logic configuration CR2 RXINV LL_LPUART_GetRXPinLevel.
| LPUARTx | LPUART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1107 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE uint32_t LL_LPUART_GetStopBitsLength | ( | USART_TypeDef * | LPUARTx | ) |
Retrieve the length of the stop bits CR2 STOP LL_LPUART_GetStopBitsLength.
| LPUARTx | LPUART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1022 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE uint32_t LL_LPUART_GetTransferBitOrder | ( | USART_TypeDef * | LPUARTx | ) |
Return transfer bit order (either Less or Most Significant Bit First)
| LPUARTx | LPUART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1195 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE uint32_t LL_LPUART_GetTransferDirection | ( | USART_TypeDef * | LPUARTx | ) |
Return enabled/disabled states of Transmitter and Receiver CR1 RE LL_LPUART_GetTransferDirection
CR1 TE LL_LPUART_GetTransferDirection.
| LPUARTx | LPUART Instance |
| Returned | value can be one of the following values:
|
Definition at line 823 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE uint32_t LL_LPUART_GetTXFIFOThreshold | ( | USART_TypeDef * | LPUARTx | ) |
Return TX FIFO Threshold Configuration CR3 TXFTCFG LL_LPUART_GetTXFIFOThreshold.
| LPUARTx | LPUART Instance |
| Returned | value can be one of the following values:
|
Definition at line 609 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE uint32_t LL_LPUART_GetTXPinLevel | ( | USART_TypeDef * | LPUARTx | ) |
Retrieve TX pin active level logic configuration CR2 TXINV LL_LPUART_GetTXPinLevel.
| LPUARTx | LPUART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1134 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE uint32_t LL_LPUART_GetTXRXSwap | ( | USART_TypeDef * | LPUARTx | ) |
Retrieve TX/RX pins swapping configuration. CR2 SWAP LL_LPUART_GetTXRXSwap.
| LPUARTx | LPUART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1080 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE uint32_t LL_LPUART_GetWakeUpMethod | ( | USART_TypeDef * | LPUARTx | ) |
Return Receiver Wake Up method from Mute mode CR1 WAKE LL_LPUART_GetWakeUpMethod.
| LPUARTx | LPUART Instance |
| Returned | value can be one of the following values:
|
Definition at line 884 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE uint32_t LL_LPUART_GetWKUPType | ( | USART_TypeDef * | LPUARTx | ) |
Return event type for Wake UP Interrupt Flag (WUS[1:0] bits) CR3 WUS LL_LPUART_GetWKUPType.
| LPUARTx | LPUART Instance |
| Returned | value can be one of the following values:
|
Definition at line 1391 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE uint32_t LL_LPUART_IsClockEnabledInStopMode | ( | USART_TypeDef * | LPUARTx | ) |
Indicate if LPUART clock is enabled in STOP Mode CR3 UCESM LL_LPUART_IsClockEnabledInStopMode.
| LPUARTx | LPUART Instance |
| State | of bit (1 or 0). |
Definition at line 744 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE uint32_t LL_LPUART_IsEnabled | ( | USART_TypeDef * | LPUARTx | ) |
Indicate if LPUART is enabled CR1 UE LL_LPUART_IsEnabled.
| LPUARTx | LPUART Instance |
| State | of bit (1 or 0). |
Definition at line 540 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE uint32_t LL_LPUART_IsEnabledFIFO | ( | USART_TypeDef * | LPUARTx | ) |
Indicate if FIFO Mode is enabled CR1 FIFOEN LL_LPUART_IsEnabledFIFO.
| LPUARTx | LPUART Instance |
| State | of bit (1 or 0). |
Definition at line 574 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE uint32_t LL_LPUART_IsEnabledInStopMode | ( | USART_TypeDef * | LPUARTx | ) |
Indicate if LPUART is enabled in STOP Mode (able to wake up MCU from Stop mode or not) CR1 UESM LL_LPUART_IsEnabledInStopMode.
| LPUARTx | LPUART Instance |
| State | of bit (1 or 0). |
Definition at line 708 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE uint32_t LL_LPUART_IsEnabledMuteMode | ( | USART_TypeDef * | LPUARTx | ) |
Indicate if switch between Mute Mode and Active mode is allowed CR1 MME LL_LPUART_IsEnabledMuteMode.
| LPUARTx | LPUART Instance |
| State | of bit (1 or 0). |
Definition at line 946 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE uint32_t LL_LPUART_IsEnabledOverrunDetect | ( | USART_TypeDef * | LPUARTx | ) |
Indicate if Overrun detection is enabled CR3 OVRDIS LL_LPUART_IsEnabledOverrunDetect.
| LPUARTx | LPUART Instance |
| State | of bit (1 or 0). |
Definition at line 1362 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_SetBaudRate | ( | USART_TypeDef * | LPUARTx, |
| uint32_t | PeriphClk, | ||
| uint32_t | PrescalerValue, | ||
| uint32_t | BaudRate | ||
| ) |
Configure LPUART BRR register for achieving expected Baud Rate value.
| LPUARTx | LPUART Instance |
| PeriphClk | Peripheral Clock |
| BaudRate | Baud Rate |
| None |
| __STATIC_INLINE void LL_LPUART_SetBinaryDataLogic | ( | USART_TypeDef * | LPUARTx, |
| uint32_t | DataLogic | ||
| ) |
Configure Binary data logic.
| LPUARTx | LPUART Instance |
| DataLogic | This parameter can be one of the following values:
|
| None |
Definition at line 1151 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_SetDataWidth | ( | USART_TypeDef * | LPUARTx, |
| uint32_t | DataWidth | ||
| ) |
Set Word length (nb of data bits, excluding start and stop bits) CR1 M LL_LPUART_SetDataWidth.
| LPUARTx | LPUART Instance |
| DataWidth | This parameter can be one of the following values:
|
| None |
Definition at line 899 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_SetHWFlowCtrl | ( | USART_TypeDef * | LPUARTx, |
| uint32_t | HardwareFlowControl | ||
| ) |
Configure HW Flow Control mode (both CTS and RTS) CR3 RTSE LL_LPUART_SetHWFlowCtrl
CR3 CTSE LL_LPUART_SetHWFlowCtrl.
| LPUARTx | LPUART Instance |
| HardwareFlowControl | This parameter can be one of the following values:
|
| None |
Definition at line 1313 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_SetParity | ( | USART_TypeDef * | LPUARTx, |
| uint32_t | Parity | ||
| ) |
Configure Parity (enabled/disabled and parity mode if enabled)
| LPUARTx | LPUART Instance |
| Parity | This parameter can be one of the following values:
|
| None |
Definition at line 842 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_SetPrescaler | ( | USART_TypeDef * | LPUARTx, |
| uint32_t | PrescalerValue | ||
| ) |
Configure Clock source prescaler for baudrate generator and oversampling PRESC PRESCALER LL_LPUART_SetPrescaler.
| LPUARTx | LPUART Instance |
| PrescalerValue | This parameter can be one of the following values:
|
| None |
Definition at line 971 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_SetRXFIFOThreshold | ( | USART_TypeDef * | LPUARTx, |
| uint32_t | Threshold | ||
| ) |
Configure RX FIFO Threshold CR3 RXFTCFG LL_LPUART_SetRXFIFOThreshold.
| LPUARTx | LPUART Instance |
| Threshold | This parameter can be one of the following values:
|
| None |
Definition at line 627 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_SetRXPinLevel | ( | USART_TypeDef * | LPUARTx, |
| uint32_t | PinInvMethod | ||
| ) |
Configure RX pin active level logic CR2 RXINV LL_LPUART_SetRXPinLevel.
| LPUARTx | LPUART Instance |
| PinInvMethod | This parameter can be one of the following values:
|
| None |
Definition at line 1094 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_SetStopBitsLength | ( | USART_TypeDef * | LPUARTx, |
| uint32_t | StopBits | ||
| ) |
Set the length of the stop bits CR2 STOP LL_LPUART_SetStopBitsLength.
| LPUARTx | LPUART Instance |
| StopBits | This parameter can be one of the following values:
|
| None |
Definition at line 1009 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_SetTransferBitOrder | ( | USART_TypeDef * | LPUARTx, |
| uint32_t | BitOrder | ||
| ) |
Configure transfer bit order (either Less or Most Significant Bit First)
| LPUARTx | LPUART Instance |
| BitOrder | This parameter can be one of the following values:
|
| None |
Definition at line 1180 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_SetTransferDirection | ( | USART_TypeDef * | LPUARTx, |
| uint32_t | TransferDirection | ||
| ) |
Configure simultaneously enabled/disabled states of Transmitter and Receiver CR1 RE LL_LPUART_SetTransferDirection
CR1 TE LL_LPUART_SetTransferDirection.
| LPUARTx | LPUART Instance |
| TransferDirection | This parameter can be one of the following values:
|
| None |
Definition at line 807 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_SetTXFIFOThreshold | ( | USART_TypeDef * | LPUARTx, |
| uint32_t | Threshold | ||
| ) |
Configure TX FIFO Threshold CR3 TXFTCFG LL_LPUART_SetTXFIFOThreshold.
| LPUARTx | LPUART Instance |
| Threshold | This parameter can be one of the following values:
|
| None |
Definition at line 592 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_SetTXPinLevel | ( | USART_TypeDef * | LPUARTx, |
| uint32_t | PinInvMethod | ||
| ) |
Configure TX pin active level logic CR2 TXINV LL_LPUART_SetTXPinLevel.
| LPUARTx | LPUART Instance |
| PinInvMethod | This parameter can be one of the following values:
|
| None |
Definition at line 1121 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_SetTXRXSwap | ( | USART_TypeDef * | LPUARTx, |
| uint32_t | SwapConfig | ||
| ) |
Configure TX/RX pins swapping setting. CR2 SWAP LL_LPUART_SetTXRXSwap.
| LPUARTx | LPUART Instance |
| SwapConfig | This parameter can be one of the following values:
|
| None |
Definition at line 1067 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_SetWakeUpMethod | ( | USART_TypeDef * | LPUARTx, |
| uint32_t | Method | ||
| ) |
Set Receiver Wake Up method from Mute mode. CR1 WAKE LL_LPUART_SetWakeUpMethod.
| LPUARTx | LPUART Instance |
| Method | This parameter can be one of the following values:
|
| None |
Definition at line 871 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE void LL_LPUART_SetWKUPType | ( | USART_TypeDef * | LPUARTx, |
| uint32_t | Type | ||
| ) |
Select event type for Wake UP Interrupt Flag (WUS[1:0] bits) CR3 WUS LL_LPUART_SetWKUPType.
| LPUARTx | LPUART Instance |
| Type | This parameter can be one of the following values:
|
| None |
Definition at line 1377 of file stm32l4xx_ll_lpuart.h.
| return | ( | brrresult | ) |
| __STATIC_INLINE void uint32_t uint32_t BaudRate |
Definition at line 1433 of file stm32l4xx_ll_lpuart.h.
Definition at line 1437 of file stm32l4xx_ll_lpuart.h.
| register uint32_t brrresult |
Definition at line 1472 of file stm32l4xx_ll_lpuart.h.
| else |
Definition at line 1488 of file stm32l4xx_ll_lpuart.h.
| lpuartdiv = LPUARTx->BRR & LPUART_BRR_MASK |
Definition at line 1477 of file stm32l4xx_ll_lpuart.h.
| __STATIC_INLINE uint32_t uint32_t PeriphClk |
Definition at line 1431 of file stm32l4xx_ll_lpuart.h.
| register uint32_t periphclkpresc = (uint32_t)(PeriphClk / (LPUART_PRESCALER_TAB[(uint16_t)PrescalerValue])) |
Definition at line 1474 of file stm32l4xx_ll_lpuart.h.