2017 hongo b team
Fork of Alpha_Apper by
Diff: ApprI2CMaster.h
- Revision:
- 0:11209e14c06c
- Child:
- 1:16f3ffabd868
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ApprI2CMaster.h Fri Sep 08 03:27:32 2017 +0000 @@ -0,0 +1,24 @@ +#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 \ No newline at end of file