EFR32 Flex Gecko 13 Software Documentation  efr32fg13-doc-5.1.2
I2CSPM_Init_TypeDef Struct Reference

Detailed Description

I2C driver instance initialization structure. This data structure contains a number of I2C configuration options required for driver instance initialization. This struct is passed to I2CSPM_Init() when initializing a I2CSPM instance.

Definition at line 51 of file i2cspm.h.

#include <i2cspm.h>

Data Fields

I2C_ClockHLR_TypeDef i2cClhr
 
uint32_t i2cMaxFreq
 
uint32_t i2cRefFreq
 
I2C_TypeDefport
 
uint8_t portLocationScl
 
uint8_t portLocationSda
 
uint8_t sclPin
 
GPIO_Port_TypeDef sclPort
 
uint8_t sdaPin
 
GPIO_Port_TypeDef sdaPort
 

Field Documentation

I2C_ClockHLR_TypeDef I2CSPM_Init_TypeDef::i2cClhr

Clock low/high ratio control

Definition at line 66 of file i2cspm.h.

Referenced by I2CSPM_Init().

uint32_t I2CSPM_Init_TypeDef::i2cMaxFreq

I2C max bus frequency to use

Definition at line 65 of file i2cspm.h.

Referenced by I2CSPM_Init().

uint32_t I2CSPM_Init_TypeDef::i2cRefFreq

I2C reference clock

Definition at line 64 of file i2cspm.h.

Referenced by I2CSPM_Init().

I2C_TypeDef* I2CSPM_Init_TypeDef::port

Peripheral port

Definition at line 53 of file i2cspm.h.

Referenced by BOARD_init(), and I2CSPM_Init().

uint8_t I2CSPM_Init_TypeDef::portLocationScl

Port location of SCL signal

Definition at line 59 of file i2cspm.h.

Referenced by I2CSPM_Init().

uint8_t I2CSPM_Init_TypeDef::portLocationSda

Port location of SDA signal

Definition at line 60 of file i2cspm.h.

Referenced by I2CSPM_Init().

uint8_t I2CSPM_Init_TypeDef::sclPin

SCL pin number

Definition at line 55 of file i2cspm.h.

Referenced by I2CSPM_Init().

GPIO_Port_TypeDef I2CSPM_Init_TypeDef::sclPort

SCL pin port number

Definition at line 54 of file i2cspm.h.

Referenced by I2CSPM_Init().

uint8_t I2CSPM_Init_TypeDef::sdaPin

SDA pin number

Definition at line 57 of file i2cspm.h.

Referenced by I2CSPM_Init().

GPIO_Port_TypeDef I2CSPM_Init_TypeDef::sdaPort

SDA pin port number

Definition at line 56 of file i2cspm.h.

Referenced by I2CSPM_Init().


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