CH552/src/make/si5351/i2c.h
2019-05-24 11:16:18 +08:00

18 lines
243 B
C

typedef __bit bool;
extern void i2c_init();
extern void i2c_start();
extern void i2c_stop();
extern void i2c_write(uint8_t data);
extern bool i2c_read_ack();
extern bool i2c_read_nak();
extern uint8_t i2c_read();
#define TW_READ 0x01