for_gamma
GammaTransporter.h@1:8eeedbc40657, 2017-08-18 (annotated)
- Committer:
- Komazawa_sun
- Date:
- Fri Aug 18 04:48:11 2017 +0000
- Revision:
- 1:8eeedbc40657
- Parent:
- 0:519ec302e9b8
- Child:
- 2:dbb9a7fe426b
hoge
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Komazawa_sun | 0:519ec302e9b8 | 1 | #ifndef SDA |
Komazawa_sun | 0:519ec302e9b8 | 2 | #define SDA PB_7 |
Komazawa_sun | 0:519ec302e9b8 | 3 | #endif |
Komazawa_sun | 0:519ec302e9b8 | 4 | |
Komazawa_sun | 0:519ec302e9b8 | 5 | #ifndef SCL |
Komazawa_sun | 0:519ec302e9b8 | 6 | #define SCL PB_6 |
Komazawa_sun | 0:519ec302e9b8 | 7 | #endif |
Komazawa_sun | 0:519ec302e9b8 | 8 | |
Komazawa_sun | 0:519ec302e9b8 | 9 | #ifndef SCL |
Komazawa_sun | 0:519ec302e9b8 | 10 | #define SCL PB_6 |
Komazawa_sun | 0:519ec302e9b8 | 11 | #endif |
Komazawa_sun | 0:519ec302e9b8 | 12 | |
Komazawa_sun | 0:519ec302e9b8 | 13 | #ifndef JUSHINKUN_ADDR |
Komazawa_sun | 0:519ec302e9b8 | 14 | #define JUSHINKUN_ADDR 0x12 |
Komazawa_sun | 0:519ec302e9b8 | 15 | #endif |
Komazawa_sun | 0:519ec302e9b8 | 16 | |
Komazawa_sun | 0:519ec302e9b8 | 17 | #ifndef APPER_BODY_ADDR |
Komazawa_sun | 0:519ec302e9b8 | 18 | #define APPER_BODY_ADDR 0x11 |
Komazawa_sun | 0:519ec302e9b8 | 19 | #endif |
Komazawa_sun | 0:519ec302e9b8 | 20 | |
Komazawa_sun | 0:519ec302e9b8 | 21 | #ifndef GAMMA_TRANSPORTER_H |
Komazawa_sun | 0:519ec302e9b8 | 22 | #define GAMMA_TRANSPORTER_H |
Komazawa_sun | 0:519ec302e9b8 | 23 | |
Komazawa_sun | 0:519ec302e9b8 | 24 | #include "DataPool.h" |
Komazawa_sun | 0:519ec302e9b8 | 25 | #include "GammaPool.h" |
Komazawa_sun | 0:519ec302e9b8 | 26 | #include "I2CTransporter.h" |
Komazawa_sun | 0:519ec302e9b8 | 27 | |
Komazawa_sun | 1:8eeedbc40657 | 28 | class GammaTransporter : public DataPool |
Komazawa_sun | 0:519ec302e9b8 | 29 | { |
Komazawa_sun | 0:519ec302e9b8 | 30 | public: |
Komazawa_sun | 0:519ec302e9b8 | 31 | GammaTransporter(); |
Komazawa_sun | 0:519ec302e9b8 | 32 | |
Komazawa_sun | 0:519ec302e9b8 | 33 | virtual bool set(); |
Komazawa_sun | 0:519ec302e9b8 | 34 | virtual int read(int index_num); |
Komazawa_sun | 0:519ec302e9b8 | 35 | virtual void reset(); |
Komazawa_sun | 0:519ec302e9b8 | 36 | |
Komazawa_sun | 0:519ec302e9b8 | 37 | GammaPool pool; |
Komazawa_sun | 0:519ec302e9b8 | 38 | |
Komazawa_sun | 0:519ec302e9b8 | 39 | private: |
Komazawa_sun | 0:519ec302e9b8 | 40 | I2CTransporter i2c; |
Komazawa_sun | 0:519ec302e9b8 | 41 | }; |
Komazawa_sun | 0:519ec302e9b8 | 42 | |
Komazawa_sun | 0:519ec302e9b8 | 43 | #endif |