I2C_Init_TypeDef Struct ReferenceEMLIB > I2C

I2C initialization structure.

Definition at line 196 of file em_i2c.h .

#include < em_i2c.h >

Data Fields

I2C_ClockHLR_TypeDef clhr
bool enable
uint32_t freq
bool master
uint32_t refFreq

Field Documentation

I2C_ClockHLR_TypeDef I2C_Init_TypeDef::clhr

Clock low/high ratio control.

Definition at line 217 of file em_i2c.h .

Referenced by I2C_Init() , and I2CSPM_Init() .

bool I2C_Init_TypeDef::enable

Enable I2C peripheral when initialization completed.

Definition at line 198 of file em_i2c.h .

Referenced by I2C_Init() , and I2CSPM_Init() .

uint32_t I2C_Init_TypeDef::freq

(Max) I2C bus frequency to use. This parameter is only applicable if operating in master mode.

Definition at line 214 of file em_i2c.h .

Referenced by I2C_Init() , and I2CSPM_Init() .

bool I2C_Init_TypeDef::master

Set to master (true) or slave (false) mode

Definition at line 201 of file em_i2c.h .

Referenced by I2C_Init() , and I2CSPM_Init() .

uint32_t I2C_Init_TypeDef::refFreq

I2C reference clock assumed when configuring bus frequency setup. Set it to 0 if currently configured reference clock will be used This parameter is only applicable if operating in master mode.

Definition at line 208 of file em_i2c.h .

Referenced by I2C_Init() , and I2CSPM_Init() .


The documentation for this struct was generated from the following file:
  • C:/repos/embsw_super_h1/platform/emlib/inc/ em_i2c.h