i2c.h 403 B

123456789101112131415161718
  1. /* i2c.h */
  2. int i2c_init(void);
  3. /* High level I2C actions */
  4. int i2c_writereg(unsigned char theSlave, unsigned char theReg, unsigned char theValue);
  5. unsigned char i2c_readreg(unsigned char theSlave, unsigned char theReg);
  6. /* Low level I2C */
  7. void i2c_start(void);
  8. void i2c_stop(void);
  9. void i2c_outbyte(unsigned char x);
  10. unsigned char i2c_inbyte(void);
  11. int i2c_getack(void);
  12. void i2c_sendack(void);