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.

Public Attributes#

I2C_TypeDef *

Peripheral port.

GPIO_Port_TypeDef

SCL pin port number.

GPIO_Port_TypeDef

SDA pin port number.

uint8_t

SCL pin number.

uint8_t

SDA pin number.

uint32_t

I2C reference clock.

uint32_t

I2C max bus frequency to use.

I2C_ClockHLR_TypeDef

Clock low/high ratio control.

Public Attribute Documentation#

port#

I2C_TypeDef* I2CSPM_Init_TypeDef::port

Peripheral port.


sclPort#

GPIO_Port_TypeDef I2CSPM_Init_TypeDef::sclPort

SCL pin port number.


sdaPort#

GPIO_Port_TypeDef I2CSPM_Init_TypeDef::sdaPort

SDA pin port number.


sclPin#

uint8_t I2CSPM_Init_TypeDef::sclPin

SCL pin number.


sdaPin#

uint8_t I2CSPM_Init_TypeDef::sdaPin

SDA pin number.


i2cRefFreq#

uint32_t I2CSPM_Init_TypeDef::i2cRefFreq

I2C reference clock.


i2cMaxFreq#

uint32_t I2CSPM_Init_TypeDef::i2cMaxFreq

I2C max bus frequency to use.


i2cClhr#

I2C_ClockHLR_TypeDef I2CSPM_Init_TypeDef::i2cClhr

Clock low/high ratio control.