From ea4ee734b20dbc5511beb9ec400fb7ffe52ea87e Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Mon, 29 Apr 2019 10:26:32 -0400 Subject: removed submodule so files can be edited --- i2c.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 i2c.h (limited to 'i2c.h') diff --git a/i2c.h b/i2c.h new file mode 100644 index 0000000..987d109 --- /dev/null +++ b/i2c.h @@ -0,0 +1,26 @@ +/* + * i2c.h + * + * Created on: 28 de abr de 2017 + * Author: helio.capella + */ + +#ifndef I2C_H_ +#define I2C_H_ + +#include + +uint8_t *PTxData; // Pointer to TX data +uint8_t *PRxData; // Pointer to RX data + +uint8_t TxByteCtr; +uint8_t RxByteCtr; + +//uint8_t isRx; + +void I2C_init(uint8_t slaveAddress); +void I2C_write(uint8_t ByteCtr, uint8_t *TxData); +void I2C_read(uint8_t ByteCtr, volatile uint8_t *RxData); + +#endif /* I2C_H_ */ + -- cgit v1.2.3