2017 hongo b team

Dependents:   I2C Alpha_Apper I2C

ApprI2CMaster.h

Committer:
Komazawa_sun
Date:
2017-09-21
Revision:
1:8076e33b6ba1
Parent:
0:11209e14c06c

File content as of revision 1:8076e33b6ba1:

#ifndef APPR_I2C_MASTER_H
#define APPR_I2C_MASTER_H

#include "Alpha_ApprI2C_ID.h"
#include "mbed.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; 
        int res_data;
        
};

#endif