TUKS MCU Introductory course / TUKS-COURSE-THERMOMETER

Fork of TUKS-COURSE-TIMER by TUKS MCU Introductory course

Embed: (wiki syntax)

« Back to documentation index

Initialization and de-initialization functions

Initialization and de-initialization functions
[I2C Exported Functions]

Functions

uint32_t LL_I2C_DeInit (I2C_TypeDef *I2Cx)
 De-initialize the I2C registers to their default reset values.
uint32_t LL_I2C_Init (I2C_TypeDef *I2Cx, LL_I2C_InitTypeDef *I2C_InitStruct)
 Initialize the I2C registers according to the specified parameters in I2C_InitStruct.
void LL_I2C_StructInit (LL_I2C_InitTypeDef *I2C_InitStruct)
 Set each LL_I2C_InitTypeDef field to default value.

Function Documentation

uint32_t LL_I2C_DeInit ( I2C_TypeDef *  I2Cx )

De-initialize the I2C registers to their default reset values.

Parameters:
I2CxI2C Instance.
Return values:
AnErrorStatus enumeration value:

  • SUCCESS: I2C registers are de-initialized
  • ERROR: I2C registers are not de-initialized

Definition at line 105 of file stm32l4xx_ll_i2c.c.

uint32_t LL_I2C_Init ( I2C_TypeDef *  I2Cx,
LL_I2C_InitTypeDef *  I2C_InitStruct 
)

Initialize the I2C registers according to the specified parameters in I2C_InitStruct.

Parameters:
I2CxI2C Instance.
I2C_InitStructpointer to a LL_I2C_InitTypeDef structure.
Return values:
AnErrorStatus enumeration value:

  • SUCCESS: I2C registers are initialized
  • ERROR: Not applicable

Definition at line 155 of file stm32l4xx_ll_i2c.c.

void LL_I2C_StructInit ( LL_I2C_InitTypeDef *  I2C_InitStruct )

Set each LL_I2C_InitTypeDef field to default value.

Parameters:
I2C_InitStructPointer to a LL_I2C_InitTypeDef structure.
Return values:
None

Definition at line 218 of file stm32l4xx_ll_i2c.c.