i2c.h 307 B

123456789101112
  1. #ifndef I2C_H_INCLUDED
  2. #define I2C_H_INCLUDED
  3. #include <stdint.h>
  4. void i2c1_setup(void);
  5. void i2c1_write(uint8_t addr, const char byte);
  6. uint8_t i2c1_read(uint8_t addr);
  7. int i2c1_send(uint8_t address, const uint8_t *buf, int len);
  8. int i2c1_send_data(uint8_t address, const uint8_t *buf, int len);
  9. #endif