i2c.h 261 B

123456789101112131415161718
  1. #ifndef _I2C_H
  2. #define _I2C_H
  3. #include <avr/io.h>
  4. #define TRUE 1
  5. #define FALSE 0
  6. void I2CInit(void);
  7. void I2CClose(void);
  8. void I2CStart(void);
  9. void I2CStop(void);
  10. uint8_t I2CWriteByte(uint8_t data);
  11. uint8_t I2CReadByte(uint8_t *data,uint8_t ack);
  12. #endif