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 #976 background imageLoading...
Page #976 background image
LL I2C Generic Driver
UM1940
976/1371
DocID028236 Rev 2
I2C_InitStruct.
Parameters
I2Cx: I2C Instance.
I2C_InitStruct: pointer to a LL_I2C_InitTypeDef structure.
Return values
An: ErrorStatus enumeration value:
SUCCESS: I2C registers are initialized
ERROR: Not applicable
LL_I2C_DeInit
Function name
uint32_t LL_I2C_DeInit (I2C_TypeDef * I2Cx)
Function description
De-initialize the I2C registers to their default reset values.
Parameters
I2Cx: I2C Instance.
Return values
An: ErrorStatus enumeration value:
SUCCESS: I2C registers are de-initialized
ERROR: I2C registers are not de-initialized
LL_I2C_StructInit
Function name
void LL_I2C_StructInit (LL_I2C_InitTypeDef * I2C_InitStruct)
Function description
Set each LL_I2C_InitTypeDef field to default value.
Parameters
I2C_InitStruct: Pointer to a LL_I2C_InitTypeDef structure.
Return values
None:
58.3 I2C Firmware driver defines
58.3.1 I2C
Master Clock Speed Mode
LL_I2C_CLOCK_SPEED_STANDARD_MODE
Master clock speed range is standard
mode
LL_I2C_CLOCK_SPEED_FAST_MODE
Master clock speed range is fast mode
Read Write Direction
LL_I2C_DIRECTION_WRITE
Bus is in write transfer
LL_I2C_DIRECTION_READ
Bus is in read transfer
Fast Mode Duty Cycle
LL_I2C_DUTYCYCLE_2
I2C fast mode Tlow/Thigh = 2
LL_I2C_DUTYCYCLE_16_9
I2C fast mode Tlow/Thigh = 16/9
Get Flags Defines
LL_I2C_SR1_SB
Start Bit (master mode)
LL_I2C_SR1_ADDR
Address sent (master mode) or Address matched flag
(slave mode)
LL_I2C_SR1_BTF
Byte Transfer Finished 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