Lines Matching refs:LPUARTx

511 __STATIC_INLINE void LL_LPUART_Enable(USART_TypeDef *LPUARTx)  in LL_LPUART_Enable()  argument
513 SET_BIT(LPUARTx->CR1, USART_CR1_UE); in LL_LPUART_Enable()
530 __STATIC_INLINE void LL_LPUART_Disable(USART_TypeDef *LPUARTx) in LL_LPUART_Disable() argument
532 CLEAR_BIT(LPUARTx->CR1, USART_CR1_UE); in LL_LPUART_Disable()
541 __STATIC_INLINE uint32_t LL_LPUART_IsEnabled(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabled() argument
543 return ((READ_BIT(LPUARTx->CR1, USART_CR1_UE) == (USART_CR1_UE)) ? 1UL : 0UL); in LL_LPUART_IsEnabled()
552 __STATIC_INLINE void LL_LPUART_EnableFIFO(USART_TypeDef *LPUARTx) in LL_LPUART_EnableFIFO() argument
554 SET_BIT(LPUARTx->CR1, USART_CR1_FIFOEN); in LL_LPUART_EnableFIFO()
563 __STATIC_INLINE void LL_LPUART_DisableFIFO(USART_TypeDef *LPUARTx) in LL_LPUART_DisableFIFO() argument
565 CLEAR_BIT(LPUARTx->CR1, USART_CR1_FIFOEN); in LL_LPUART_DisableFIFO()
574 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledFIFO(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledFIFO() argument
576 return ((READ_BIT(LPUARTx->CR1, USART_CR1_FIFOEN) == (USART_CR1_FIFOEN)) ? 1UL : 0UL); in LL_LPUART_IsEnabledFIFO()
592 __STATIC_INLINE void LL_LPUART_SetTXFIFOThreshold(USART_TypeDef *LPUARTx, uint32_t Threshold) in LL_LPUART_SetTXFIFOThreshold() argument
594 ATOMIC_MODIFY_REG(LPUARTx->CR3, USART_CR3_TXFTCFG, Threshold << USART_CR3_TXFTCFG_Pos); in LL_LPUART_SetTXFIFOThreshold()
609 __STATIC_INLINE uint32_t LL_LPUART_GetTXFIFOThreshold(const USART_TypeDef *LPUARTx) in LL_LPUART_GetTXFIFOThreshold() argument
611 return (uint32_t)(READ_BIT(LPUARTx->CR3, USART_CR3_TXFTCFG) >> USART_CR3_TXFTCFG_Pos); in LL_LPUART_GetTXFIFOThreshold()
627 __STATIC_INLINE void LL_LPUART_SetRXFIFOThreshold(USART_TypeDef *LPUARTx, uint32_t Threshold) in LL_LPUART_SetRXFIFOThreshold() argument
629 ATOMIC_MODIFY_REG(LPUARTx->CR3, USART_CR3_RXFTCFG, Threshold << USART_CR3_RXFTCFG_Pos); in LL_LPUART_SetRXFIFOThreshold()
644 __STATIC_INLINE uint32_t LL_LPUART_GetRXFIFOThreshold(const USART_TypeDef *LPUARTx) in LL_LPUART_GetRXFIFOThreshold() argument
646 return (uint32_t)(READ_BIT(LPUARTx->CR3, USART_CR3_RXFTCFG) >> USART_CR3_RXFTCFG_Pos); in LL_LPUART_GetRXFIFOThreshold()
670 __STATIC_INLINE void LL_LPUART_ConfigFIFOsThreshold(USART_TypeDef *LPUARTx, uint32_t TXThreshold, u… in LL_LPUART_ConfigFIFOsThreshold() argument
672 …ATOMIC_MODIFY_REG(LPUARTx->CR3, USART_CR3_TXFTCFG | USART_CR3_RXFTCFG, (TXThreshold << USART_CR3_T… in LL_LPUART_ConfigFIFOsThreshold()
684 __STATIC_INLINE void LL_LPUART_EnableInStopMode(USART_TypeDef *LPUARTx) in LL_LPUART_EnableInStopMode() argument
686 ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_UESM); in LL_LPUART_EnableInStopMode()
696 __STATIC_INLINE void LL_LPUART_DisableInStopMode(USART_TypeDef *LPUARTx) in LL_LPUART_DisableInStopMode() argument
698 ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_UESM); in LL_LPUART_DisableInStopMode()
708 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledInStopMode(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledInStopMode() argument
710 return ((READ_BIT(LPUARTx->CR1, USART_CR1_UESM) == (USART_CR1_UESM)) ? 1UL : 0UL); in LL_LPUART_IsEnabledInStopMode()
719 __STATIC_INLINE void LL_LPUART_EnableDirectionRx(USART_TypeDef *LPUARTx) in LL_LPUART_EnableDirectionRx() argument
721 ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_RE); in LL_LPUART_EnableDirectionRx()
730 __STATIC_INLINE void LL_LPUART_DisableDirectionRx(USART_TypeDef *LPUARTx) in LL_LPUART_DisableDirectionRx() argument
732 ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_RE); in LL_LPUART_DisableDirectionRx()
741 __STATIC_INLINE void LL_LPUART_EnableDirectionTx(USART_TypeDef *LPUARTx) in LL_LPUART_EnableDirectionTx() argument
743 ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_TE); in LL_LPUART_EnableDirectionTx()
752 __STATIC_INLINE void LL_LPUART_DisableDirectionTx(USART_TypeDef *LPUARTx) in LL_LPUART_DisableDirectionTx() argument
754 ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_TE); in LL_LPUART_DisableDirectionTx()
770 __STATIC_INLINE void LL_LPUART_SetTransferDirection(USART_TypeDef *LPUARTx, uint32_t TransferDirect… in LL_LPUART_SetTransferDirection() argument
772 ATOMIC_MODIFY_REG(LPUARTx->CR1, USART_CR1_RE | USART_CR1_TE, TransferDirection); in LL_LPUART_SetTransferDirection()
786 __STATIC_INLINE uint32_t LL_LPUART_GetTransferDirection(const USART_TypeDef *LPUARTx) in LL_LPUART_GetTransferDirection() argument
788 return (uint32_t)(READ_BIT(LPUARTx->CR1, USART_CR1_RE | USART_CR1_TE)); in LL_LPUART_GetTransferDirection()
805 __STATIC_INLINE void LL_LPUART_SetParity(USART_TypeDef *LPUARTx, uint32_t Parity) in LL_LPUART_SetParity() argument
807 MODIFY_REG(LPUARTx->CR1, USART_CR1_PS | USART_CR1_PCE, Parity); in LL_LPUART_SetParity()
820 __STATIC_INLINE uint32_t LL_LPUART_GetParity(const USART_TypeDef *LPUARTx) in LL_LPUART_GetParity() argument
822 return (uint32_t)(READ_BIT(LPUARTx->CR1, USART_CR1_PS | USART_CR1_PCE)); in LL_LPUART_GetParity()
834 __STATIC_INLINE void LL_LPUART_SetWakeUpMethod(USART_TypeDef *LPUARTx, uint32_t Method) in LL_LPUART_SetWakeUpMethod() argument
836 MODIFY_REG(LPUARTx->CR1, USART_CR1_WAKE, Method); in LL_LPUART_SetWakeUpMethod()
847 __STATIC_INLINE uint32_t LL_LPUART_GetWakeUpMethod(const USART_TypeDef *LPUARTx) in LL_LPUART_GetWakeUpMethod() argument
849 return (uint32_t)(READ_BIT(LPUARTx->CR1, USART_CR1_WAKE)); in LL_LPUART_GetWakeUpMethod()
862 __STATIC_INLINE void LL_LPUART_SetDataWidth(USART_TypeDef *LPUARTx, uint32_t DataWidth) in LL_LPUART_SetDataWidth() argument
864 MODIFY_REG(LPUARTx->CR1, USART_CR1_M, DataWidth); in LL_LPUART_SetDataWidth()
876 __STATIC_INLINE uint32_t LL_LPUART_GetDataWidth(const USART_TypeDef *LPUARTx) in LL_LPUART_GetDataWidth() argument
878 return (uint32_t)(READ_BIT(LPUARTx->CR1, USART_CR1_M)); in LL_LPUART_GetDataWidth()
887 __STATIC_INLINE void LL_LPUART_EnableMuteMode(USART_TypeDef *LPUARTx) in LL_LPUART_EnableMuteMode() argument
889 ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_MME); in LL_LPUART_EnableMuteMode()
898 __STATIC_INLINE void LL_LPUART_DisableMuteMode(USART_TypeDef *LPUARTx) in LL_LPUART_DisableMuteMode() argument
900 ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_MME); in LL_LPUART_DisableMuteMode()
909 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledMuteMode(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledMuteMode() argument
911 return ((READ_BIT(LPUARTx->CR1, USART_CR1_MME) == (USART_CR1_MME)) ? 1UL : 0UL); in LL_LPUART_IsEnabledMuteMode()
933 __STATIC_INLINE void LL_LPUART_SetPrescaler(USART_TypeDef *LPUARTx, uint32_t PrescalerValue) in LL_LPUART_SetPrescaler() argument
935 MODIFY_REG(LPUARTx->PRESC, USART_PRESC_PRESCALER, (uint16_t)PrescalerValue); in LL_LPUART_SetPrescaler()
956 __STATIC_INLINE uint32_t LL_LPUART_GetPrescaler(const USART_TypeDef *LPUARTx) in LL_LPUART_GetPrescaler() argument
958 return (uint32_t)(READ_BIT(LPUARTx->PRESC, USART_PRESC_PRESCALER)); in LL_LPUART_GetPrescaler()
970 __STATIC_INLINE void LL_LPUART_SetStopBitsLength(USART_TypeDef *LPUARTx, uint32_t StopBits) in LL_LPUART_SetStopBitsLength() argument
972 MODIFY_REG(LPUARTx->CR2, USART_CR2_STOP, StopBits); in LL_LPUART_SetStopBitsLength()
983 __STATIC_INLINE uint32_t LL_LPUART_GetStopBitsLength(const USART_TypeDef *LPUARTx) in LL_LPUART_GetStopBitsLength() argument
985 return (uint32_t)(READ_BIT(LPUARTx->CR2, USART_CR2_STOP)); in LL_LPUART_GetStopBitsLength()
1012 __STATIC_INLINE void LL_LPUART_ConfigCharacter(USART_TypeDef *LPUARTx, uint32_t DataWidth, uint32_t… in LL_LPUART_ConfigCharacter() argument
1015 MODIFY_REG(LPUARTx->CR1, USART_CR1_PS | USART_CR1_PCE | USART_CR1_M, Parity | DataWidth); in LL_LPUART_ConfigCharacter()
1016 MODIFY_REG(LPUARTx->CR2, USART_CR2_STOP, StopBits); in LL_LPUART_ConfigCharacter()
1028 __STATIC_INLINE void LL_LPUART_SetTXRXSwap(USART_TypeDef *LPUARTx, uint32_t SwapConfig) in LL_LPUART_SetTXRXSwap() argument
1030 MODIFY_REG(LPUARTx->CR2, USART_CR2_SWAP, SwapConfig); in LL_LPUART_SetTXRXSwap()
1041 __STATIC_INLINE uint32_t LL_LPUART_GetTXRXSwap(const USART_TypeDef *LPUARTx) in LL_LPUART_GetTXRXSwap() argument
1043 return (uint32_t)(READ_BIT(LPUARTx->CR2, USART_CR2_SWAP)); in LL_LPUART_GetTXRXSwap()
1055 __STATIC_INLINE void LL_LPUART_SetRXPinLevel(USART_TypeDef *LPUARTx, uint32_t PinInvMethod) in LL_LPUART_SetRXPinLevel() argument
1057 MODIFY_REG(LPUARTx->CR2, USART_CR2_RXINV, PinInvMethod); in LL_LPUART_SetRXPinLevel()
1068 __STATIC_INLINE uint32_t LL_LPUART_GetRXPinLevel(const USART_TypeDef *LPUARTx) in LL_LPUART_GetRXPinLevel() argument
1070 return (uint32_t)(READ_BIT(LPUARTx->CR2, USART_CR2_RXINV)); in LL_LPUART_GetRXPinLevel()
1082 __STATIC_INLINE void LL_LPUART_SetTXPinLevel(USART_TypeDef *LPUARTx, uint32_t PinInvMethod) in LL_LPUART_SetTXPinLevel() argument
1084 MODIFY_REG(LPUARTx->CR2, USART_CR2_TXINV, PinInvMethod); in LL_LPUART_SetTXPinLevel()
1095 __STATIC_INLINE uint32_t LL_LPUART_GetTXPinLevel(const USART_TypeDef *LPUARTx) in LL_LPUART_GetTXPinLevel() argument
1097 return (uint32_t)(READ_BIT(LPUARTx->CR2, USART_CR2_TXINV)); in LL_LPUART_GetTXPinLevel()
1112 __STATIC_INLINE void LL_LPUART_SetBinaryDataLogic(USART_TypeDef *LPUARTx, uint32_t DataLogic) in LL_LPUART_SetBinaryDataLogic() argument
1114 MODIFY_REG(LPUARTx->CR2, USART_CR2_DATAINV, DataLogic); in LL_LPUART_SetBinaryDataLogic()
1125 __STATIC_INLINE uint32_t LL_LPUART_GetBinaryDataLogic(const USART_TypeDef *LPUARTx) in LL_LPUART_GetBinaryDataLogic() argument
1127 return (uint32_t)(READ_BIT(LPUARTx->CR2, USART_CR2_DATAINV)); in LL_LPUART_GetBinaryDataLogic()
1141 __STATIC_INLINE void LL_LPUART_SetTransferBitOrder(USART_TypeDef *LPUARTx, uint32_t BitOrder) in LL_LPUART_SetTransferBitOrder() argument
1143 MODIFY_REG(LPUARTx->CR2, USART_CR2_MSBFIRST, BitOrder); in LL_LPUART_SetTransferBitOrder()
1156 __STATIC_INLINE uint32_t LL_LPUART_GetTransferBitOrder(const USART_TypeDef *LPUARTx) in LL_LPUART_GetTransferBitOrder() argument
1158 return (uint32_t)(READ_BIT(LPUARTx->CR2, USART_CR2_MSBFIRST)); in LL_LPUART_GetTransferBitOrder()
1184 __STATIC_INLINE void LL_LPUART_ConfigNodeAddress(USART_TypeDef *LPUARTx, uint32_t AddressLen, uint3… in LL_LPUART_ConfigNodeAddress() argument
1186 MODIFY_REG(LPUARTx->CR2, USART_CR2_ADD | USART_CR2_ADDM7, in LL_LPUART_ConfigNodeAddress()
1200 __STATIC_INLINE uint32_t LL_LPUART_GetNodeAddress(const USART_TypeDef *LPUARTx) in LL_LPUART_GetNodeAddress() argument
1202 return (uint32_t)(READ_BIT(LPUARTx->CR2, USART_CR2_ADD) >> USART_CR2_ADD_Pos); in LL_LPUART_GetNodeAddress()
1213 __STATIC_INLINE uint32_t LL_LPUART_GetNodeAddressLen(const USART_TypeDef *LPUARTx) in LL_LPUART_GetNodeAddressLen() argument
1215 return (uint32_t)(READ_BIT(LPUARTx->CR2, USART_CR2_ADDM7)); in LL_LPUART_GetNodeAddressLen()
1224 __STATIC_INLINE void LL_LPUART_EnableRTSHWFlowCtrl(USART_TypeDef *LPUARTx) in LL_LPUART_EnableRTSHWFlowCtrl() argument
1226 SET_BIT(LPUARTx->CR3, USART_CR3_RTSE); in LL_LPUART_EnableRTSHWFlowCtrl()
1235 __STATIC_INLINE void LL_LPUART_DisableRTSHWFlowCtrl(USART_TypeDef *LPUARTx) in LL_LPUART_DisableRTSHWFlowCtrl() argument
1237 CLEAR_BIT(LPUARTx->CR3, USART_CR3_RTSE); in LL_LPUART_DisableRTSHWFlowCtrl()
1246 __STATIC_INLINE void LL_LPUART_EnableCTSHWFlowCtrl(USART_TypeDef *LPUARTx) in LL_LPUART_EnableCTSHWFlowCtrl() argument
1248 SET_BIT(LPUARTx->CR3, USART_CR3_CTSE); in LL_LPUART_EnableCTSHWFlowCtrl()
1257 __STATIC_INLINE void LL_LPUART_DisableCTSHWFlowCtrl(USART_TypeDef *LPUARTx) in LL_LPUART_DisableCTSHWFlowCtrl() argument
1259 CLEAR_BIT(LPUARTx->CR3, USART_CR3_CTSE); in LL_LPUART_DisableCTSHWFlowCtrl()
1274 __STATIC_INLINE void LL_LPUART_SetHWFlowCtrl(USART_TypeDef *LPUARTx, uint32_t HardwareFlowControl) in LL_LPUART_SetHWFlowCtrl() argument
1276 MODIFY_REG(LPUARTx->CR3, USART_CR3_RTSE | USART_CR3_CTSE, HardwareFlowControl); in LL_LPUART_SetHWFlowCtrl()
1290 __STATIC_INLINE uint32_t LL_LPUART_GetHWFlowCtrl(const USART_TypeDef *LPUARTx) in LL_LPUART_GetHWFlowCtrl() argument
1292 return (uint32_t)(READ_BIT(LPUARTx->CR3, USART_CR3_RTSE | USART_CR3_CTSE)); in LL_LPUART_GetHWFlowCtrl()
1301 __STATIC_INLINE void LL_LPUART_EnableOverrunDetect(USART_TypeDef *LPUARTx) in LL_LPUART_EnableOverrunDetect() argument
1303 CLEAR_BIT(LPUARTx->CR3, USART_CR3_OVRDIS); in LL_LPUART_EnableOverrunDetect()
1312 __STATIC_INLINE void LL_LPUART_DisableOverrunDetect(USART_TypeDef *LPUARTx) in LL_LPUART_DisableOverrunDetect() argument
1314 SET_BIT(LPUARTx->CR3, USART_CR3_OVRDIS); in LL_LPUART_DisableOverrunDetect()
1323 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledOverrunDetect(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledOverrunDetect() argument
1325 return ((READ_BIT(LPUARTx->CR3, USART_CR3_OVRDIS) != USART_CR3_OVRDIS) ? 1UL : 0UL); in LL_LPUART_IsEnabledOverrunDetect()
1357 __STATIC_INLINE void LL_LPUART_SetBaudRate(USART_TypeDef *LPUARTx, uint32_t PeriphClk, uint32_t Pre… in LL_LPUART_SetBaudRate() argument
1362 LPUARTx->BRR = __LL_LPUART_DIV(PeriphClk, PrescalerValue, BaudRate); in LL_LPUART_SetBaudRate()
1388 __STATIC_INLINE uint32_t LL_LPUART_GetBaudRate(const USART_TypeDef *LPUARTx, uint32_t PeriphClk, in LL_LPUART_GetBaudRate() argument
1395 lpuartdiv = LPUARTx->BRR & LPUART_BRR_MASK; in LL_LPUART_GetBaudRate()
1423 __STATIC_INLINE void LL_LPUART_EnableHalfDuplex(USART_TypeDef *LPUARTx) in LL_LPUART_EnableHalfDuplex() argument
1425 SET_BIT(LPUARTx->CR3, USART_CR3_HDSEL); in LL_LPUART_EnableHalfDuplex()
1434 __STATIC_INLINE void LL_LPUART_DisableHalfDuplex(USART_TypeDef *LPUARTx) in LL_LPUART_DisableHalfDuplex() argument
1436 CLEAR_BIT(LPUARTx->CR3, USART_CR3_HDSEL); in LL_LPUART_DisableHalfDuplex()
1445 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledHalfDuplex(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledHalfDuplex() argument
1447 return ((READ_BIT(LPUARTx->CR3, USART_CR3_HDSEL) == (USART_CR3_HDSEL)) ? 1UL : 0UL); in LL_LPUART_IsEnabledHalfDuplex()
1465 __STATIC_INLINE void LL_LPUART_SetDEDeassertionTime(USART_TypeDef *LPUARTx, uint32_t Time) in LL_LPUART_SetDEDeassertionTime() argument
1467 MODIFY_REG(LPUARTx->CR1, USART_CR1_DEDT, Time << USART_CR1_DEDT_Pos); in LL_LPUART_SetDEDeassertionTime()
1476 __STATIC_INLINE uint32_t LL_LPUART_GetDEDeassertionTime(const USART_TypeDef *LPUARTx) in LL_LPUART_GetDEDeassertionTime() argument
1478 return (uint32_t)(READ_BIT(LPUARTx->CR1, USART_CR1_DEDT) >> USART_CR1_DEDT_Pos); in LL_LPUART_GetDEDeassertionTime()
1488 __STATIC_INLINE void LL_LPUART_SetDEAssertionTime(USART_TypeDef *LPUARTx, uint32_t Time) in LL_LPUART_SetDEAssertionTime() argument
1490 MODIFY_REG(LPUARTx->CR1, USART_CR1_DEAT, Time << USART_CR1_DEAT_Pos); in LL_LPUART_SetDEAssertionTime()
1499 __STATIC_INLINE uint32_t LL_LPUART_GetDEAssertionTime(const USART_TypeDef *LPUARTx) in LL_LPUART_GetDEAssertionTime() argument
1501 return (uint32_t)(READ_BIT(LPUARTx->CR1, USART_CR1_DEAT) >> USART_CR1_DEAT_Pos); in LL_LPUART_GetDEAssertionTime()
1510 __STATIC_INLINE void LL_LPUART_EnableDEMode(USART_TypeDef *LPUARTx) in LL_LPUART_EnableDEMode() argument
1512 SET_BIT(LPUARTx->CR3, USART_CR3_DEM); in LL_LPUART_EnableDEMode()
1521 __STATIC_INLINE void LL_LPUART_DisableDEMode(USART_TypeDef *LPUARTx) in LL_LPUART_DisableDEMode() argument
1523 CLEAR_BIT(LPUARTx->CR3, USART_CR3_DEM); in LL_LPUART_DisableDEMode()
1532 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledDEMode(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledDEMode() argument
1534 return ((READ_BIT(LPUARTx->CR3, USART_CR3_DEM) == (USART_CR3_DEM)) ? 1UL : 0UL); in LL_LPUART_IsEnabledDEMode()
1546 __STATIC_INLINE void LL_LPUART_SetDESignalPolarity(USART_TypeDef *LPUARTx, uint32_t Polarity) in LL_LPUART_SetDESignalPolarity() argument
1548 MODIFY_REG(LPUARTx->CR3, USART_CR3_DEP, Polarity); in LL_LPUART_SetDESignalPolarity()
1559 __STATIC_INLINE uint32_t LL_LPUART_GetDESignalPolarity(const USART_TypeDef *LPUARTx) in LL_LPUART_GetDESignalPolarity() argument
1561 return (uint32_t)(READ_BIT(LPUARTx->CR3, USART_CR3_DEP)); in LL_LPUART_GetDESignalPolarity()
1578 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_PE(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_PE() argument
1580 return ((READ_BIT(LPUARTx->ISR, USART_ISR_PE) == (USART_ISR_PE)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_PE()
1589 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_FE(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_FE() argument
1591 return ((READ_BIT(LPUARTx->ISR, USART_ISR_FE) == (USART_ISR_FE)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_FE()
1600 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_NE(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_NE() argument
1602 return ((READ_BIT(LPUARTx->ISR, USART_ISR_NE) == (USART_ISR_NE)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_NE()
1611 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_ORE(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_ORE() argument
1613 return ((READ_BIT(LPUARTx->ISR, USART_ISR_ORE) == (USART_ISR_ORE)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_ORE()
1622 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_IDLE(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_IDLE() argument
1624 return ((READ_BIT(LPUARTx->ISR, USART_ISR_IDLE) == (USART_ISR_IDLE)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_IDLE()
1635 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_RXNE_RXFNE(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_RXNE_RXFNE() argument
1637 return ((READ_BIT(LPUARTx->ISR, USART_ISR_RXNE_RXFNE) == (USART_ISR_RXNE_RXFNE)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_RXNE_RXFNE()
1646 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_TC(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_TC() argument
1648 return ((READ_BIT(LPUARTx->ISR, USART_ISR_TC) == (USART_ISR_TC)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_TC()
1659 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_TXE_TXFNF(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_TXE_TXFNF() argument
1661 return ((READ_BIT(LPUARTx->ISR, USART_ISR_TXE_TXFNF) == (USART_ISR_TXE_TXFNF)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_TXE_TXFNF()
1670 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_nCTS(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_nCTS() argument
1672 return ((READ_BIT(LPUARTx->ISR, USART_ISR_CTSIF) == (USART_ISR_CTSIF)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_nCTS()
1681 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_CTS(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_CTS() argument
1683 return ((READ_BIT(LPUARTx->ISR, USART_ISR_CTS) == (USART_ISR_CTS)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_CTS()
1692 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_BUSY(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_BUSY() argument
1694 return ((READ_BIT(LPUARTx->ISR, USART_ISR_BUSY) == (USART_ISR_BUSY)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_BUSY()
1703 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_CM(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_CM() argument
1705 return ((READ_BIT(LPUARTx->ISR, USART_ISR_CMF) == (USART_ISR_CMF)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_CM()
1714 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_SBK(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_SBK() argument
1716 return ((READ_BIT(LPUARTx->ISR, USART_ISR_SBKF) == (USART_ISR_SBKF)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_SBK()
1725 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_RWU(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_RWU() argument
1727 return ((READ_BIT(LPUARTx->ISR, USART_ISR_RWU) == (USART_ISR_RWU)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_RWU()
1736 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_TEACK(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_TEACK() argument
1738 return ((READ_BIT(LPUARTx->ISR, USART_ISR_TEACK) == (USART_ISR_TEACK)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_TEACK()
1747 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_REACK(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_REACK() argument
1749 return ((READ_BIT(LPUARTx->ISR, USART_ISR_REACK) == (USART_ISR_REACK)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_REACK()
1758 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_TXFE(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_TXFE() argument
1760 return ((READ_BIT(LPUARTx->ISR, USART_ISR_TXFE) == (USART_ISR_TXFE)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_TXFE()
1769 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_RXFF(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_RXFF() argument
1771 return ((READ_BIT(LPUARTx->ISR, USART_ISR_RXFF) == (USART_ISR_RXFF)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_RXFF()
1780 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_TXFT(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_TXFT() argument
1782 return ((READ_BIT(LPUARTx->ISR, USART_ISR_TXFT) == (USART_ISR_TXFT)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_TXFT()
1791 __STATIC_INLINE uint32_t LL_LPUART_IsActiveFlag_RXFT(const USART_TypeDef *LPUARTx) in LL_LPUART_IsActiveFlag_RXFT() argument
1793 return ((READ_BIT(LPUARTx->ISR, USART_ISR_RXFT) == (USART_ISR_RXFT)) ? 1UL : 0UL); in LL_LPUART_IsActiveFlag_RXFT()
1802 __STATIC_INLINE void LL_LPUART_ClearFlag_PE(USART_TypeDef *LPUARTx) in LL_LPUART_ClearFlag_PE() argument
1804 WRITE_REG(LPUARTx->ICR, USART_ICR_PECF); in LL_LPUART_ClearFlag_PE()
1813 __STATIC_INLINE void LL_LPUART_ClearFlag_FE(USART_TypeDef *LPUARTx) in LL_LPUART_ClearFlag_FE() argument
1815 WRITE_REG(LPUARTx->ICR, USART_ICR_FECF); in LL_LPUART_ClearFlag_FE()
1824 __STATIC_INLINE void LL_LPUART_ClearFlag_NE(USART_TypeDef *LPUARTx) in LL_LPUART_ClearFlag_NE() argument
1826 WRITE_REG(LPUARTx->ICR, USART_ICR_NECF); in LL_LPUART_ClearFlag_NE()
1835 __STATIC_INLINE void LL_LPUART_ClearFlag_ORE(USART_TypeDef *LPUARTx) in LL_LPUART_ClearFlag_ORE() argument
1837 WRITE_REG(LPUARTx->ICR, USART_ICR_ORECF); in LL_LPUART_ClearFlag_ORE()
1846 __STATIC_INLINE void LL_LPUART_ClearFlag_IDLE(USART_TypeDef *LPUARTx) in LL_LPUART_ClearFlag_IDLE() argument
1848 WRITE_REG(LPUARTx->ICR, USART_ICR_IDLECF); in LL_LPUART_ClearFlag_IDLE()
1857 __STATIC_INLINE void LL_LPUART_ClearFlag_TC(USART_TypeDef *LPUARTx) in LL_LPUART_ClearFlag_TC() argument
1859 WRITE_REG(LPUARTx->ICR, USART_ICR_TCCF); in LL_LPUART_ClearFlag_TC()
1868 __STATIC_INLINE void LL_LPUART_ClearFlag_nCTS(USART_TypeDef *LPUARTx) in LL_LPUART_ClearFlag_nCTS() argument
1870 WRITE_REG(LPUARTx->ICR, USART_ICR_CTSCF); in LL_LPUART_ClearFlag_nCTS()
1879 __STATIC_INLINE void LL_LPUART_ClearFlag_CM(USART_TypeDef *LPUARTx) in LL_LPUART_ClearFlag_CM() argument
1881 WRITE_REG(LPUARTx->ICR, USART_ICR_CMCF); in LL_LPUART_ClearFlag_CM()
1898 __STATIC_INLINE void LL_LPUART_EnableIT_IDLE(USART_TypeDef *LPUARTx) in LL_LPUART_EnableIT_IDLE() argument
1900 ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_IDLEIE); in LL_LPUART_EnableIT_IDLE()
1911 __STATIC_INLINE void LL_LPUART_EnableIT_RXNE_RXFNE(USART_TypeDef *LPUARTx) in LL_LPUART_EnableIT_RXNE_RXFNE() argument
1913 ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_RXNEIE_RXFNEIE); in LL_LPUART_EnableIT_RXNE_RXFNE()
1922 __STATIC_INLINE void LL_LPUART_EnableIT_TC(USART_TypeDef *LPUARTx) in LL_LPUART_EnableIT_TC() argument
1924 ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_TCIE); in LL_LPUART_EnableIT_TC()
1935 __STATIC_INLINE void LL_LPUART_EnableIT_TXE_TXFNF(USART_TypeDef *LPUARTx) in LL_LPUART_EnableIT_TXE_TXFNF() argument
1937 ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_TXEIE_TXFNFIE); in LL_LPUART_EnableIT_TXE_TXFNF()
1946 __STATIC_INLINE void LL_LPUART_EnableIT_PE(USART_TypeDef *LPUARTx) in LL_LPUART_EnableIT_PE() argument
1948 ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_PEIE); in LL_LPUART_EnableIT_PE()
1957 __STATIC_INLINE void LL_LPUART_EnableIT_CM(USART_TypeDef *LPUARTx) in LL_LPUART_EnableIT_CM() argument
1959 ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_CMIE); in LL_LPUART_EnableIT_CM()
1968 __STATIC_INLINE void LL_LPUART_EnableIT_TXFE(USART_TypeDef *LPUARTx) in LL_LPUART_EnableIT_TXFE() argument
1970 ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_TXFEIE); in LL_LPUART_EnableIT_TXFE()
1979 __STATIC_INLINE void LL_LPUART_EnableIT_RXFF(USART_TypeDef *LPUARTx) in LL_LPUART_EnableIT_RXFF() argument
1981 ATOMIC_SET_BIT(LPUARTx->CR1, USART_CR1_RXFFIE); in LL_LPUART_EnableIT_RXFF()
1994 __STATIC_INLINE void LL_LPUART_EnableIT_ERROR(USART_TypeDef *LPUARTx) in LL_LPUART_EnableIT_ERROR() argument
1996 ATOMIC_SET_BIT(LPUARTx->CR3, USART_CR3_EIE); in LL_LPUART_EnableIT_ERROR()
2005 __STATIC_INLINE void LL_LPUART_EnableIT_CTS(USART_TypeDef *LPUARTx) in LL_LPUART_EnableIT_CTS() argument
2007 ATOMIC_SET_BIT(LPUARTx->CR3, USART_CR3_CTSIE); in LL_LPUART_EnableIT_CTS()
2016 __STATIC_INLINE void LL_LPUART_EnableIT_TXFT(USART_TypeDef *LPUARTx) in LL_LPUART_EnableIT_TXFT() argument
2018 ATOMIC_SET_BIT(LPUARTx->CR3, USART_CR3_TXFTIE); in LL_LPUART_EnableIT_TXFT()
2027 __STATIC_INLINE void LL_LPUART_EnableIT_RXFT(USART_TypeDef *LPUARTx) in LL_LPUART_EnableIT_RXFT() argument
2029 ATOMIC_SET_BIT(LPUARTx->CR3, USART_CR3_RXFTIE); in LL_LPUART_EnableIT_RXFT()
2038 __STATIC_INLINE void LL_LPUART_DisableIT_IDLE(USART_TypeDef *LPUARTx) in LL_LPUART_DisableIT_IDLE() argument
2040 ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_IDLEIE); in LL_LPUART_DisableIT_IDLE()
2051 __STATIC_INLINE void LL_LPUART_DisableIT_RXNE_RXFNE(USART_TypeDef *LPUARTx) in LL_LPUART_DisableIT_RXNE_RXFNE() argument
2053 ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_RXNEIE_RXFNEIE); in LL_LPUART_DisableIT_RXNE_RXFNE()
2062 __STATIC_INLINE void LL_LPUART_DisableIT_TC(USART_TypeDef *LPUARTx) in LL_LPUART_DisableIT_TC() argument
2064 ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_TCIE); in LL_LPUART_DisableIT_TC()
2075 __STATIC_INLINE void LL_LPUART_DisableIT_TXE_TXFNF(USART_TypeDef *LPUARTx) in LL_LPUART_DisableIT_TXE_TXFNF() argument
2077 ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_TXEIE_TXFNFIE); in LL_LPUART_DisableIT_TXE_TXFNF()
2086 __STATIC_INLINE void LL_LPUART_DisableIT_PE(USART_TypeDef *LPUARTx) in LL_LPUART_DisableIT_PE() argument
2088 ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_PEIE); in LL_LPUART_DisableIT_PE()
2097 __STATIC_INLINE void LL_LPUART_DisableIT_CM(USART_TypeDef *LPUARTx) in LL_LPUART_DisableIT_CM() argument
2099 ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_CMIE); in LL_LPUART_DisableIT_CM()
2108 __STATIC_INLINE void LL_LPUART_DisableIT_TXFE(USART_TypeDef *LPUARTx) in LL_LPUART_DisableIT_TXFE() argument
2110 ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_TXFEIE); in LL_LPUART_DisableIT_TXFE()
2119 __STATIC_INLINE void LL_LPUART_DisableIT_RXFF(USART_TypeDef *LPUARTx) in LL_LPUART_DisableIT_RXFF() argument
2121 ATOMIC_CLEAR_BIT(LPUARTx->CR1, USART_CR1_RXFFIE); in LL_LPUART_DisableIT_RXFF()
2134 __STATIC_INLINE void LL_LPUART_DisableIT_ERROR(USART_TypeDef *LPUARTx) in LL_LPUART_DisableIT_ERROR() argument
2136 ATOMIC_CLEAR_BIT(LPUARTx->CR3, USART_CR3_EIE); in LL_LPUART_DisableIT_ERROR()
2145 __STATIC_INLINE void LL_LPUART_DisableIT_CTS(USART_TypeDef *LPUARTx) in LL_LPUART_DisableIT_CTS() argument
2147 ATOMIC_CLEAR_BIT(LPUARTx->CR3, USART_CR3_CTSIE); in LL_LPUART_DisableIT_CTS()
2156 __STATIC_INLINE void LL_LPUART_DisableIT_TXFT(USART_TypeDef *LPUARTx) in LL_LPUART_DisableIT_TXFT() argument
2158 ATOMIC_CLEAR_BIT(LPUARTx->CR3, USART_CR3_TXFTIE); in LL_LPUART_DisableIT_TXFT()
2167 __STATIC_INLINE void LL_LPUART_DisableIT_RXFT(USART_TypeDef *LPUARTx) in LL_LPUART_DisableIT_RXFT() argument
2169 ATOMIC_CLEAR_BIT(LPUARTx->CR3, USART_CR3_RXFTIE); in LL_LPUART_DisableIT_RXFT()
2178 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_IDLE(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledIT_IDLE() argument
2180 return ((READ_BIT(LPUARTx->CR1, USART_CR1_IDLEIE) == (USART_CR1_IDLEIE)) ? 1UL : 0UL); in LL_LPUART_IsEnabledIT_IDLE()
2191 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_RXNE_RXFNE(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledIT_RXNE_RXFNE() argument
2193 …return ((READ_BIT(LPUARTx->CR1, USART_CR1_RXNEIE_RXFNEIE) == (USART_CR1_RXNEIE_RXFNEIE)) ? 1UL : 0… in LL_LPUART_IsEnabledIT_RXNE_RXFNE()
2202 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_TC(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledIT_TC() argument
2204 return ((READ_BIT(LPUARTx->CR1, USART_CR1_TCIE) == (USART_CR1_TCIE)) ? 1UL : 0UL); in LL_LPUART_IsEnabledIT_TC()
2215 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_TXE_TXFNF(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledIT_TXE_TXFNF() argument
2217 …return ((READ_BIT(LPUARTx->CR1, USART_CR1_TXEIE_TXFNFIE) == (USART_CR1_TXEIE_TXFNFIE)) ? 1UL : 0UL… in LL_LPUART_IsEnabledIT_TXE_TXFNF()
2226 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_PE(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledIT_PE() argument
2228 return ((READ_BIT(LPUARTx->CR1, USART_CR1_PEIE) == (USART_CR1_PEIE)) ? 1UL : 0UL); in LL_LPUART_IsEnabledIT_PE()
2237 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_CM(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledIT_CM() argument
2239 return ((READ_BIT(LPUARTx->CR1, USART_CR1_CMIE) == (USART_CR1_CMIE)) ? 1UL : 0UL); in LL_LPUART_IsEnabledIT_CM()
2248 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_TXFE(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledIT_TXFE() argument
2250 return ((READ_BIT(LPUARTx->CR1, USART_CR1_TXFEIE) == (USART_CR1_TXFEIE)) ? 1UL : 0UL); in LL_LPUART_IsEnabledIT_TXFE()
2259 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_RXFF(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledIT_RXFF() argument
2261 return ((READ_BIT(LPUARTx->CR1, USART_CR1_RXFFIE) == (USART_CR1_RXFFIE)) ? 1UL : 0UL); in LL_LPUART_IsEnabledIT_RXFF()
2270 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_ERROR(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledIT_ERROR() argument
2272 return ((READ_BIT(LPUARTx->CR3, USART_CR3_EIE) == (USART_CR3_EIE)) ? 1UL : 0UL); in LL_LPUART_IsEnabledIT_ERROR()
2281 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_CTS(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledIT_CTS() argument
2283 return ((READ_BIT(LPUARTx->CR3, USART_CR3_CTSIE) == (USART_CR3_CTSIE)) ? 1UL : 0UL); in LL_LPUART_IsEnabledIT_CTS()
2292 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_TXFT(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledIT_TXFT() argument
2294 return ((READ_BIT(LPUARTx->CR3, USART_CR3_TXFTIE) == (USART_CR3_TXFTIE)) ? 1UL : 0UL); in LL_LPUART_IsEnabledIT_TXFT()
2303 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledIT_RXFT(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledIT_RXFT() argument
2305 return ((READ_BIT(LPUARTx->CR3, USART_CR3_RXFTIE) == (USART_CR3_RXFTIE)) ? 1UL : 0UL); in LL_LPUART_IsEnabledIT_RXFT()
2322 __STATIC_INLINE void LL_LPUART_EnableDMAReq_RX(USART_TypeDef *LPUARTx) in LL_LPUART_EnableDMAReq_RX() argument
2324 ATOMIC_SET_BIT(LPUARTx->CR3, USART_CR3_DMAR); in LL_LPUART_EnableDMAReq_RX()
2333 __STATIC_INLINE void LL_LPUART_DisableDMAReq_RX(USART_TypeDef *LPUARTx) in LL_LPUART_DisableDMAReq_RX() argument
2335 ATOMIC_CLEAR_BIT(LPUARTx->CR3, USART_CR3_DMAR); in LL_LPUART_DisableDMAReq_RX()
2344 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledDMAReq_RX(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledDMAReq_RX() argument
2346 return ((READ_BIT(LPUARTx->CR3, USART_CR3_DMAR) == (USART_CR3_DMAR)) ? 1UL : 0UL); in LL_LPUART_IsEnabledDMAReq_RX()
2355 __STATIC_INLINE void LL_LPUART_EnableDMAReq_TX(USART_TypeDef *LPUARTx) in LL_LPUART_EnableDMAReq_TX() argument
2357 ATOMIC_SET_BIT(LPUARTx->CR3, USART_CR3_DMAT); in LL_LPUART_EnableDMAReq_TX()
2366 __STATIC_INLINE void LL_LPUART_DisableDMAReq_TX(USART_TypeDef *LPUARTx) in LL_LPUART_DisableDMAReq_TX() argument
2368 ATOMIC_CLEAR_BIT(LPUARTx->CR3, USART_CR3_DMAT); in LL_LPUART_DisableDMAReq_TX()
2377 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledDMAReq_TX(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledDMAReq_TX() argument
2379 return ((READ_BIT(LPUARTx->CR3, USART_CR3_DMAT) == (USART_CR3_DMAT)) ? 1UL : 0UL); in LL_LPUART_IsEnabledDMAReq_TX()
2388 __STATIC_INLINE void LL_LPUART_EnableDMADeactOnRxErr(USART_TypeDef *LPUARTx) in LL_LPUART_EnableDMADeactOnRxErr() argument
2390 SET_BIT(LPUARTx->CR3, USART_CR3_DDRE); in LL_LPUART_EnableDMADeactOnRxErr()
2399 __STATIC_INLINE void LL_LPUART_DisableDMADeactOnRxErr(USART_TypeDef *LPUARTx) in LL_LPUART_DisableDMADeactOnRxErr() argument
2401 CLEAR_BIT(LPUARTx->CR3, USART_CR3_DDRE); in LL_LPUART_DisableDMADeactOnRxErr()
2410 __STATIC_INLINE uint32_t LL_LPUART_IsEnabledDMADeactOnRxErr(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabledDMADeactOnRxErr() argument
2412 return ((READ_BIT(LPUARTx->CR3, USART_CR3_DDRE) == (USART_CR3_DDRE)) ? 1UL : 0UL); in LL_LPUART_IsEnabledDMADeactOnRxErr()
2425 __STATIC_INLINE uint32_t LL_LPUART_DMA_GetRegAddr(const USART_TypeDef *LPUARTx, uint32_t Direction) in LL_LPUART_DMA_GetRegAddr() argument
2432 data_reg_addr = (uint32_t) &(LPUARTx->TDR); in LL_LPUART_DMA_GetRegAddr()
2437 data_reg_addr = (uint32_t) &(LPUARTx->RDR); in LL_LPUART_DMA_GetRegAddr()
2457 __STATIC_INLINE uint8_t LL_LPUART_ReceiveData8(const USART_TypeDef *LPUARTx) in LL_LPUART_ReceiveData8() argument
2459 return (uint8_t)(READ_BIT(LPUARTx->RDR, USART_RDR_RDR) & 0xFFU); in LL_LPUART_ReceiveData8()
2468 __STATIC_INLINE uint16_t LL_LPUART_ReceiveData9(const USART_TypeDef *LPUARTx) in LL_LPUART_ReceiveData9() argument
2470 return (uint16_t)(READ_BIT(LPUARTx->RDR, USART_RDR_RDR)); in LL_LPUART_ReceiveData9()
2480 __STATIC_INLINE void LL_LPUART_TransmitData8(USART_TypeDef *LPUARTx, uint8_t Value) in LL_LPUART_TransmitData8() argument
2482 LPUARTx->TDR = Value; in LL_LPUART_TransmitData8()
2492 __STATIC_INLINE void LL_LPUART_TransmitData9(USART_TypeDef *LPUARTx, uint16_t Value) in LL_LPUART_TransmitData9() argument
2494 LPUARTx->TDR = Value & 0x1FFUL; in LL_LPUART_TransmitData9()
2511 __STATIC_INLINE void LL_LPUART_RequestBreakSending(USART_TypeDef *LPUARTx) in LL_LPUART_RequestBreakSending() argument
2513 SET_BIT(LPUARTx->RQR, (uint16_t)USART_RQR_SBKRQ); in LL_LPUART_RequestBreakSending()
2522 __STATIC_INLINE void LL_LPUART_RequestEnterMuteMode(USART_TypeDef *LPUARTx) in LL_LPUART_RequestEnterMuteMode() argument
2524 SET_BIT(LPUARTx->RQR, (uint16_t)USART_RQR_MMRQ); in LL_LPUART_RequestEnterMuteMode()
2535 __STATIC_INLINE void LL_LPUART_RequestRxDataFlush(USART_TypeDef *LPUARTx) in LL_LPUART_RequestRxDataFlush() argument
2537 SET_BIT(LPUARTx->RQR, (uint16_t)USART_RQR_RXFRQ); in LL_LPUART_RequestRxDataFlush()
2554 __STATIC_INLINE void LL_LPUART_Enable_SelectedTrigger(USART_TypeDef *LPUARTx) in LL_LPUART_Enable_SelectedTrigger() argument
2556 SET_BIT(LPUARTx->AUTOCR, USART_AUTOCR_TRIGEN); in LL_LPUART_Enable_SelectedTrigger()
2565 __STATIC_INLINE void LL_LPUART_Disable_SelectedTrigger(USART_TypeDef *LPUARTx) in LL_LPUART_Disable_SelectedTrigger() argument
2567 CLEAR_BIT(LPUARTx->AUTOCR, USART_AUTOCR_TRIGEN); in LL_LPUART_Disable_SelectedTrigger()
2576 __STATIC_INLINE uint32_t LL_LPUART_IsEnabled_SelectedTrigger(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabled_SelectedTrigger() argument
2578 return ((READ_BIT(LPUARTx->AUTOCR, USART_AUTOCR_TRIGEN) == (USART_AUTOCR_TRIGEN)) ? 1UL : 0UL); in LL_LPUART_IsEnabled_SelectedTrigger()
2587 __STATIC_INLINE void LL_LPUART_Enable_AutonomousSendIdleFrame(USART_TypeDef *LPUARTx) in LL_LPUART_Enable_AutonomousSendIdleFrame() argument
2589 CLEAR_BIT(LPUARTx->AUTOCR, USART_AUTOCR_IDLEDIS); in LL_LPUART_Enable_AutonomousSendIdleFrame()
2598 __STATIC_INLINE void LL_LPUART_Disable_AutonomousSendIdleFrame(USART_TypeDef *LPUARTx) in LL_LPUART_Disable_AutonomousSendIdleFrame() argument
2600 SET_BIT(LPUARTx->AUTOCR, USART_AUTOCR_IDLEDIS); in LL_LPUART_Disable_AutonomousSendIdleFrame()
2609 __STATIC_INLINE uint32_t LL_LPUART_IsEnabled_AutonomousSendIdleFrame(const USART_TypeDef *LPUARTx) in LL_LPUART_IsEnabled_AutonomousSendIdleFrame() argument
2611 return ((READ_BIT(LPUARTx->AUTOCR, USART_AUTOCR_IDLEDIS) == (USART_AUTOCR_IDLEDIS)) ? 0UL : 1UL); in LL_LPUART_IsEnabled_AutonomousSendIdleFrame()
2621 __STATIC_INLINE void LL_LPUART_SetNbTxData(USART_TypeDef *LPUARTx, uint32_t Nbdata) in LL_LPUART_SetNbTxData() argument
2623 MODIFY_REG(LPUARTx->AUTOCR, USART_AUTOCR_TDN, (uint16_t)Nbdata); in LL_LPUART_SetNbTxData()
2632 __STATIC_INLINE uint32_t LL_LPUART_GetNbTxData(const USART_TypeDef *LPUARTx) in LL_LPUART_GetNbTxData() argument
2634 return (uint32_t)(READ_BIT(LPUARTx->AUTOCR, USART_AUTOCR_TDN)); in LL_LPUART_GetNbTxData()
2646 __STATIC_INLINE void LL_LPUART_SetTriggerPolarity(USART_TypeDef *LPUARTx, uint32_t Polarity) in LL_LPUART_SetTriggerPolarity() argument
2648 MODIFY_REG(LPUARTx->AUTOCR, USART_AUTOCR_TRIGPOL, Polarity); in LL_LPUART_SetTriggerPolarity()
2659 __STATIC_INLINE uint32_t LL_LPUART_GetTriggerPolarity(const USART_TypeDef *LPUARTx) in LL_LPUART_GetTriggerPolarity() argument
2661 return (uint32_t)(READ_BIT(LPUARTx->AUTOCR, USART_AUTOCR_TRIGPOL)); in LL_LPUART_GetTriggerPolarity()
2683 __STATIC_INLINE void LL_LPUART_SetSelectedTrigger(USART_TypeDef *LPUARTx, uint32_t Trigger) in LL_LPUART_SetSelectedTrigger() argument
2685 MODIFY_REG(LPUARTx->AUTOCR, USART_AUTOCR_TRIGSEL, (Trigger << USART_AUTOCR_TRIGSEL_Pos)); in LL_LPUART_SetSelectedTrigger()
2706 __STATIC_INLINE uint32_t LL_LPUART_GetSelectedTrigger(const USART_TypeDef *LPUARTx) in LL_LPUART_GetSelectedTrigger() argument
2708 return (uint32_t)((READ_BIT(LPUARTx->AUTOCR, USART_AUTOCR_TRIGSEL) >> USART_AUTOCR_TRIGSEL_Pos)); in LL_LPUART_GetSelectedTrigger()
2719 ErrorStatus LL_LPUART_DeInit(const USART_TypeDef *LPUARTx);
2720 ErrorStatus LL_LPUART_Init(USART_TypeDef *LPUARTx, const LL_LPUART_InitTypeDef *LPUART_InitStruct);