2017 hongo b team
Fork of Alpha_Apper by
ApprI2CMaster.h@0:11209e14c06c, 2017-09-08 (annotated)
- Committer:
- Komazawa_sun
- Date:
- Fri Sep 08 03:27:32 2017 +0000
- Revision:
- 0:11209e14c06c
- Child:
- 1:16f3ffabd868
????; ;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Komazawa_sun | 0:11209e14c06c | 1 | #ifndef APPR_I2C_MASTER_H |
Komazawa_sun | 0:11209e14c06c | 2 | #define APPR_I2C_MASTER_H |
Komazawa_sun | 0:11209e14c06c | 3 | |
Komazawa_sun | 0:11209e14c06c | 4 | #include "Alpha_ApprI2C_ID.h" |
Komazawa_sun | 0:11209e14c06c | 5 | #include "I2CTransporter.h" |
Komazawa_sun | 0:11209e14c06c | 6 | |
Komazawa_sun | 0:11209e14c06c | 7 | |
Komazawa_sun | 0:11209e14c06c | 8 | class ApprI2CMaster |
Komazawa_sun | 0:11209e14c06c | 9 | { |
Komazawa_sun | 0:11209e14c06c | 10 | public: |
Komazawa_sun | 0:11209e14c06c | 11 | ApprI2CMaster(alpha_a::ID my_id_, alpha_a::f_type my_type_, int addr_, I2C *master_); |
Komazawa_sun | 0:11209e14c06c | 12 | void write(uint8_t data); |
Komazawa_sun | 0:11209e14c06c | 13 | int read(); |
Komazawa_sun | 0:11209e14c06c | 14 | |
Komazawa_sun | 0:11209e14c06c | 15 | private: |
Komazawa_sun | 0:11209e14c06c | 16 | alpha_a::ID _my_id; |
Komazawa_sun | 0:11209e14c06c | 17 | alpha_a::f_type _my_type; |
Komazawa_sun | 0:11209e14c06c | 18 | I2C *_master; |
Komazawa_sun | 0:11209e14c06c | 19 | int _addr; |
Komazawa_sun | 0:11209e14c06c | 20 | |
Komazawa_sun | 0:11209e14c06c | 21 | |
Komazawa_sun | 0:11209e14c06c | 22 | }; |
Komazawa_sun | 0:11209e14c06c | 23 | |
Komazawa_sun | 0:11209e14c06c | 24 | #endif |