Initialization parameters for an I2C Driver instance.

This structure is passed to sl_i2c_init() during initialization of an I2C instance.

Note

  • Usage of follower_address depends on the operating mode: Leader Mode : Used to specify the address of the follower device. Follower Mode : Used to set the I2C device's own (self) address.

Public Attributes#

sl_peripheral_t

I2C Peripheral Instance.

sl_i2c_operating_mode_t

Operating mode: Leader or Follower.

I2C Speed mode (Standard, Fast, etc.)

sl_gpio_t

SCL GPIO Port and Pin (Serial Clock Line)

sl_gpio_t

SDA GPIO Port and Pin (Serial Data Line)

Public Attribute Documentation#

i2c_peripheral#

sl_peripheral_t sl_i2c_init_params_t::i2c_peripheral

I2C Peripheral Instance.


operating_mode#

sl_i2c_operating_mode_t sl_i2c_init_params_t::operating_mode

Operating mode: Leader or Follower.


frequency_mode#

sl_i2c_freq_mode_t sl_i2c_init_params_t::frequency_mode

I2C Speed mode (Standard, Fast, etc.)


scl_gpio#

sl_gpio_t sl_i2c_init_params_t::scl_gpio

SCL GPIO Port and Pin (Serial Clock Line)


sda_gpio#

sl_gpio_t sl_i2c_init_params_t::sda_gpio

SDA GPIO Port and Pin (Serial Data Line)