EasyManuals Logo

ST STM32F2 User Manual

ST STM32F2
1371 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1288 background imageLoading...
Page #1288 background image
LL USART Generic Driver
UM1940
1288/1371
DocID028236 Rev 2
Return values
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
Notes
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.
LL_USART_ClockStructInit
Function name
void LL_USART_ClockStructInit
(LL_USART_ClockInitTypeDef * USART_ClockInitStruct)
Function description
Set each field of a LL_USART_ClockInitTypeDef type structure to
default value.
Parameters
USART_ClockInitStruct: pointer to a
LL_USART_ClockInitTypeDef structure whose fields will be
set to default values.
Return values
None:
68.3 USART Firmware driver defines
68.3.1 USART
Clock Signal
LL_USART_CLOCK_DISABLE
Clock signal not provided
LL_USART_CLOCK_ENABLE
Clock signal provided
Datawidth
LL_USART_DATAWIDTH_8B
8 bits word length : Start bit, 8 data bits, n stop bits
LL_USART_DATAWIDTH_9B
9 bits word length : Start bit, 9 data bits, n stop bits
Communication Direction
LL_USART_DIRECTION_NONE
Transmitter and Receiver are disabled
LL_USART_DIRECTION_RX
Transmitter is disabled and Receiver is enabled
LL_USART_DIRECTION_TX
Transmitter is enabled and Receiver is disabled
LL_USART_DIRECTION_TX_RX
Transmitter and Receiver are enabled
Get Flags Defines
LL_USART_SR_PE
Parity error flag
LL_USART_SR_FE
Framing error flag
LL_USART_SR_NE
Noise detected flag
LL_USART_SR_ORE
Overrun error flag
LL_USART_SR_IDLE
Idle line detected flag

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32F2 Specifications

General IconGeneral
BrandST
ModelSTM32F2
CategoryMicrocontrollers
LanguageEnglish

Related product manuals