A library for simulate Arduino's Wire library.
Fork of I2C_Driver by
Diff: I2C_Driver.h
- Revision:
- 0:2514f1c72462
diff -r 000000000000 -r 2514f1c72462 I2C_Driver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/I2C_Driver.h Tue Aug 23 16:23:15 2016 +0000 @@ -0,0 +1,14 @@ + + +#ifndef MBED_I2C_DRIVER_H +#define MBED_I2C_DRIVER_H + +#include "mbed.h" +#include "wire.h" + +void ini_i2c( int scl, int sda); +int write_i2c(uint8_t addr, uint8_t *pbuf, uint16_t length, uint8_t dev_addr); //Definicion de rutina de escritura. +int read_i2c(uint8_t addr, uint8_t *pbuf, uint16_t length, uint8_t dev_addr); //Definicion de rutina de lectura. + +#endif +