Contains settings for initialising an I2C interface.
#include <i2c.h>
Public Types | |
enum class | Mode { I2C_MASTER , I2C_SLAVE } |
enum class | Peripheral { I2C_1 = 0 , I2C_2 , I2C_3 , I2C_4 } |
enum class | Speed { I2C_100KHZ , I2C_400KHZ , I2C_1MHZ } |
Public Attributes | ||
Peripheral | periph | |
struct { | ||
Pin scl | ||
Pin sda | ||
} | pin_config | |
Speed | speed | |
Mode | mode | |
uint8_t | address = 0x10 | |
uint8_t daisy::I2CHandle::Config::address = 0x10 |
&
Mode daisy::I2CHandle::Config::mode |
&
Peripheral daisy::I2CHandle::Config::periph |
&
struct { ... } daisy::I2CHandle::Config::pin_config |
&
Pin daisy::I2CHandle::Config::scl |
&
Pin daisy::I2CHandle::Config::sda |
&
Speed daisy::I2CHandle::Config::speed |
&