Skip to content

Struct SYN_I2C_Config

ClassList > SYN_I2C_Config

I2C driver instance configuration parameters.

  • #include <syn_i2c.h>

Public Attributes

Type Name
uint32_t clock_speed_hz
uint8_t i2c_id
uint16_t own_address
SYN_I2C_Role role
bool use_dma

Public Attributes Documentation

variable clock_speed_hz

uint32_t SYN_I2C_Config::clock_speed_hz;

Bus speed in Hz (e.g. 100000, 400000)


variable i2c_id

uint8_t SYN_I2C_Config::i2c_id;

Hardware I2C instance (0 = I2C1)


variable own_address

uint16_t SYN_I2C_Config::own_address;

7-bit own slave address


variable role

SYN_I2C_Role SYN_I2C_Config::role;

Master or Slave mode


variable use_dma

bool SYN_I2C_Config::use_dma;

Enable DMA transfers



The documentation for this class was generated from the following file src/syntropic/drivers/syn_i2c.h