Functions
Initialization and de-initialization functions
Peripheral Driver » LL Driver » I2C » Functions

## Functions
error_status_t | ll_i2c_deinit (i2c_regs_t *I2Cx)
| De-initialize I2C registers (Registers restored to their default values). More...
error_status_t | ll_i2c_init (i2c_regs_t *I2Cx, ll_i2c_init_t *p_i2c_init)
| Initialize I2C registers according to the specified parameters in p_i2c_init. More...
void | ll_i2c_struct_init (ll_i2c_init_t *p_i2c_init)
| Set each field of a ll_i2c_init_t type structure to default value. More...

## Detailed Description

## Function Documentation

## ◆ ll_i2c_deinit()

error_status_t ll_i2c_deinit | ( | i2c_regs_t * | I2Cx | ) |

De-initialize I2C registers (Registers restored to their default values).

Parameters

  I2Cx | I2C instance

Return values

  An | error_status_t enumeration value: SUCCESS: I2C registers are de-initialized ERROR: I2C registers are not de-initialized

## ◆ ll_i2c_init()

error_status_t ll_i2c_init | ( | i2c_regs_t * | I2Cx,
|  | ll_i2c_init_t * | p_i2c_init
| ) |  |

Initialize I2C registers according to the specified parameters in p_i2c_init.

Parameters

  I2Cx | I2C instance
  p_i2c_init | Pointer to a ll_i2c_init_t structure that contains the configuration information for the specified I2C peripheral.

Return values

  An | error_status_t enumeration value: SUCCESS: I2C registers are initialized according to p_i2c_init content ERROR: Problem occurred during I2C Registers initialization

## ◆ ll_i2c_struct_init()

void ll_i2c_struct_init | ( | ll_i2c_init_t * | p_i2c_init | ) |

Set each field of a ll_i2c_init_t type structure to default value.

Parameters

  p_i2c_init | Pointer to a ll_i2c_init_t structure whose fields will be set to default values.

Return values

  None |