alpha_datapool

Dependents:   DataPool ctrl

Committer:
Komazawa_sun
Date:
Fri Sep 08 03:27:55 2017 +0000
Revision:
1:51a5a9f66f61
Parent:
0:2c82568e1790
????; ;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Komazawa_sun 0:2c82568e1790 1 #ifndef SDA
Komazawa_sun 0:2c82568e1790 2 #define SDA PB_7
Komazawa_sun 0:2c82568e1790 3 #endif
Komazawa_sun 0:2c82568e1790 4
Komazawa_sun 0:2c82568e1790 5 #ifndef SCL
Komazawa_sun 0:2c82568e1790 6 #define SCL PB_6
Komazawa_sun 0:2c82568e1790 7 #endif
Komazawa_sun 0:2c82568e1790 8
Komazawa_sun 0:2c82568e1790 9 #ifndef SCL
Komazawa_sun 0:2c82568e1790 10 #define SCL PB_6
Komazawa_sun 0:2c82568e1790 11 #endif
Komazawa_sun 0:2c82568e1790 12
Komazawa_sun 0:2c82568e1790 13 #ifndef JUSHINKUN_ADDR
Komazawa_sun 0:2c82568e1790 14 #define JUSHINKUN_ADDR 0x12
Komazawa_sun 0:2c82568e1790 15 #endif
Komazawa_sun 0:2c82568e1790 16
Komazawa_sun 0:2c82568e1790 17 #ifndef ALPHA_TRANSPORTER_H
Komazawa_sun 0:2c82568e1790 18 #define ALPHA_TRANSPORTER_H
Komazawa_sun 0:2c82568e1790 19
Komazawa_sun 0:2c82568e1790 20 #include "DataPool.h"
Komazawa_sun 0:2c82568e1790 21 #include "AlphaPool.h"
Komazawa_sun 0:2c82568e1790 22 #include "I2CTransporter.h"
Komazawa_sun 0:2c82568e1790 23
Komazawa_sun 0:2c82568e1790 24 class AlphaTransporter : public DataPool
Komazawa_sun 0:2c82568e1790 25 {
Komazawa_sun 0:2c82568e1790 26 public:
Komazawa_sun 1:51a5a9f66f61 27 AlphaTransporter(I2C *master);
Komazawa_sun 0:2c82568e1790 28
Komazawa_sun 0:2c82568e1790 29 virtual bool set();
Komazawa_sun 0:2c82568e1790 30 virtual void write(int index_num, int data);
Komazawa_sun 0:2c82568e1790 31 virtual int read(int index_num);
Komazawa_sun 0:2c82568e1790 32 virtual void reset();
Komazawa_sun 0:2c82568e1790 33
Komazawa_sun 0:2c82568e1790 34 AlphaPool pool;
Komazawa_sun 0:2c82568e1790 35
Komazawa_sun 0:2c82568e1790 36 private:
Komazawa_sun 0:2c82568e1790 37 I2CTransporter i2c;
Komazawa_sun 0:2c82568e1790 38 };
Komazawa_sun 0:2c82568e1790 39
Komazawa_sun 0:2c82568e1790 40 #endif