EFR32 Mighty Gecko 1 Software Documentation  efr32mg1-doc-5.1.2
I2C_Init_TypeDef Struct Reference

Detailed Description

I2C initialization structure.

Definition at line 201 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 223 of file em_i2c.h.

Referenced by I2C_Init(), and I2CSPM_Init().

bool I2C_Init_TypeDef::enable

Enable I2C peripheral when init completed.

Definition at line 204 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 220 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 207 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 configurated reference clock shall be used 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().


The documentation for this struct was generated from the following file: