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 #1287 background imageLoading...
Page #1287 background image
UM1940
LL USART Generic Driver
DocID028236 Rev 2
1287/1371
values).
Parameters
USARTx: USART Instance
Return values
An: ErrorStatus enumeration value:
SUCCESS: USART registers are de-initialized
ERROR: USART registers are not de-initialized
LL_USART_Init
Function name
ErrorStatus LL_USART_Init (USART_TypeDef * USARTx,
LL_USART_InitTypeDef * USART_InitStruct)
Function description
Initialize USART registers according to the specified parameters in
USART_InitStruct.
Parameters
USARTx: USART Instance
USART_InitStruct: pointer to a LL_USART_InitTypeDef
structure that contains the configuration information for the
specified USART peripheral.
Return values
An: ErrorStatus enumeration value:
SUCCESS: USART registers are initialized according to
USART_InitStruct 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.
Baud rate value stored in USART_InitStruct BaudRate field,
should be valid (different from 0).
LL_USART_StructInit
Function name
void LL_USART_StructInit (LL_USART_InitTypeDef *
USART_InitStruct)
Function description
Set each LL_USART_InitTypeDef field to default value.
Parameters
USART_InitStruct: pointer to a LL_USART_InitTypeDef
structure whose fields will be set to default values.
Return values
None:
LL_USART_ClockInit
Function name
ErrorStatus LL_USART_ClockInit (USART_TypeDef * USARTx,
LL_USART_ClockInitTypeDef * USART_ClockInitStruct)
Function description
Initialize USART Clock related settings according to the specified
parameters in the USART_ClockInitStruct.
Parameters
USARTx: USART Instance
USART_ClockInitStruct: pointer to a
LL_USART_ClockInitTypeDef structure that contains the
Clock configuration information for the specified USART
peripheral.

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