#include <stdint.h>
#include <stddef.h>
Go to the source code of this file.
◆ I2C_OK
◆ I2C_SCL_HELD_LOW
#define I2C_SCL_HELD_LOW 1 |
◆ I2C_SCL_HELD_LOW_AFTER_READ
#define I2C_SCL_HELD_LOW_AFTER_READ 2 |
◆ I2C_SDA_HELD_LOW
#define I2C_SDA_HELD_LOW 3 |
◆ I2C_SDA_HELD_LOW_AFTER_INIT
#define I2C_SDA_HELD_LOW_AFTER_INIT 4 |
◆ twi_init()
void twi_init |
( |
uint8_t |
sda, |
|
|
uint8_t |
scl |
|
) |
| |
◆ twi_readFrom()
uint8_t twi_readFrom |
( |
uint8_t |
address, |
|
|
uint8_t * |
buf, |
|
|
size_t |
len, |
|
|
bool |
sendStop |
|
) |
| |
◆ twi_setClock()
void twi_setClock |
( |
uint32_t |
freq | ) |
|
◆ twi_setClockStretchLimit()
void twi_setClockStretchLimit |
( |
uint32_t |
limit | ) |
|
◆ twi_status()
◆ twi_stop()
◆ twi_writeTo()
uint8_t twi_writeTo |
( |
uint8_t |
address, |
|
|
const uint8_t * |
buf, |
|
|
size_t |
len, |
|
|
bool |
sendStop |
|
) |
| |