diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2011-10-11 21:56:36 +0200 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2011-10-11 21:56:36 +0200 |
commit | cbc941282074856fc6179761b70a0c9879b0b64d (patch) | |
tree | ed15c6d9e20ceaf1ff01a05aa63054410bb8ed54 /firmware/i2c.h | |
parent | 324c5ba9098c1010d0aa8c1e26b95509878ce9f2 (diff) | |
download | mini-octopus-cbc941282074856fc6179761b70a0c9879b0b64d.tar.gz mini-octopus-cbc941282074856fc6179761b70a0c9879b0b64d.zip |
update firmware to @319
Diffstat (limited to 'firmware/i2c.h')
-rw-r--r-- | firmware/i2c.h | 11 |
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 */ |