gadget-tester/i2c.h
2019-11-22 11:12:54 +01:00

12 lines
307 B
C

#ifndef I2C_H_INCLUDED
#define I2C_H_INCLUDED
#include <stdint.h>
void i2c1_setup(void);
void i2c1_write(uint8_t addr, const char byte);
uint8_t i2c1_read(uint8_t addr);
int i2c1_send(uint8_t address, const uint8_t *buf, int len);
int i2c1_send_data(uint8_t address, const uint8_t *buf, int len);
#endif