EFM32 Giant Gecko Software Documentation  efm32gg-doc-4.2.1
I2C_Init_TypeDef Struct Reference

#include <em_i2c.h>

Data Fields

bool enable
 
bool master
 
uint32_t refFreq
 
uint32_t freq
 
I2C_ClockHLR_TypeDef clhr
 

Detailed Description

I2C initialization structure.

Definition at line 196 of file em_i2c.h.

Field Documentation

bool I2C_Init_TypeDef::enable

Enable I2C peripheral when init completed.

Definition at line 199 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 202 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 209 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 215 of file em_i2c.h.

Referenced by I2C_Init(), and I2CSPM_Init().

I2C_ClockHLR_TypeDef I2C_Init_TypeDef::clhr

Clock low/high ratio control.

Definition at line 218 of file em_i2c.h.

Referenced by I2C_Init(), and I2CSPM_Init().


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