Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
AlphaTransporter.h@0:2c82568e1790, 2017-08-30 (annotated)
- Committer:
- Komazawa_sun
- Date:
- Wed Aug 30 05:14:05 2017 +0000
- Revision:
- 0:2c82568e1790
- Child:
- 1:51a5a9f66f61
alpha_pool
Who changed what in which revision?
User | Revision | Line number | New 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 APPER_BODY_ADDR |
Komazawa_sun | 0:2c82568e1790 | 18 | #define APPER_BODY_ADDR 0x0b |
Komazawa_sun | 0:2c82568e1790 | 19 | #endif |
Komazawa_sun | 0:2c82568e1790 | 20 | |
Komazawa_sun | 0:2c82568e1790 | 21 | #ifndef ALPHA_TRANSPORTER_H |
Komazawa_sun | 0:2c82568e1790 | 22 | #define ALPHA_TRANSPORTER_H |
Komazawa_sun | 0:2c82568e1790 | 23 | |
Komazawa_sun | 0:2c82568e1790 | 24 | #include "DataPool.h" |
Komazawa_sun | 0:2c82568e1790 | 25 | #include "AlphaPool.h" |
Komazawa_sun | 0:2c82568e1790 | 26 | #include "I2CTransporter.h" |
Komazawa_sun | 0:2c82568e1790 | 27 | |
Komazawa_sun | 0:2c82568e1790 | 28 | class AlphaTransporter : public DataPool |
Komazawa_sun | 0:2c82568e1790 | 29 | { |
Komazawa_sun | 0:2c82568e1790 | 30 | public: |
Komazawa_sun | 0:2c82568e1790 | 31 | AlphaTransporter(); |
Komazawa_sun | 0:2c82568e1790 | 32 | |
Komazawa_sun | 0:2c82568e1790 | 33 | virtual bool set(); |
Komazawa_sun | 0:2c82568e1790 | 34 | virtual void write(int index_num, int data); |
Komazawa_sun | 0:2c82568e1790 | 35 | virtual int read(int index_num); |
Komazawa_sun | 0:2c82568e1790 | 36 | virtual void reset(); |
Komazawa_sun | 0:2c82568e1790 | 37 | |
Komazawa_sun | 0:2c82568e1790 | 38 | AlphaPool pool; |
Komazawa_sun | 0:2c82568e1790 | 39 | |
Komazawa_sun | 0:2c82568e1790 | 40 | private: |
Komazawa_sun | 0:2c82568e1790 | 41 | I2CTransporter i2c; |
Komazawa_sun | 0:2c82568e1790 | 42 | }; |
Komazawa_sun | 0:2c82568e1790 | 43 | |
Komazawa_sun | 0:2c82568e1790 | 44 | #endif |