2017 hongo b team

Fork of Alpha_Apper by taiyou komazawa

ApprI2CMaster.h

Committer:
Komazawa_sun
Date:
2017-09-11
Revision:
1:16f3ffabd868
Parent:
0:11209e14c06c

File content as of revision 1:16f3ffabd868:

#ifndef APPR_I2C_MASTER_H
#define APPR_I2C_MASTER_H

#include "Beta_ApprI2C_ID.h"
#include "I2CTransporter.h"


class ApprI2CMaster
{
    public:
        ApprI2CMaster(beta_a::ID my_id_, beta_a::f_type my_type_, int addr_, I2C *master_);
        void write(uint8_t data);
        int read();
        
    private:
        beta_a::ID _my_id;
        beta_a::f_type _my_type;
        I2C *_master;
        int _addr; 
        int res_data;
        
};

#endif