Struct 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¶
Bus speed in Hz (e.g. 100000, 400000)
variable i2c_id¶
Hardware I2C instance (0 = I2C1)
variable own_address¶
7-bit own slave address
variable role¶
Master or Slave mode
variable use_dma¶
Enable DMA transfers
The documentation for this class was generated from the following file src/syntropic/drivers/syn_i2c.h