I2C initialization structure.

Public Attributes#

bool

Enable I2C peripheral when initialization completed.

bool

Set to Controller (true) or Target (false) mode.

uint32_t

I2C reference clock assumed when configuring bus frequency setup.

uint32_t

(Max) I2C bus frequency to use.

Clock low/high ratio control.

Public Attribute Documentation#

enable#

bool I2C_Init_TypeDef::enable

Enable I2C peripheral when initialization completed.


Definition at line 191 of file platform/emlib/inc/em_i2c.h

master#

bool I2C_Init_TypeDef::master

Set to Controller (true) or Target (false) mode.


Definition at line 194 of file platform/emlib/inc/em_i2c.h

refFreq#

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 Controller mode.


Definition at line 201 of file platform/emlib/inc/em_i2c.h

freq#

uint32_t I2C_Init_TypeDef::freq

(Max) I2C bus frequency to use.

This parameter is only applicable if operating in Controller mode.


Definition at line 207 of file platform/emlib/inc/em_i2c.h

clhr#

I2C_ClockHLR_TypeDef I2C_Init_TypeDef::clhr

Clock low/high ratio control.


Definition at line 210 of file platform/emlib/inc/em_i2c.h