gadget-securevault/i2c.h

13 lines
307 B
C
Raw Permalink Normal View History

2019-10-27 07:30:03 +01:00
#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