2017 hongo b team

Dependents:   I2C Alpha_Apper I2C

Committer:
Komazawa_sun
Date:
Thu Sep 21 04:37:15 2017 +0000
Revision:
1:8076e33b6ba1
Parent:
0:11209e14c06c
add_apper_body

Who changed what in which revision?

UserRevisionLine numberNew 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 1:8076e33b6ba1 5 #include "mbed.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 1:8076e33b6ba1 20 int res_data;
Komazawa_sun 0:11209e14c06c 21
Komazawa_sun 0:11209e14c06c 22 };
Komazawa_sun 0:11209e14c06c 23
Komazawa_sun 0:11209e14c06c 24 #endif