summaryrefslogtreecommitdiff
path: root/code/esp32/components/eos/include/i2c.h
blob: 995a77e1a571ccb506e8d77ba80ddfa9df0da65d (plain)
1
2
3
4
5
6
7
8
#include <sys/types.h>
#include <stdint.h>

void eos_i2c_init(void);
int eos_i2c_read(uint8_t addr, uint8_t reg, uint8_t *data, size_t len);
uint8_t eos_i2c_read8(uint8_t addr, uint8_t reg);
int eos_i2c_write(uint8_t addr, uint8_t reg, uint8_t *data, size_t len);
void eos_i2c_write8(uint8_t addr, uint8_t reg, uint8_t data);