summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/i2c.h
blob: 2da051780dad8939ceacc5526a0d4cffd77d6e0b (plain)
1
2
3
4
5
6
7
8
9
10
#include <stdint.h>

int eos_i2c_init(uint8_t wakeup_cause);
int eos_i2c_start(uint32_t baud_rate);
void eos_i2c_stop(void);
void eos_i2c_set_baud_rate(uint32_t baud_rate);
int eos_i2c_read(uint8_t addr, uint8_t reg, uint8_t *buffer, uint16_t len);
int eos_i2c_write(uint8_t addr, uint8_t reg, uint8_t *buffer, uint16_t len);
int eos_i2c_read8(uint8_t addr, uint8_t reg, uint8_t *data);
int eos_i2c_write8(uint8_t addr, uint8_t reg, uint8_t data);