2017 hongo b team

Dependencies:   Alpha_Apper ctrl

Dependents:   DataCaller

I2CTransporter.h

Committer:
Komazawa_sun
Date:
2017-09-08
Revision:
2:e8049f723b4d
Parent:
0:45f0d9b73179

File content as of revision 2:e8049f723b4d:

#ifndef I2C_TRANSPORTER_H
#define I2C_TRANSPORTER_H

#include <mbed.h>

class I2CTransporter
{
    public:
        I2CTransporter(I2C *master_);
        
        void transport_begin(int addr_, char *target_array_, int data_size_);
        bool read();
        bool write();
        void transport_end();
        
    private:
        I2C *_master;
        
        int address;
        char *target_array;
        int data_size;
        bool Transport_Began;  
};

#endif