Struct daisy::I2CHandle::Config¶
ClassList > daisy > I2CHandle > Config
#include <i2c.h>
Public Types¶
Type | Name |
---|---|
enum | Mode |
enum | Peripheral |
enum | Speed |
Public Attributes¶
Type | Name |
---|---|
uint8_t | address = 0x10 |
Mode | mode |
Peripheral | periph |
struct daisy::I2CHandle::Config | pin_config |
Pin | scl |
Pin | sda |
Speed | speed |
Detailed Description¶
Contains settings for initialising an I2C interface.
Public Types Documentation¶
enum Mode¶
Specifies whether the interface will operate in master or slave mode.
enum Peripheral¶
Specifices the internal peripheral to use (these are mapped to different pins on the hardware).
enum Speed¶
Rate at which the clock/data will be sent/received. The device being used will have maximum speeds. 1MHZ Mode is currently 886kHz
Public Attributes Documentation¶
variable address¶
&
variable mode¶
&
variable periph¶
&
variable pin_config¶
&
variable scl¶
&
variable sda¶
&
variable speed¶
&
The documentation for this class was generated from the following file external-docs/libDaisy/src/per/i2c.h