Plese use this class with my "i2cslave" class.

Dependents:   2016_mother_3 WRS2019_master WRS2020_mecanum_node WRS2021_mecanum_driver

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers i2cmaster.h Source File

i2cmaster.h

00001 #ifndef MBED_I2CMASTER_H
00002 #define MBED_I2CMASTER_H
00003 
00004 #include "mbed.h"
00005 
00006 class i2c : public I2C
00007 {
00008     public:
00009     i2c(PinName p1,PinName p2);
00010     bool writeSomeData(char addr,char reg, int32_t data ,uint8_t size);
00011     bool getSlaveRegistarData(char addr, char reg, int32_t *data ,uint8_t size);
00012 };
00013 
00014 #endif