2017 hongo b team
Fork of Alpha_Apper by
ApprI2CMaster.h
- Committer:
- Komazawa_sun
- Date:
- 2017-09-08
- Revision:
- 0:11209e14c06c
- Child:
- 1:16f3ffabd868
File content as of revision 0:11209e14c06c:
#ifndef APPR_I2C_MASTER_H #define APPR_I2C_MASTER_H #include "Alpha_ApprI2C_ID.h" #include "I2CTransporter.h" class ApprI2CMaster { public: ApprI2CMaster(alpha_a::ID my_id_, alpha_a::f_type my_type_, int addr_, I2C *master_); void write(uint8_t data); int read(); private: alpha_a::ID _my_id; alpha_a::f_type _my_type; I2C *_master; int _addr; }; #endif