Plese use this class with my "i2cslave" class.

Dependents:   2016_mother_3 WRS2019_master WRS2020_mecanum_node WRS2021_mecanum_driver

Committer:
sgrsn
Date:
Thu Jul 12 10:16:10 2018 +0000
Revision:
6:bc6d5a6e9fe1
Parent:
2:890301330892
Child:
7:446cf4690750
perfect

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sgrsn 0:8c3f6ccf349c 1 #ifndef MBED_I2CMASTER_H
sgrsn 0:8c3f6ccf349c 2 #define MBED_I2CMASTER_H
sgrsn 0:8c3f6ccf349c 3
sgrsn 0:8c3f6ccf349c 4 #include "mbed.h"
sgrsn 0:8c3f6ccf349c 5
sgrsn 6:bc6d5a6e9fe1 6 class i2c : public I2C
sgrsn 0:8c3f6ccf349c 7 {
sgrsn 0:8c3f6ccf349c 8 public:
sgrsn 0:8c3f6ccf349c 9 i2c(PinName p1,PinName p2);
sgrsn 6:bc6d5a6e9fe1 10 bool writeSomeData(char addr,char reg, int32_t data ,int size);
sgrsn 6:bc6d5a6e9fe1 11 bool getSlaveRegistarData(char addr, char reg, int32_t *data ,int size);
sgrsn 0:8c3f6ccf349c 12 };
sgrsn 0:8c3f6ccf349c 13
sgrsn 0:8c3f6ccf349c 14 #endif