Ll_I2C_Deinit; Ll_I2C_Structinit; I2C 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 I2C Generic Driver
Parameters
Return values

LL_I2C_DeInit

Function name
Function description
Parameters
Return values

LL_I2C_StructInit

Function name
Function description
Parameters
Return values
58.3

I2C Firmware driver defines

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