diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-01-09 21:58:53 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-01-09 21:58:53 +0100 |
commit | 554d78c9c73731705ab536e009ef47760dd2df3f (patch) | |
tree | 03637579a0c1ffc9df25181d5f2bf201bb9be91f /commandline/i2c-util.h | |
parent | 3541c176f24f8daee3b0bc35f71e1521daa7137a (diff) |
move software I2C implementation to ATTiny
Diffstat (limited to 'commandline/i2c-util.h')
-rw-r--r-- | commandline/i2c-util.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/commandline/i2c-util.h b/commandline/i2c-util.h index 9be466a..0f47b6e 100644 --- a/commandline/i2c-util.h +++ b/commandline/i2c-util.h @@ -10,8 +10,15 @@ unsigned char get_status(); unsigned char i2c_tx_byte(unsigned char byte); unsigned char i2c_rx_byte(unsigned char send_ack); +unsigned char i2c_hw_tx_byte(unsigned char byte); +unsigned char i2c_hw_rx_byte(unsigned char send_ack); + void i2c_getopt(int argc, char **argv); void i2c_start(); void i2c_stop(); void i2c_init(); void i2c_deinit(); + +void i2c_hw_setbits(); +void i2c_hw_start(); +void i2c_hw_stop(); |