summaryrefslogtreecommitdiff
path: root/firmware/i2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/i2c.h')
-rw-r--r--firmware/i2c.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/firmware/i2c.h b/firmware/i2c.h
index 89834ea..3d0f02b 100644
--- a/firmware/i2c.h
+++ b/firmware/i2c.h
@@ -47,22 +47,21 @@ int i2c_deinit(void);
int i2c_set_bitrate(char);
int i2c_send_start(void);
int i2c_send_stop(void);
-void i2c_send_byte(char data);
+void i2c_send(char *data, int length);
unsigned char i2c_receive_byte(void);
-unsigned char i2c_get_twsr(void);
-void i2c_wait_for_complete(void);
-
void i2c_init_usb(void);
void i2c_deinit_usb(void);
void i2c_set_bitrate_usb(char);
void i2c_send_start_usb(void);
void i2c_send_stop_usb(void);
-void i2c_send_byte_usb(char data);
+void i2c_send_usb(int length, char *data);
+unsigned char i2c_recv_byte(void);
+int i2c_send_start(void);
-void i2c_reveice_bytes_usb(int address,int len, int timeout);
+void i2c_recv_usb(int address, int len);
#endif /* I2C_H */