I2C_Init_TypeDef Struct ReferenceEMLIB > I2C

I2C initialization structure.

Definition at line 195 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 216 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 197 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 213 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 200 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 207 of file em_i2c.h .

Referenced by I2C_Init() , and I2CSPM_Init() .


The documentation for this struct was generated from the following file:
  • C:/cygwin/home/caamunds/work/super/platform/emlib/inc/ em_i2c.h