blob: 5032988eefe79a00d9c70766f6dc4f12c893e3e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <stdint.h>
#define EOS_I2C_SPEED 100000
int eos_i2c_init(uint8_t wakeup_cause);
void eos_i2c_enable(void);
void eos_i2c_disable(void);
int eos_i2c_enabled(void);
void eos_i2c_speed(uint32_t baud_rate);
int eos_i2c_read8(uint8_t addr, uint8_t reg, uint8_t *buffer, uint16_t len);
int eos_i2c_read16(uint8_t addr, uint16_t reg, uint8_t *buffer, uint16_t len);
int eos_i2c_write8(uint8_t addr, uint8_t reg, uint8_t *buffer, uint16_t len);
int eos_i2c_write16(uint8_t addr, uint16_t reg, uint8_t *buffer, uint16_t len);
|