Lines Matching refs:LPUARTx
403 __STATIC_INLINE void LL_LPUART_Enable(USART_TypeDef *LPUARTx) in LL_LPUART_Enable() argument
405 SET_BIT(LPUARTx->CR1, USART_CR1_UE); in LL_LPUART_Enable()
422 __STATIC_INLINE void LL_LPUART_Disable(USART_TypeDef *LPUARTx) in LL_LPUART_Disable() argument
424 CLEAR_BIT(LPUARTx->CR1, USART_CR1_UE); in LL_LPUART_Disable()
433 __STATIC_INLINE uint32_t LL_LPUART_IsEnabled(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabled() argument
435 return ((READ_BIT(LPUARTx->CR1, USART_CR1_UE) == (USART_CR1_UE)) ? 1UL : 0UL); in LL_LPUART_IsEnabled()
447 __STATIC_INLINE void LL_LPUART_EnableInStopMode(USART_TypeDef *LPUARTx) in LL_LPUART_EnableInStopMode() argument
449 ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_UESM); in LL_LPUART_EnableInStopMode()
459 __STATIC_INLINE void LL_LPUART_DisableInStopMode(USART_TypeDef *LPUARTx) in LL_LPUART_DisableInStopMode() argument
461 ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_UESM); in LL_LPUART_DisableInStopMode()
471 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledInStopMode(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledInStopMode() argument
473 return ((READ_BIT(LPUARTx->CR1, USART_CR1_UESM) == (USART_CR1_UESM)) ? 1UL : 0UL); in LL_LPUART_IsEnabledInStopMode()
483 __STATIC_INLINE void LL_LPUART_EnableClockInStopMode(USART_TypeDef *LPUARTx) in LL_LPUART_EnableClockInStopMode() argument
485 ATOMIC_SET_BIT(LPUARTx->CR3, USART_CR3_UCESM); in LL_LPUART_EnableClockInStopMode()
495 __STATIC_INLINE void LL_LPUART_DisableClockInStopMode(USART_TypeDef *LPUARTx) in LL_LPUART_DisableClockInStopMode() argument
497 ATOMIC_CLEAR_BIT(LPUARTx->CR3, USART_CR3_UCESM); in LL_LPUART_DisableClockInStopMode()
506 __STATIC_INLINE uint32_t LL_LPUART_IsClockEnabledInStopMode(const USART_TypeDef *LPUARTx) in LL_LPUART_IsClockEnabledInStopMode() argument
508 return ((READ_BIT(LPUARTx->CR3, USART_CR3_UCESM) == (USART_CR3_UCESM)) ? 1UL : 0UL); in LL_LPUART_IsClockEnabledInStopMode()
517 __STATIC_INLINE void LL_LPUART_EnableDirectionRx(USART_TypeDef *LPUARTx) in LL_LPUART_EnableDirectionRx() argument
519 ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_RE); in LL_LPUART_EnableDirectionRx()
528 __STATIC_INLINE void LL_LPUART_DisableDirectionRx(USART_TypeDef *LPUARTx) in LL_LPUART_DisableDirectionRx() argument
530 ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_RE); in LL_LPUART_DisableDirectionRx()
539 __STATIC_INLINE void LL_LPUART_EnableDirectionTx(USART_TypeDef *LPUARTx) in LL_LPUART_EnableDirectionTx() argument
541 ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_TE); in LL_LPUART_EnableDirectionTx()
550 __STATIC_INLINE void LL_LPUART_DisableDirectionTx(USART_TypeDef *LPUARTx) in LL_LPUART_DisableDirectionTx() argument
552 ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_TE); in LL_LPUART_DisableDirectionTx()
568 __STATIC_INLINE void LL_LPUART_SetTransferDirection(USART_TypeDef *LPUARTx, uint32_t TransferDirect… in LL_LPUART_SetTransferDirection() argument
570 ATOMIC_MODIFY_REG(LPUARTx->CR1, USART_CR1_RE | USART_CR1_TE, TransferDirection); in LL_LPUART_SetTransferDirection()
584 __STATIC_INLINE uint32_t LL_LPUART_GetTransferDirection(const USART_TypeDef *LPUARTx) in LL_LPUART_GetTransferDirection() argument
586 return (uint32_t)(READ_BIT(LPUARTx->CR1, USART_CR1_RE | USART_CR1_TE)); in LL_LPUART_GetTransferDirection()
603 __STATIC_INLINE void LL_LPUART_SetParity(USART_TypeDef *LPUARTx, uint32_t Parity) in LL_LPUART_SetParity() argument
605 MODIFY_REG(LPUARTx->CR1, USART_CR1_PS | USART_CR1_PCE, Parity); in LL_LPUART_SetParity()
618 __STATIC_INLINE uint32_t LL_LPUART_GetParity(const USART_TypeDef *LPUARTx) in LL_LPUART_GetParity() argument
620 return (uint32_t)(READ_BIT(LPUARTx->CR1, USART_CR1_PS | USART_CR1_PCE)); in LL_LPUART_GetParity()
632 __STATIC_INLINE void LL_LPUART_SetWakeUpMethod(USART_TypeDef *LPUARTx, uint32_t Method) in LL_LPUART_SetWakeUpMethod() argument
634 MODIFY_REG(LPUARTx->CR1, USART_CR1_WAKE, Method); in LL_LPUART_SetWakeUpMethod()
645 __STATIC_INLINE uint32_t LL_LPUART_GetWakeUpMethod(const USART_TypeDef *LPUARTx) in LL_LPUART_GetWakeUpMethod() argument
647 return (uint32_t)(READ_BIT(LPUARTx->CR1, USART_CR1_WAKE)); in LL_LPUART_GetWakeUpMethod()
660 __STATIC_INLINE void LL_LPUART_SetDataWidth(USART_TypeDef *LPUARTx, uint32_t DataWidth) in LL_LPUART_SetDataWidth() argument
662 MODIFY_REG(LPUARTx->CR1, USART_CR1_M, DataWidth); in LL_LPUART_SetDataWidth()
674 __STATIC_INLINE uint32_t LL_LPUART_GetDataWidth(const USART_TypeDef *LPUARTx) in LL_LPUART_GetDataWidth() argument
676 return (uint32_t)(READ_BIT(LPUARTx->CR1, USART_CR1_M)); in LL_LPUART_GetDataWidth()
685 __STATIC_INLINE void LL_LPUART_EnableMuteMode(USART_TypeDef *LPUARTx) in LL_LPUART_EnableMuteMode() argument
687 ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_MME); in LL_LPUART_EnableMuteMode()
696 __STATIC_INLINE void LL_LPUART_DisableMuteMode(USART_TypeDef *LPUARTx) in LL_LPUART_DisableMuteMode() argument
698 ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_MME); in LL_LPUART_DisableMuteMode()
707 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledMuteMode(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledMuteMode() argument
709 return ((READ_BIT(LPUARTx->CR1, USART_CR1_MME) == (USART_CR1_MME)) ? 1UL : 0UL); in LL_LPUART_IsEnabledMuteMode()
722 __STATIC_INLINE void LL_LPUART_SetStopBitsLength(USART_TypeDef *LPUARTx, uint32_t StopBits) in LL_LPUART_SetStopBitsLength() argument
724 MODIFY_REG(LPUARTx->CR2, USART_CR2_STOP, StopBits); in LL_LPUART_SetStopBitsLength()
735 __STATIC_INLINE uint32_t LL_LPUART_GetStopBitsLength(const USART_TypeDef *LPUARTx) in LL_LPUART_GetStopBitsLength() argument
737 return (uint32_t)(READ_BIT(LPUARTx->CR2, USART_CR2_STOP)); in LL_LPUART_GetStopBitsLength()
764 __STATIC_INLINE void LL_LPUART_ConfigCharacter(USART_TypeDef *LPUARTx, uint32_t DataWidth, uint32_t… in LL_LPUART_ConfigCharacter() argument
767 MODIFY_REG(LPUARTx->CR1, USART_CR1_PS | USART_CR1_PCE | USART_CR1_M, Parity | DataWidth); in LL_LPUART_ConfigCharacter()
768 MODIFY_REG(LPUARTx->CR2, USART_CR2_STOP, StopBits); in LL_LPUART_ConfigCharacter()
780 __STATIC_INLINE void LL_LPUART_SetTXRXSwap(USART_TypeDef *LPUARTx, uint32_t SwapConfig) in LL_LPUART_SetTXRXSwap() argument
782 MODIFY_REG(LPUARTx->CR2, USART_CR2_SWAP, SwapConfig); in LL_LPUART_SetTXRXSwap()
793 __STATIC_INLINE uint32_t LL_LPUART_GetTXRXSwap(const USART_TypeDef *LPUARTx) in LL_LPUART_GetTXRXSwap() argument
795 return (uint32_t)(READ_BIT(LPUARTx->CR2, USART_CR2_SWAP)); in LL_LPUART_GetTXRXSwap()
807 __STATIC_INLINE void LL_LPUART_SetRXPinLevel(USART_TypeDef *LPUARTx, uint32_t PinInvMethod) in LL_LPUART_SetRXPinLevel() argument
809 MODIFY_REG(LPUARTx->CR2, USART_CR2_RXINV, PinInvMethod); in LL_LPUART_SetRXPinLevel()
820 __STATIC_INLINE uint32_t LL_LPUART_GetRXPinLevel(const USART_TypeDef *LPUARTx) in LL_LPUART_GetRXPinLevel() argument
822 return (uint32_t)(READ_BIT(LPUARTx->CR2, USART_CR2_RXINV)); in LL_LPUART_GetRXPinLevel()
834 __STATIC_INLINE void LL_LPUART_SetTXPinLevel(USART_TypeDef *LPUARTx, uint32_t PinInvMethod) in LL_LPUART_SetTXPinLevel() argument
836 MODIFY_REG(LPUARTx->CR2, USART_CR2_TXINV, PinInvMethod); in LL_LPUART_SetTXPinLevel()
847 __STATIC_INLINE uint32_t LL_LPUART_GetTXPinLevel(const USART_TypeDef *LPUARTx) in LL_LPUART_GetTXPinLevel() argument
849 return (uint32_t)(READ_BIT(LPUARTx->CR2, USART_CR2_TXINV)); in LL_LPUART_GetTXPinLevel()
864 __STATIC_INLINE void LL_LPUART_SetBinaryDataLogic(USART_TypeDef *LPUARTx, uint32_t DataLogic) in LL_LPUART_SetBinaryDataLogic() argument
866 MODIFY_REG(LPUARTx->CR2, USART_CR2_DATAINV, DataLogic); in LL_LPUART_SetBinaryDataLogic()
877 __STATIC_INLINE uint32_t LL_LPUART_GetBinaryDataLogic(const USART_TypeDef *LPUARTx) in LL_LPUART_GetBinaryDataLogic() argument
879 return (uint32_t)(READ_BIT(LPUARTx->CR2, USART_CR2_DATAINV)); in LL_LPUART_GetBinaryDataLogic()
893 __STATIC_INLINE void LL_LPUART_SetTransferBitOrder(USART_TypeDef *LPUARTx, uint32_t BitOrder) in LL_LPUART_SetTransferBitOrder() argument
895 MODIFY_REG(LPUARTx->CR2, USART_CR2_MSBFIRST, BitOrder); in LL_LPUART_SetTransferBitOrder()
908 __STATIC_INLINE uint32_t LL_LPUART_GetTransferBitOrder(const USART_TypeDef *LPUARTx) in LL_LPUART_GetTransferBitOrder() argument
910 return (uint32_t)(READ_BIT(LPUARTx->CR2, USART_CR2_MSBFIRST)); in LL_LPUART_GetTransferBitOrder()
936 __STATIC_INLINE void LL_LPUART_ConfigNodeAddress(USART_TypeDef *LPUARTx, uint32_t AddressLen, uint3… in LL_LPUART_ConfigNodeAddress() argument
938 MODIFY_REG(LPUARTx->CR2, USART_CR2_ADD | USART_CR2_ADDM7, in LL_LPUART_ConfigNodeAddress()
952 __STATIC_INLINE uint32_t LL_LPUART_GetNodeAddress(const USART_TypeDef *LPUARTx) in LL_LPUART_GetNodeAddress() argument
954 return (uint32_t)(READ_BIT(LPUARTx->CR2, USART_CR2_ADD) >> USART_CR2_ADD_Pos); in LL_LPUART_GetNodeAddress()
965 __STATIC_INLINE uint32_t LL_LPUART_GetNodeAddressLen(const USART_TypeDef *LPUARTx) in LL_LPUART_GetNodeAddressLen() argument
967 return (uint32_t)(READ_BIT(LPUARTx->CR2, USART_CR2_ADDM7)); in LL_LPUART_GetNodeAddressLen()
976 __STATIC_INLINE void LL_LPUART_EnableRTSHWFlowCtrl(USART_TypeDef *LPUARTx) in LL_LPUART_EnableRTSHWFlowCtrl() argument
978 SET_BIT(LPUARTx->CR3, USART_CR3_RTSE); in LL_LPUART_EnableRTSHWFlowCtrl()
987 __STATIC_INLINE void LL_LPUART_DisableRTSHWFlowCtrl(USART_TypeDef *LPUARTx) in LL_LPUART_DisableRTSHWFlowCtrl() argument
989 CLEAR_BIT(LPUARTx->CR3, USART_CR3_RTSE); in LL_LPUART_DisableRTSHWFlowCtrl()
998 __STATIC_INLINE void LL_LPUART_EnableCTSHWFlowCtrl(USART_TypeDef *LPUARTx) in LL_LPUART_EnableCTSHWFlowCtrl() argument
1000 SET_BIT(LPUARTx->CR3, USART_CR3_CTSE); in LL_LPUART_EnableCTSHWFlowCtrl()
1009 __STATIC_INLINE void LL_LPUART_DisableCTSHWFlowCtrl(USART_TypeDef *LPUARTx) in LL_LPUART_DisableCTSHWFlowCtrl() argument
1011 CLEAR_BIT(LPUARTx->CR3, USART_CR3_CTSE); in LL_LPUART_DisableCTSHWFlowCtrl()
1026 __STATIC_INLINE void LL_LPUART_SetHWFlowCtrl(USART_TypeDef *LPUARTx, uint32_t HardwareFlowControl) in LL_LPUART_SetHWFlowCtrl() argument
1028 MODIFY_REG(LPUARTx->CR3, USART_CR3_RTSE | USART_CR3_CTSE, HardwareFlowControl); in LL_LPUART_SetHWFlowCtrl()
1042 __STATIC_INLINE uint32_t LL_LPUART_GetHWFlowCtrl(const USART_TypeDef *LPUARTx) in LL_LPUART_GetHWFlowCtrl() argument
1044 return (uint32_t)(READ_BIT(LPUARTx->CR3, USART_CR3_RTSE | USART_CR3_CTSE)); in LL_LPUART_GetHWFlowCtrl()
1053 __STATIC_INLINE void LL_LPUART_EnableOverrunDetect(USART_TypeDef *LPUARTx) in LL_LPUART_EnableOverrunDetect() argument
1055 CLEAR_BIT(LPUARTx->CR3, USART_CR3_OVRDIS); in LL_LPUART_EnableOverrunDetect()
1064 __STATIC_INLINE void LL_LPUART_DisableOverrunDetect(USART_TypeDef *LPUARTx) in LL_LPUART_DisableOverrunDetect() argument
1066 SET_BIT(LPUARTx->CR3, USART_CR3_OVRDIS); in LL_LPUART_DisableOverrunDetect()
1075 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledOverrunDetect(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledOverrunDetect() argument
1077 return ((READ_BIT(LPUARTx->CR3, USART_CR3_OVRDIS) != USART_CR3_OVRDIS) ? 1UL : 0UL); in LL_LPUART_IsEnabledOverrunDetect()
1090 __STATIC_INLINE void LL_LPUART_SetWKUPType(USART_TypeDef *LPUARTx, uint32_t Type) in LL_LPUART_SetWKUPType() argument
1092 MODIFY_REG(LPUARTx->CR3, USART_CR3_WUS, Type); in LL_LPUART_SetWKUPType()
1104 __STATIC_INLINE uint32_t LL_LPUART_GetWKUPType(const USART_TypeDef *LPUARTx) in LL_LPUART_GetWKUPType() argument
1106 return (uint32_t)(READ_BIT(LPUARTx->CR3, USART_CR3_WUS)); in LL_LPUART_GetWKUPType()
1125 __STATIC_INLINE void LL_LPUART_SetBaudRate(USART_TypeDef *LPUARTx, uint32_t PeriphClk, uint32_t Bau… in LL_LPUART_SetBaudRate() argument
1129 LPUARTx->BRR = __LL_LPUART_DIV(PeriphClk, BaudRate); in LL_LPUART_SetBaudRate()
1142 __STATIC_INLINE uint32_t LL_LPUART_GetBaudRate(const USART_TypeDef *LPUARTx, uint32_t PeriphClk) in LL_LPUART_GetBaudRate() argument
1147 lpuartdiv = LPUARTx->BRR & LPUART_BRR_MASK; in LL_LPUART_GetBaudRate()
1175 __STATIC_INLINE void LL_LPUART_EnableHalfDuplex(USART_TypeDef *LPUARTx) in LL_LPUART_EnableHalfDuplex() argument
1177 SET_BIT(LPUARTx->CR3, USART_CR3_HDSEL); in LL_LPUART_EnableHalfDuplex()
1186 __STATIC_INLINE void LL_LPUART_DisableHalfDuplex(USART_TypeDef *LPUARTx) in LL_LPUART_DisableHalfDuplex() argument
1188 CLEAR_BIT(LPUARTx->CR3, USART_CR3_HDSEL); in LL_LPUART_DisableHalfDuplex()
1197 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledHalfDuplex(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledHalfDuplex() argument
1199 return ((READ_BIT(LPUARTx->CR3, USART_CR3_HDSEL) == (USART_CR3_HDSEL)) ? 1UL : 0UL); in LL_LPUART_IsEnabledHalfDuplex()
1217 __STATIC_INLINE void LL_LPUART_SetDEDeassertionTime(USART_TypeDef *LPUARTx, uint32_t Time) in LL_LPUART_SetDEDeassertionTime() argument
1219 MODIFY_REG(LPUARTx->CR1, USART_CR1_DEDT, Time << USART_CR1_DEDT_Pos); in LL_LPUART_SetDEDeassertionTime()
1228 __STATIC_INLINE uint32_t LL_LPUART_GetDEDeassertionTime(const USART_TypeDef *LPUARTx) in LL_LPUART_GetDEDeassertionTime() argument
1230 return (uint32_t)(READ_BIT(LPUARTx->CR1, USART_CR1_DEDT) >> USART_CR1_DEDT_Pos); in LL_LPUART_GetDEDeassertionTime()
1240 __STATIC_INLINE void LL_LPUART_SetDEAssertionTime(USART_TypeDef *LPUARTx, uint32_t Time) in LL_LPUART_SetDEAssertionTime() argument
1242 MODIFY_REG(LPUARTx->CR1, USART_CR1_DEAT, Time << USART_CR1_DEAT_Pos); in LL_LPUART_SetDEAssertionTime()
1251 __STATIC_INLINE uint32_t LL_LPUART_GetDEAssertionTime(const USART_TypeDef *LPUARTx) in LL_LPUART_GetDEAssertionTime() argument
1253 return (uint32_t)(READ_BIT(LPUARTx->CR1, USART_CR1_DEAT) >> USART_CR1_DEAT_Pos); in LL_LPUART_GetDEAssertionTime()
1262 __STATIC_INLINE void LL_LPUART_EnableDEMode(USART_TypeDef *LPUARTx) in LL_LPUART_EnableDEMode() argument
1264 SET_BIT(LPUARTx->CR3, USART_CR3_DEM); in LL_LPUART_EnableDEMode()
1273 __STATIC_INLINE void LL_LPUART_DisableDEMode(USART_TypeDef *LPUARTx) in LL_LPUART_DisableDEMode() argument
1275 CLEAR_BIT(LPUARTx->CR3, USART_CR3_DEM); in LL_LPUART_DisableDEMode()
1284 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledDEMode(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledDEMode() argument
1286 return ((READ_BIT(LPUARTx->CR3, USART_CR3_DEM) == (USART_CR3_DEM)) ? 1UL : 0UL); in LL_LPUART_IsEnabledDEMode()
1298 __STATIC_INLINE void LL_LPUART_SetDESignalPolarity(USART_TypeDef *LPUARTx, uint32_t Polarity) in LL_LPUART_SetDESignalPolarity() argument
1300 MODIFY_REG(LPUARTx->CR3, USART_CR3_DEP, Polarity); in LL_LPUART_SetDESignalPolarity()
1311 __STATIC_INLINE uint32_t LL_LPUART_GetDESignalPolarity(const USART_TypeDef *LPUARTx) in LL_LPUART_GetDESignalPolarity() argument
1313 return (uint32_t)(READ_BIT(LPUARTx->CR3, USART_CR3_DEP)); in LL_LPUART_GetDESignalPolarity()
1330 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_PE(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_PE() argument
1332 return ((READ_BIT(LPUARTx->ISR, USART_ISR_PE) == (USART_ISR_PE)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_PE()
1341 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_FE(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_FE() argument
1343 return ((READ_BIT(LPUARTx->ISR, USART_ISR_FE) == (USART_ISR_FE)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_FE()
1352 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_NE(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_NE() argument
1354 return ((READ_BIT(LPUARTx->ISR, USART_ISR_NE) == (USART_ISR_NE)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_NE()
1363 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_ORE(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_ORE() argument
1365 return ((READ_BIT(LPUARTx->ISR, USART_ISR_ORE) == (USART_ISR_ORE)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_ORE()
1374 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_IDLE(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_IDLE() argument
1376 return ((READ_BIT(LPUARTx->ISR, USART_ISR_IDLE) == (USART_ISR_IDLE)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_IDLE()
1385 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_RXNE(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_RXNE() argument
1387 return ((READ_BIT(LPUARTx->ISR, USART_ISR_RXNE) == (USART_ISR_RXNE)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_RXNE()
1396 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_TC(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_TC() argument
1398 return ((READ_BIT(LPUARTx->ISR, USART_ISR_TC) == (USART_ISR_TC)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_TC()
1407 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_TXE(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_TXE() argument
1409 return ((READ_BIT(LPUARTx->ISR, USART_ISR_TXE) == (USART_ISR_TXE)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_TXE()
1418 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_nCTS(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_nCTS() argument
1420 return ((READ_BIT(LPUARTx->ISR, USART_ISR_CTSIF) == (USART_ISR_CTSIF)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_nCTS()
1429 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_CTS(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_CTS() argument
1431 return ((READ_BIT(LPUARTx->ISR, USART_ISR_CTS) == (USART_ISR_CTS)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_CTS()
1440 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_BUSY(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_BUSY() argument
1442 return ((READ_BIT(LPUARTx->ISR, USART_ISR_BUSY) == (USART_ISR_BUSY)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_BUSY()
1451 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_CM(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_CM() argument
1453 return ((READ_BIT(LPUARTx->ISR, USART_ISR_CMF) == (USART_ISR_CMF)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_CM()
1462 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_SBK(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_SBK() argument
1464 return ((READ_BIT(LPUARTx->ISR, USART_ISR_SBKF) == (USART_ISR_SBKF)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_SBK()
1473 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_RWU(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_RWU() argument
1475 return ((READ_BIT(LPUARTx->ISR, USART_ISR_RWU) == (USART_ISR_RWU)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_RWU()
1484 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_WKUP(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_WKUP() argument
1486 return ((READ_BIT(LPUARTx->ISR, USART_ISR_WUF) == (USART_ISR_WUF)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_WKUP()
1495 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_TEACK(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_TEACK() argument
1497 return ((READ_BIT(LPUARTx->ISR, USART_ISR_TEACK) == (USART_ISR_TEACK)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_TEACK()
1506 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_REACK(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_REACK() argument
1508 return ((READ_BIT(LPUARTx->ISR, USART_ISR_REACK) == (USART_ISR_REACK)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_REACK()
1518 __STATIC_INLINE void LL_LPUART_ClearFlag_PE(USART_TypeDef *LPUARTx) in LL_LPUART_ClearFlag_PE() argument
1520 WRITE_REG(LPUARTx->ICR, USART_ICR_PECF); in LL_LPUART_ClearFlag_PE()
1529 __STATIC_INLINE void LL_LPUART_ClearFlag_FE(USART_TypeDef *LPUARTx) in LL_LPUART_ClearFlag_FE() argument
1531 WRITE_REG(LPUARTx->ICR, USART_ICR_FECF); in LL_LPUART_ClearFlag_FE()
1540 __STATIC_INLINE void LL_LPUART_ClearFlag_NE(USART_TypeDef *LPUARTx) in LL_LPUART_ClearFlag_NE() argument
1542 WRITE_REG(LPUARTx->ICR, USART_ICR_NCF); in LL_LPUART_ClearFlag_NE()
1551 __STATIC_INLINE void LL_LPUART_ClearFlag_ORE(USART_TypeDef *LPUARTx) in LL_LPUART_ClearFlag_ORE() argument
1553 WRITE_REG(LPUARTx->ICR, USART_ICR_ORECF); in LL_LPUART_ClearFlag_ORE()
1562 __STATIC_INLINE void LL_LPUART_ClearFlag_IDLE(USART_TypeDef *LPUARTx) in LL_LPUART_ClearFlag_IDLE() argument
1564 WRITE_REG(LPUARTx->ICR, USART_ICR_IDLECF); in LL_LPUART_ClearFlag_IDLE()
1573 __STATIC_INLINE void LL_LPUART_ClearFlag_TC(USART_TypeDef *LPUARTx) in LL_LPUART_ClearFlag_TC() argument
1575 WRITE_REG(LPUARTx->ICR, USART_ICR_TCCF); in LL_LPUART_ClearFlag_TC()
1584 __STATIC_INLINE void LL_LPUART_ClearFlag_nCTS(USART_TypeDef *LPUARTx) in LL_LPUART_ClearFlag_nCTS() argument
1586 WRITE_REG(LPUARTx->ICR, USART_ICR_CTSCF); in LL_LPUART_ClearFlag_nCTS()
1595 __STATIC_INLINE void LL_LPUART_ClearFlag_CM(USART_TypeDef *LPUARTx) in LL_LPUART_ClearFlag_CM() argument
1597 WRITE_REG(LPUARTx->ICR, USART_ICR_CMCF); in LL_LPUART_ClearFlag_CM()
1606 __STATIC_INLINE void LL_LPUART_ClearFlag_WKUP(USART_TypeDef *LPUARTx) in LL_LPUART_ClearFlag_WKUP() argument
1608 WRITE_REG(LPUARTx->ICR, USART_ICR_WUCF); in LL_LPUART_ClearFlag_WKUP()
1625 __STATIC_INLINE void LL_LPUART_EnableIT_IDLE(USART_TypeDef *LPUARTx) in LL_LPUART_EnableIT_IDLE() argument
1627 ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_IDLEIE); in LL_LPUART_EnableIT_IDLE()
1637 __STATIC_INLINE void LL_LPUART_EnableIT_RXNE(USART_TypeDef *LPUARTx) in LL_LPUART_EnableIT_RXNE() argument
1639 ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_RXNEIE); in LL_LPUART_EnableIT_RXNE()
1648 __STATIC_INLINE void LL_LPUART_EnableIT_TC(USART_TypeDef *LPUARTx) in LL_LPUART_EnableIT_TC() argument
1650 ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_TCIE); in LL_LPUART_EnableIT_TC()
1660 __STATIC_INLINE void LL_LPUART_EnableIT_TXE(USART_TypeDef *LPUARTx) in LL_LPUART_EnableIT_TXE() argument
1662 ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_TXEIE); in LL_LPUART_EnableIT_TXE()
1671 __STATIC_INLINE void LL_LPUART_EnableIT_PE(USART_TypeDef *LPUARTx) in LL_LPUART_EnableIT_PE() argument
1673 ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_PEIE); in LL_LPUART_EnableIT_PE()
1682 __STATIC_INLINE void LL_LPUART_EnableIT_CM(USART_TypeDef *LPUARTx) in LL_LPUART_EnableIT_CM() argument
1684 ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_CMIE); in LL_LPUART_EnableIT_CM()
1698 __STATIC_INLINE void LL_LPUART_EnableIT_ERROR(USART_TypeDef *LPUARTx) in LL_LPUART_EnableIT_ERROR() argument
1700 ATOMIC_SET_BIT(LPUARTx->CR3, USART_CR3_EIE); in LL_LPUART_EnableIT_ERROR()
1709 __STATIC_INLINE void LL_LPUART_EnableIT_CTS(USART_TypeDef *LPUARTx) in LL_LPUART_EnableIT_CTS() argument
1711 ATOMIC_SET_BIT(LPUARTx->CR3, USART_CR3_CTSIE); in LL_LPUART_EnableIT_CTS()
1720 __STATIC_INLINE void LL_LPUART_EnableIT_WKUP(USART_TypeDef *LPUARTx) in LL_LPUART_EnableIT_WKUP() argument
1722 ATOMIC_SET_BIT(LPUARTx->CR3, USART_CR3_WUFIE); in LL_LPUART_EnableIT_WKUP()
1732 __STATIC_INLINE void LL_LPUART_DisableIT_IDLE(USART_TypeDef *LPUARTx) in LL_LPUART_DisableIT_IDLE() argument
1734 ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_IDLEIE); in LL_LPUART_DisableIT_IDLE()
1744 __STATIC_INLINE void LL_LPUART_DisableIT_RXNE(USART_TypeDef *LPUARTx) in LL_LPUART_DisableIT_RXNE() argument
1746 ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_RXNEIE); in LL_LPUART_DisableIT_RXNE()
1755 __STATIC_INLINE void LL_LPUART_DisableIT_TC(USART_TypeDef *LPUARTx) in LL_LPUART_DisableIT_TC() argument
1757 ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_TCIE); in LL_LPUART_DisableIT_TC()
1767 __STATIC_INLINE void LL_LPUART_DisableIT_TXE(USART_TypeDef *LPUARTx) in LL_LPUART_DisableIT_TXE() argument
1769 ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_TXEIE); in LL_LPUART_DisableIT_TXE()
1778 __STATIC_INLINE void LL_LPUART_DisableIT_PE(USART_TypeDef *LPUARTx) in LL_LPUART_DisableIT_PE() argument
1780 ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_PEIE); in LL_LPUART_DisableIT_PE()
1789 __STATIC_INLINE void LL_LPUART_DisableIT_CM(USART_TypeDef *LPUARTx) in LL_LPUART_DisableIT_CM() argument
1791 ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_CMIE); in LL_LPUART_DisableIT_CM()
1805 __STATIC_INLINE void LL_LPUART_DisableIT_ERROR(USART_TypeDef *LPUARTx) in LL_LPUART_DisableIT_ERROR() argument
1807 ATOMIC_CLEAR_BIT(LPUARTx->CR3, USART_CR3_EIE); in LL_LPUART_DisableIT_ERROR()
1816 __STATIC_INLINE void LL_LPUART_DisableIT_CTS(USART_TypeDef *LPUARTx) in LL_LPUART_DisableIT_CTS() argument
1818 ATOMIC_CLEAR_BIT(LPUARTx->CR3, USART_CR3_CTSIE); in LL_LPUART_DisableIT_CTS()
1827 __STATIC_INLINE void LL_LPUART_DisableIT_WKUP(USART_TypeDef *LPUARTx) in LL_LPUART_DisableIT_WKUP() argument
1829 ATOMIC_CLEAR_BIT(LPUARTx->CR3, USART_CR3_WUFIE); in LL_LPUART_DisableIT_WKUP()
1839 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_IDLE(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledIT_IDLE() argument
1841 return ((READ_BIT(LPUARTx->CR1, USART_CR1_IDLEIE) == (USART_CR1_IDLEIE)) ? 1UL : 0UL); in LL_LPUART_IsEnabledIT_IDLE()
1851 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_RXNE(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledIT_RXNE() argument
1853 return ((READ_BIT(LPUARTx->CR1, USART_CR1_RXNEIE) == (USART_CR1_RXNEIE)) ? 1UL : 0UL); in LL_LPUART_IsEnabledIT_RXNE()
1862 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_TC(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledIT_TC() argument
1864 return ((READ_BIT(LPUARTx->CR1, USART_CR1_TCIE) == (USART_CR1_TCIE)) ? 1UL : 0UL); in LL_LPUART_IsEnabledIT_TC()
1874 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_TXE(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledIT_TXE() argument
1876 return ((READ_BIT(LPUARTx->CR1, USART_CR1_TXEIE) == (USART_CR1_TXEIE)) ? 1UL : 0UL); in LL_LPUART_IsEnabledIT_TXE()
1885 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_PE(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledIT_PE() argument
1887 return ((READ_BIT(LPUARTx->CR1, USART_CR1_PEIE) == (USART_CR1_PEIE)) ? 1UL : 0UL); in LL_LPUART_IsEnabledIT_PE()
1896 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_CM(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledIT_CM() argument
1898 return ((READ_BIT(LPUARTx->CR1, USART_CR1_CMIE) == (USART_CR1_CMIE)) ? 1UL : 0UL); in LL_LPUART_IsEnabledIT_CM()
1908 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_ERROR(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledIT_ERROR() argument
1910 return ((READ_BIT(LPUARTx->CR3, USART_CR3_EIE) == (USART_CR3_EIE)) ? 1UL : 0UL); in LL_LPUART_IsEnabledIT_ERROR()
1919 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_CTS(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledIT_CTS() argument
1921 return ((READ_BIT(LPUARTx->CR3, USART_CR3_CTSIE) == (USART_CR3_CTSIE)) ? 1UL : 0UL); in LL_LPUART_IsEnabledIT_CTS()
1930 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_WKUP(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledIT_WKUP() argument
1932 return ((READ_BIT(LPUARTx->CR3, USART_CR3_WUFIE) == (USART_CR3_WUFIE)) ? 1UL : 0UL); in LL_LPUART_IsEnabledIT_WKUP()
1950 __STATIC_INLINE void LL_LPUART_EnableDMAReq_RX(USART_TypeDef *LPUARTx) in LL_LPUART_EnableDMAReq_RX() argument
1952 ATOMIC_SET_BIT(LPUARTx->CR3, USART_CR3_DMAR); in LL_LPUART_EnableDMAReq_RX()
1961 __STATIC_INLINE void LL_LPUART_DisableDMAReq_RX(USART_TypeDef *LPUARTx) in LL_LPUART_DisableDMAReq_RX() argument
1963 ATOMIC_CLEAR_BIT(LPUARTx->CR3, USART_CR3_DMAR); in LL_LPUART_DisableDMAReq_RX()
1972 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledDMAReq_RX(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledDMAReq_RX() argument
1974 return ((READ_BIT(LPUARTx->CR3, USART_CR3_DMAR) == (USART_CR3_DMAR)) ? 1UL : 0UL); in LL_LPUART_IsEnabledDMAReq_RX()
1983 __STATIC_INLINE void LL_LPUART_EnableDMAReq_TX(USART_TypeDef *LPUARTx) in LL_LPUART_EnableDMAReq_TX() argument
1985 ATOMIC_SET_BIT(LPUARTx->CR3, USART_CR3_DMAT); in LL_LPUART_EnableDMAReq_TX()
1994 __STATIC_INLINE void LL_LPUART_DisableDMAReq_TX(USART_TypeDef *LPUARTx) in LL_LPUART_DisableDMAReq_TX() argument
1996 ATOMIC_CLEAR_BIT(LPUARTx->CR3, USART_CR3_DMAT); in LL_LPUART_DisableDMAReq_TX()
2005 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledDMAReq_TX(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledDMAReq_TX() argument
2007 return ((READ_BIT(LPUARTx->CR3, USART_CR3_DMAT) == (USART_CR3_DMAT)) ? 1UL : 0UL); in LL_LPUART_IsEnabledDMAReq_TX()
2016 __STATIC_INLINE void LL_LPUART_EnableDMADeactOnRxErr(USART_TypeDef *LPUARTx) in LL_LPUART_EnableDMADeactOnRxErr() argument
2018 SET_BIT(LPUARTx->CR3, USART_CR3_DDRE); in LL_LPUART_EnableDMADeactOnRxErr()
2027 __STATIC_INLINE void LL_LPUART_DisableDMADeactOnRxErr(USART_TypeDef *LPUARTx) in LL_LPUART_DisableDMADeactOnRxErr() argument
2029 CLEAR_BIT(LPUARTx->CR3, USART_CR3_DDRE); in LL_LPUART_DisableDMADeactOnRxErr()
2038 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledDMADeactOnRxErr(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledDMADeactOnRxErr() argument
2040 return ((READ_BIT(LPUARTx->CR3, USART_CR3_DDRE) == (USART_CR3_DDRE)) ? 1UL : 0UL); in LL_LPUART_IsEnabledDMADeactOnRxErr()
2053 __STATIC_INLINE uint32_t LL_LPUART_DMA_GetRegAddr(const USART_TypeDef *LPUARTx, uint32_t Direction) in LL_LPUART_DMA_GetRegAddr() argument
2060 data_reg_addr = (uint32_t) &(LPUARTx->TDR); in LL_LPUART_DMA_GetRegAddr()
2065 data_reg_addr = (uint32_t) &(LPUARTx->RDR); in LL_LPUART_DMA_GetRegAddr()
2085 __STATIC_INLINE uint8_t LL_LPUART_ReceiveData8(const USART_TypeDef *LPUARTx) in LL_LPUART_ReceiveData8() argument
2087 return (uint8_t)(READ_BIT(LPUARTx->RDR, USART_RDR_RDR) & 0xFFU); in LL_LPUART_ReceiveData8()
2096 __STATIC_INLINE uint16_t LL_LPUART_ReceiveData9(const USART_TypeDef *LPUARTx) in LL_LPUART_ReceiveData9() argument
2098 return (uint16_t)(READ_BIT(LPUARTx->RDR, USART_RDR_RDR)); in LL_LPUART_ReceiveData9()
2108 __STATIC_INLINE void LL_LPUART_TransmitData8(USART_TypeDef *LPUARTx, uint8_t Value) in LL_LPUART_TransmitData8() argument
2110 LPUARTx->TDR = Value; in LL_LPUART_TransmitData8()
2120 __STATIC_INLINE void LL_LPUART_TransmitData9(USART_TypeDef *LPUARTx, uint16_t Value) in LL_LPUART_TransmitData9() argument
2122 LPUARTx->TDR = Value & 0x1FFUL; in LL_LPUART_TransmitData9()
2139 __STATIC_INLINE void LL_LPUART_RequestBreakSending(USART_TypeDef *LPUARTx) in LL_LPUART_RequestBreakSending() argument
2141 SET_BIT(LPUARTx->RQR, (uint16_t)USART_RQR_SBKRQ); in LL_LPUART_RequestBreakSending()
2150 __STATIC_INLINE void LL_LPUART_RequestEnterMuteMode(USART_TypeDef *LPUARTx) in LL_LPUART_RequestEnterMuteMode() argument
2152 SET_BIT(LPUARTx->RQR, (uint16_t)USART_RQR_MMRQ); in LL_LPUART_RequestEnterMuteMode()
2163 __STATIC_INLINE void LL_LPUART_RequestRxDataFlush(USART_TypeDef *LPUARTx) in LL_LPUART_RequestRxDataFlush() argument
2165 SET_BIT(LPUARTx->RQR, (uint16_t)USART_RQR_RXFRQ); in LL_LPUART_RequestRxDataFlush()
2176 ErrorStatus LL_LPUART_DeInit(const USART_TypeDef *LPUARTx);
2177 ErrorStatus LL_LPUART_Init(USART_TypeDef *LPUARTx, const LL_LPUART_InitTypeDef *LPUART_InitStruct);