49#define TWI0_SCL (1u << 18)
50#define TWI0_SDA (1u << 17)
52#define TWI0_PINS (TWI0_SCL | TWI0_SDA)
86void twi_read(uint8_t* buffer,
size_t len);
94void twi_write(
const uint8_t* buffer,
size_t len);
TWI configuration parameters.
twi_iadr_size_t iadr_size
twi_iadr_size_t
TWI internal address size.
void twi_configure(const twi_cfg_t *cfg)
Configures TWI0 peripheral of SAM3X8E.
void twi_write(const uint8_t *buffer, size_t len)
Writes to TWI target device.
void twi_init()
Initializes TWI0 peripheral of SAM3X8E.
void twi_read(uint8_t *buffer, size_t len)
Reads from TWI target device.