Plese use this class with my "i2cslave" class.

Dependents:   2016_mother_3 WRS2019_master WRS2020_mecanum_node WRS2021_mecanum_driver

i2cmaster.h

Committer:
sgrsn
Date:
2018-07-12
Revision:
6:bc6d5a6e9fe1
Parent:
2:890301330892
Child:
7:446cf4690750

File content as of revision 6:bc6d5a6e9fe1:

#ifndef MBED_I2CMASTER_H
#define MBED_I2CMASTER_H

#include "mbed.h"

class i2c : public I2C
{
    public:
    i2c(PinName p1,PinName p2);
    bool writeSomeData(char addr,char reg, int32_t data ,int size);
    bool getSlaveRegistarData(char addr, char reg, int32_t *data ,int size);
};

#endif