I2Cx: I2C Instance.
I2C_InitStruct: pointer to a LL_I2C_InitTypeDef structure.
An: ErrorStatus enumeration value:
SUCCESS: I2C registers are initialized
ERROR: Not applicable
LL_I2C_DeInit
uint32_t LL_I2C_DeInit (I2C_TypeDef * I2Cx)
De-initialize the I2C registers to their default reset values.
An: ErrorStatus enumeration value:
SUCCESS: I2C registers are de-initialized
ERROR: I2C registers are not de-initialized
LL_I2C_StructInit
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.
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
Fast Mode Duty Cycle
I2C fast mode Tlow/Thigh = 2
I2C fast mode Tlow/Thigh = 16/9
Get Flags Defines
Address sent (master mode) or Address matched flag
(slave mode)
Byte Transfer Finished flag