Ll_Usart_Clockstructinit; Usart Firmware Driver Defines - ST STM32F2 User Manual

Description of stm32f2 hal and low layer drivers
Hide thumbs Also See for STM32F2:
Table of Contents

Advertisement

LL USART Generic Driver
Return values
Notes

LL_USART_ClockStructInit

Function name
Function description
Parameters
Return values
68.3

USART Firmware driver defines

68.3.1
USART
Clock Signal
LL_USART_CLOCK_DISABLE
LL_USART_CLOCK_ENABLE
Datawidth
LL_USART_DATAWIDTH_8B
LL_USART_DATAWIDTH_9B
Communication Direction
LL_USART_DIRECTION_NONE
LL_USART_DIRECTION_RX
LL_USART_DIRECTION_TX
LL_USART_DIRECTION_TX_RX
Get Flags Defines
LL_USART_SR_PE
LL_USART_SR_FE
LL_USART_SR_NE
LL_USART_SR_ORE
LL_USART_SR_IDLE
1288/1371
An: ErrorStatus enumeration value:
SUCCESS: USART registers related to Clock settings
are initialized according to USART_ClockInitStruct
content
ERROR: Problem occurred during USART Registers
initialization
As some bits in USART configuration registers can only be
written when the USART is disabled (USART_CR1_UE bit
=0), USART IP should be in disabled state prior calling this
function. Otherwise, ERROR result will be returned.
void LL_USART_ClockStructInit
(LL_USART_ClockInitTypeDef * USART_ClockInitStruct)
Set each field of a LL_USART_ClockInitTypeDef type structure to
default value.
USART_ClockInitStruct: pointer to a
LL_USART_ClockInitTypeDef structure whose fields will be
set to default values.
None:
Clock signal not provided
Clock signal provided
8 bits word length : Start bit, 8 data bits, n stop bits
9 bits word length : Start bit, 9 data bits, n stop bits
Transmitter and Receiver are disabled
Transmitter is disabled and Receiver is enabled
Transmitter is enabled and Receiver is disabled
Transmitter and Receiver are enabled
Parity error flag
Framing error flag
Noise detected flag
Overrun error flag
Idle line detected flag
DocID028236 Rev 2
UM1940

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F2 and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF