I2C libraries for the implementation of I2C communication in nRF51 based on I2C redbearlabs libraries

Dependents:   I2C_Driver_Example I2C_Driver_Example nRF51822_SimpleControls LastCode ... more

Committer:
cesarcazal
Date:
Tue Aug 23 16:23:15 2016 +0000
Revision:
0:2514f1c72462
Driver para la utiilizaci?n del I2C basado en librer?as de Redbearlab

Who changed what in which revision?

UserRevisionLine numberNew contents of line
cesarcazal 0:2514f1c72462 1
cesarcazal 0:2514f1c72462 2
cesarcazal 0:2514f1c72462 3 #ifndef MBED_I2C_DRIVER_H
cesarcazal 0:2514f1c72462 4 #define MBED_I2C_DRIVER_H
cesarcazal 0:2514f1c72462 5
cesarcazal 0:2514f1c72462 6 #include "mbed.h"
cesarcazal 0:2514f1c72462 7 #include "wire.h"
cesarcazal 0:2514f1c72462 8
cesarcazal 0:2514f1c72462 9 void ini_i2c( int scl, int sda);
cesarcazal 0:2514f1c72462 10 int write_i2c(uint8_t addr, uint8_t *pbuf, uint16_t length, uint8_t dev_addr); //Definicion de rutina de escritura.
cesarcazal 0:2514f1c72462 11 int read_i2c(uint8_t addr, uint8_t *pbuf, uint16_t length, uint8_t dev_addr); //Definicion de rutina de lectura.
cesarcazal 0:2514f1c72462 12
cesarcazal 0:2514f1c72462 13 #endif
cesarcazal 0:2514f1c72462 14