From cbc941282074856fc6179761b70a0c9879b0b64d Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Tue, 11 Oct 2011 21:56:36 +0200 Subject: update firmware to @319 --- firmware/i2c.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'firmware/i2c.h') 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 */ -- cgit v1.2.1