alpha_datapool

Dependents:   DataPool ctrl

AlphaTransporter.h

Committer:
Komazawa_sun
Date:
2017-09-08
Revision:
1:51a5a9f66f61
Parent:
0:2c82568e1790

File content as of revision 1:51a5a9f66f61:

#ifndef SDA
#define SDA PB_7
#endif

#ifndef SCL
#define SCL PB_6
#endif

#ifndef SCL
#define SCL PB_6
#endif

#ifndef JUSHINKUN_ADDR
#define JUSHINKUN_ADDR 0x12
#endif

#ifndef ALPHA_TRANSPORTER_H
#define ALPHA_TRANSPORTER_H

#include "DataPool.h"
#include "AlphaPool.h"
#include "I2CTransporter.h"

class AlphaTransporter : public DataPool
{
    public:
        AlphaTransporter(I2C *master);
    
        virtual bool set();
        virtual void write(int index_num, int data);
        virtual int read(int index_num);
        virtual void reset();
        
        AlphaPool pool;
        
    private:
        I2CTransporter i2c;
};

#endif