diff options
Diffstat (limited to 'i2c.h')
-rw-r--r-- | i2c.h | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -0,0 +1,26 @@ +/* + * i2c.h + * + * Created on: 28 de abr de 2017 + * Author: helio.capella + */ + +#ifndef I2C_H_ +#define I2C_H_ + +#include <stdint.h> + +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_ */ + |