diff options
Diffstat (limited to 'i2c.h')
-rw-r--r-- | i2c.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -0,0 +1,13 @@ +#ifndef _ROBOCUP_I2C_H_ +#define _ROBOCUP_I2C_H_ + +#include <stdint.h> + + +void initI2C(); +bool I2CSendByte(uint8_t addr, uint8_t data); +bool I2CSend(uint8_t addr, uint8_t *data, int length); +bool I2CRecvByte(uint8_t addr, uint8_t *data); +int I2CRecv(uint8_t addr, uint8_t *data, int length); + +#endif |