STM32F479xx HAL User Manual
|
Functions | |
__STATIC_INLINE void | LL_USART_Enable (USART_TypeDef *USARTx) |
USART Enable. | |
__STATIC_INLINE void | LL_USART_Disable (USART_TypeDef *USARTx) |
USART Disable (all USART prescalers and outputs are disabled) | |
__STATIC_INLINE uint32_t | LL_USART_IsEnabled (USART_TypeDef *USARTx) |
Indicate if USART is enabled. | |
__STATIC_INLINE void | LL_USART_EnableDirectionRx (USART_TypeDef *USARTx) |
Receiver Enable (Receiver is enabled and begins searching for a start bit) | |
__STATIC_INLINE void | LL_USART_DisableDirectionRx (USART_TypeDef *USARTx) |
Receiver Disable. | |
__STATIC_INLINE void | LL_USART_EnableDirectionTx (USART_TypeDef *USARTx) |
Transmitter Enable. | |
__STATIC_INLINE void | LL_USART_DisableDirectionTx (USART_TypeDef *USARTx) |
Transmitter Disable. | |
__STATIC_INLINE void | LL_USART_SetTransferDirection (USART_TypeDef *USARTx, uint32_t TransferDirection) |
Configure simultaneously enabled/disabled states of Transmitter and Receiver. | |
__STATIC_INLINE uint32_t | LL_USART_GetTransferDirection (USART_TypeDef *USARTx) |
Return enabled/disabled states of Transmitter and Receiver. | |
__STATIC_INLINE void | LL_USART_SetParity (USART_TypeDef *USARTx, uint32_t Parity) |
Configure Parity (enabled/disabled and parity mode if enabled). | |
__STATIC_INLINE uint32_t | LL_USART_GetParity (USART_TypeDef *USARTx) |
Return Parity configuration (enabled/disabled and parity mode if enabled) | |
__STATIC_INLINE void | LL_USART_SetWakeUpMethod (USART_TypeDef *USARTx, uint32_t Method) |
Set Receiver Wake Up method from Mute mode. | |
__STATIC_INLINE uint32_t | LL_USART_GetWakeUpMethod (USART_TypeDef *USARTx) |
Return Receiver Wake Up method from Mute mode. | |
__STATIC_INLINE void | LL_USART_SetDataWidth (USART_TypeDef *USARTx, uint32_t DataWidth) |
Set Word length (i.e. | |
__STATIC_INLINE uint32_t | LL_USART_GetDataWidth (USART_TypeDef *USARTx) |
Return Word length (i.e. | |
__STATIC_INLINE void | LL_USART_SetOverSampling (USART_TypeDef *USARTx, uint32_t OverSampling) |
Set Oversampling to 8-bit or 16-bit mode. | |
__STATIC_INLINE uint32_t | LL_USART_GetOverSampling (USART_TypeDef *USARTx) |
Return Oversampling mode. | |
__STATIC_INLINE void | LL_USART_SetLastClkPulseOutput (USART_TypeDef *USARTx, uint32_t LastBitClockPulse) |
Configure if Clock pulse of the last data bit is output to the SCLK pin or not. | |
__STATIC_INLINE uint32_t | LL_USART_GetLastClkPulseOutput (USART_TypeDef *USARTx) |
Retrieve Clock pulse of the last data bit output configuration (Last bit Clock pulse output to the SCLK pin or not) | |
__STATIC_INLINE void | LL_USART_SetClockPhase (USART_TypeDef *USARTx, uint32_t ClockPhase) |
Select the phase of the clock output on the SCLK pin in synchronous mode. | |
__STATIC_INLINE uint32_t | LL_USART_GetClockPhase (USART_TypeDef *USARTx) |
Return phase of the clock output on the SCLK pin in synchronous mode. | |
__STATIC_INLINE void | LL_USART_SetClockPolarity (USART_TypeDef *USARTx, uint32_t ClockPolarity) |
Select the polarity of the clock output on the SCLK pin in synchronous mode. | |
__STATIC_INLINE uint32_t | LL_USART_GetClockPolarity (USART_TypeDef *USARTx) |
Return polarity of the clock output on the SCLK pin in synchronous mode. | |
__STATIC_INLINE void | LL_USART_ConfigClock (USART_TypeDef *USARTx, uint32_t Phase, uint32_t Polarity, uint32_t LBCPOutput) |
Configure Clock signal format (Phase Polarity and choice about output of last bit clock pulse) | |
__STATIC_INLINE void | LL_USART_EnableSCLKOutput (USART_TypeDef *USARTx) |
Enable Clock output on SCLK pin. | |
__STATIC_INLINE void | LL_USART_DisableSCLKOutput (USART_TypeDef *USARTx) |
Disable Clock output on SCLK pin. | |
__STATIC_INLINE uint32_t | LL_USART_IsEnabledSCLKOutput (USART_TypeDef *USARTx) |
Indicate if Clock output on SCLK pin is enabled. | |
__STATIC_INLINE void | LL_USART_SetStopBitsLength (USART_TypeDef *USARTx, uint32_t StopBits) |
Set the length of the stop bits. | |
__STATIC_INLINE uint32_t | LL_USART_GetStopBitsLength (USART_TypeDef *USARTx) |
Retrieve the length of the stop bits. | |
__STATIC_INLINE void | LL_USART_ConfigCharacter (USART_TypeDef *USARTx, uint32_t DataWidth, uint32_t Parity, uint32_t StopBits) |
Configure Character frame format (Datawidth, Parity control, Stop Bits) | |
__STATIC_INLINE void | LL_USART_SetNodeAddress (USART_TypeDef *USARTx, uint32_t NodeAddress) |
Set Address of the USART node. | |
__STATIC_INLINE uint32_t | LL_USART_GetNodeAddress (USART_TypeDef *USARTx) |
Return 4 bit Address of the USART node as set in ADD field of CR2. | |
__STATIC_INLINE void | LL_USART_EnableRTSHWFlowCtrl (USART_TypeDef *USARTx) |
Enable RTS HW Flow Control. | |
__STATIC_INLINE void | LL_USART_DisableRTSHWFlowCtrl (USART_TypeDef *USARTx) |
Disable RTS HW Flow Control. | |
__STATIC_INLINE void | LL_USART_EnableCTSHWFlowCtrl (USART_TypeDef *USARTx) |
Enable CTS HW Flow Control. | |
__STATIC_INLINE void | LL_USART_DisableCTSHWFlowCtrl (USART_TypeDef *USARTx) |
Disable CTS HW Flow Control. | |
__STATIC_INLINE void | LL_USART_SetHWFlowCtrl (USART_TypeDef *USARTx, uint32_t HardwareFlowControl) |
Configure HW Flow Control mode (both CTS and RTS) | |
__STATIC_INLINE uint32_t | LL_USART_GetHWFlowCtrl (USART_TypeDef *USARTx) |
Return HW Flow Control configuration (both CTS and RTS) | |
__STATIC_INLINE void | LL_USART_EnableOneBitSamp (USART_TypeDef *USARTx) |
Enable One bit sampling method. | |
__STATIC_INLINE void | LL_USART_DisableOneBitSamp (USART_TypeDef *USARTx) |
Disable One bit sampling method. | |
__STATIC_INLINE uint32_t | LL_USART_IsEnabledOneBitSamp (USART_TypeDef *USARTx) |
Indicate if One bit sampling method is enabled. | |
__STATIC_INLINE void | LL_USART_SetBaudRate (USART_TypeDef *USARTx, uint32_t PeriphClk, uint32_t OverSampling, uint32_t BaudRate) |
Configure USART BRR register for achieving expected Baud Rate value. | |
__STATIC_INLINE uint32_t | LL_USART_GetBaudRate (USART_TypeDef *USARTx, uint32_t PeriphClk, uint32_t OverSampling) |
Return current Baud Rate value, according to USARTDIV present in BRR register (full BRR content), and to used Peripheral Clock and Oversampling mode values. |
__STATIC_INLINE void LL_USART_ConfigCharacter | ( | USART_TypeDef * | USARTx, |
uint32_t | DataWidth, | ||
uint32_t | Parity, | ||
uint32_t | StopBits | ||
) |
Configure Character frame format (Datawidth, Parity control, Stop Bits)
USARTx | USART Instance |
DataWidth | This parameter can be one of the following values: |
Parity | This parameter can be one of the following values: |
StopBits | This parameter can be one of the following values: |
None |
Definition at line 851 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_ConfigClock | ( | USART_TypeDef * | USARTx, |
uint32_t | Phase, | ||
uint32_t | Polarity, | ||
uint32_t | LBCPOutput | ||
) |
Configure Clock signal format (Phase Polarity and choice about output of last bit clock pulse)
USARTx | USART Instance |
Phase | This parameter can be one of the following values: |
Polarity | This parameter can be one of the following values: |
LBCPOutput | This parameter can be one of the following values: |
None |
Definition at line 751 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_Disable | ( | USART_TypeDef * | USARTx | ) |
USART Disable (all USART prescalers and outputs are disabled)
USARTx | USART Instance |
None |
Definition at line 425 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_DisableCTSHWFlowCtrl | ( | USART_TypeDef * | USARTx | ) |
Disable CTS HW Flow Control.
USARTx | USART Instance |
None |
Definition at line 931 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_DisableDirectionRx | ( | USART_TypeDef * | USARTx | ) |
Receiver Disable.
USARTx | USART Instance |
None |
Definition at line 458 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_DisableDirectionTx | ( | USART_TypeDef * | USARTx | ) |
Transmitter Disable.
USARTx | USART Instance |
None |
Definition at line 480 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_DisableOneBitSamp | ( | USART_TypeDef * | USARTx | ) |
Disable One bit sampling method.
USARTx | USART Instance |
None |
Definition at line 990 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_DisableRTSHWFlowCtrl | ( | USART_TypeDef * | USARTx | ) |
Disable RTS HW Flow Control.
USARTx | USART Instance |
None |
Definition at line 905 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_DisableSCLKOutput | ( | USART_TypeDef * | USARTx | ) |
Disable Clock output on SCLK pin.
USARTx | USART Instance |
None |
Definition at line 777 of file stm32f4xx_ll_usart.h.
Referenced by LL_USART_ClockInit().
__STATIC_INLINE void LL_USART_Enable | ( | USART_TypeDef * | USARTx | ) |
USART Enable.
USARTx | USART Instance |
None |
Definition at line 411 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_EnableCTSHWFlowCtrl | ( | USART_TypeDef * | USARTx | ) |
Enable CTS HW Flow Control.
USARTx | USART Instance |
None |
Definition at line 918 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_EnableDirectionRx | ( | USART_TypeDef * | USARTx | ) |
Receiver Enable (Receiver is enabled and begins searching for a start bit)
USARTx | USART Instance |
None |
Definition at line 447 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_EnableDirectionTx | ( | USART_TypeDef * | USARTx | ) |
Transmitter Enable.
USARTx | USART Instance |
None |
Definition at line 469 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_EnableOneBitSamp | ( | USART_TypeDef * | USARTx | ) |
Enable One bit sampling method.
USARTx | USART Instance |
None |
Definition at line 979 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_EnableRTSHWFlowCtrl | ( | USART_TypeDef * | USARTx | ) |
Enable RTS HW Flow Control.
USARTx | USART Instance |
None |
Definition at line 892 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_EnableSCLKOutput | ( | USART_TypeDef * | USARTx | ) |
Enable Clock output on SCLK pin.
USARTx | USART Instance |
None |
Definition at line 764 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE uint32_t LL_USART_GetBaudRate | ( | USART_TypeDef * | USARTx, |
uint32_t | PeriphClk, | ||
uint32_t | OverSampling | ||
) |
Return current Baud Rate value, according to USARTDIV present in BRR register (full BRR content), and to used Peripheral Clock and Oversampling mode values.
USARTx | USART Instance |
PeriphClk | Peripheral Clock |
OverSampling | This parameter can be one of the following values: |
Baud | Rate |
Definition at line 1046 of file stm32f4xx_ll_usart.h.
References LL_USART_OVERSAMPLING_8.
__STATIC_INLINE uint32_t LL_USART_GetClockPhase | ( | USART_TypeDef * | USARTx | ) |
Return phase of the clock output on the SCLK pin in synchronous mode.
USARTx | USART Instance |
Returned | value can be one of the following values: |
Definition at line 692 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE uint32_t LL_USART_GetClockPolarity | ( | USART_TypeDef * | USARTx | ) |
Return polarity of the clock output on the SCLK pin in synchronous mode.
USARTx | USART Instance |
Returned | value can be one of the following values: |
Definition at line 723 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE uint32_t LL_USART_GetDataWidth | ( | USART_TypeDef * | USARTx | ) |
Return Word length (i.e.
nb of data bits, excluding start and stop bits)
USARTx | USART Instance |
Returned | value can be one of the following values: |
Definition at line 602 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE uint32_t LL_USART_GetHWFlowCtrl | ( | USART_TypeDef * | USARTx | ) |
Return HW Flow Control configuration (both CTS and RTS)
USARTx | USART Instance |
Returned | value can be one of the following values: |
Definition at line 968 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE uint32_t LL_USART_GetLastClkPulseOutput | ( | USART_TypeDef * | USARTx | ) |
Retrieve Clock pulse of the last data bit output configuration (Last bit Clock pulse output to the SCLK pin or not)
USARTx | USART Instance |
Returned | value can be one of the following values: |
Definition at line 661 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE uint32_t LL_USART_GetNodeAddress | ( | USART_TypeDef * | USARTx | ) |
Return 4 bit Address of the USART node as set in ADD field of CR2.
USARTx | USART Instance |
Address | of the USART node (Value between Min_Data=0 and Max_Data=255) |
Definition at line 879 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE uint32_t LL_USART_GetOverSampling | ( | USART_TypeDef * | USARTx | ) |
Return Oversampling mode.
USARTx | USART Instance |
Returned | value can be one of the following values: |
Definition at line 629 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE uint32_t LL_USART_GetParity | ( | USART_TypeDef * | USARTx | ) |
Return Parity configuration (enabled/disabled and parity mode if enabled)
USARTx | USART Instance |
Returned | value can be one of the following values: |
Definition at line 548 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE uint32_t LL_USART_GetStopBitsLength | ( | USART_TypeDef * | USARTx | ) |
Retrieve the length of the stop bits.
USARTx | USART Instance |
Returned | value can be one of the following values: |
Definition at line 821 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE uint32_t LL_USART_GetTransferDirection | ( | USART_TypeDef * | USARTx | ) |
Return enabled/disabled states of Transmitter and Receiver.
USARTx | USART Instance |
Returned | value can be one of the following values: |
Definition at line 514 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE uint32_t LL_USART_GetWakeUpMethod | ( | USART_TypeDef * | USARTx | ) |
Return Receiver Wake Up method from Mute mode.
USARTx | USART Instance |
Returned | value can be one of the following values: |
Definition at line 575 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE uint32_t LL_USART_IsEnabled | ( | USART_TypeDef * | USARTx | ) |
Indicate if USART is enabled.
USARTx | USART Instance |
State | of bit (1 or 0). |
Definition at line 436 of file stm32f4xx_ll_usart.h.
Referenced by LL_USART_ClockInit(), and LL_USART_Init().
__STATIC_INLINE uint32_t LL_USART_IsEnabledOneBitSamp | ( | USART_TypeDef * | USARTx | ) |
Indicate if One bit sampling method is enabled.
USARTx | USART Instance |
State | of bit (1 or 0). |
Definition at line 1001 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE uint32_t LL_USART_IsEnabledSCLKOutput | ( | USART_TypeDef * | USARTx | ) |
Indicate if Clock output on SCLK pin is enabled.
USARTx | USART Instance |
State | of bit (1 or 0). |
Definition at line 790 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_SetBaudRate | ( | USART_TypeDef * | USARTx, |
uint32_t | PeriphClk, | ||
uint32_t | OverSampling, | ||
uint32_t | BaudRate | ||
) |
Configure USART BRR register for achieving expected Baud Rate value.
USARTx | USART Instance |
PeriphClk | Peripheral Clock |
OverSampling | This parameter can be one of the following values: |
BaudRate | Baud Rate |
None |
Definition at line 1021 of file stm32f4xx_ll_usart.h.
References __LL_USART_DIV_SAMPLING16, __LL_USART_DIV_SAMPLING8, and LL_USART_OVERSAMPLING_8.
Referenced by LL_USART_Init().
__STATIC_INLINE void LL_USART_SetClockPhase | ( | USART_TypeDef * | USARTx, |
uint32_t | ClockPhase | ||
) |
Select the phase of the clock output on the SCLK pin in synchronous mode.
USARTx | USART Instance |
ClockPhase | This parameter can be one of the following values: |
None |
Definition at line 677 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_SetClockPolarity | ( | USART_TypeDef * | USARTx, |
uint32_t | ClockPolarity | ||
) |
Select the polarity of the clock output on the SCLK pin in synchronous mode.
USARTx | USART Instance |
ClockPolarity | This parameter can be one of the following values: |
None |
Definition at line 708 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_SetDataWidth | ( | USART_TypeDef * | USARTx, |
uint32_t | DataWidth | ||
) |
Set Word length (i.e.
nb of data bits, excluding start and stop bits)
USARTx | USART Instance |
DataWidth | This parameter can be one of the following values: |
None |
Definition at line 589 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_SetHWFlowCtrl | ( | USART_TypeDef * | USARTx, |
uint32_t | HardwareFlowControl | ||
) |
Configure HW Flow Control mode (both CTS and RTS)
USARTx | USART Instance |
HardwareFlowControl | This parameter can be one of the following values: |
None |
Definition at line 950 of file stm32f4xx_ll_usart.h.
Referenced by LL_USART_Init().
__STATIC_INLINE void LL_USART_SetLastClkPulseOutput | ( | USART_TypeDef * | USARTx, |
uint32_t | LastBitClockPulse | ||
) |
Configure if Clock pulse of the last data bit is output to the SCLK pin or not.
USARTx | USART Instance |
LastBitClockPulse | This parameter can be one of the following values: |
None |
Definition at line 645 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_SetNodeAddress | ( | USART_TypeDef * | USARTx, |
uint32_t | NodeAddress | ||
) |
Set Address of the USART node.
USARTx | USART Instance |
NodeAddress | 4 bit Address of the USART node. |
None |
Definition at line 867 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_SetOverSampling | ( | USART_TypeDef * | USARTx, |
uint32_t | OverSampling | ||
) |
Set Oversampling to 8-bit or 16-bit mode.
USARTx | USART Instance |
OverSampling | This parameter can be one of the following values: |
None |
Definition at line 616 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_SetParity | ( | USART_TypeDef * | USARTx, |
uint32_t | Parity | ||
) |
Configure Parity (enabled/disabled and parity mode if enabled).
USARTx | USART Instance |
Parity | This parameter can be one of the following values: |
None |
Definition at line 533 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_SetStopBitsLength | ( | USART_TypeDef * | USARTx, |
uint32_t | StopBits | ||
) |
Set the length of the stop bits.
USARTx | USART Instance |
StopBits | This parameter can be one of the following values: |
None |
Definition at line 806 of file stm32f4xx_ll_usart.h.
Referenced by LL_USART_Init().
__STATIC_INLINE void LL_USART_SetTransferDirection | ( | USART_TypeDef * | USARTx, |
uint32_t | TransferDirection | ||
) |
Configure simultaneously enabled/disabled states of Transmitter and Receiver.
USARTx | USART Instance |
TransferDirection | This parameter can be one of the following values: |
None |
Definition at line 498 of file stm32f4xx_ll_usart.h.
__STATIC_INLINE void LL_USART_SetWakeUpMethod | ( | USART_TypeDef * | USARTx, |
uint32_t | Method | ||
) |
Set Receiver Wake Up method from Mute mode.
USARTx | USART Instance |
Method | This parameter can be one of the following values: |
None |
Definition at line 562 of file stm32f4xx_ll_usart.h.