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