2017 hongo b team

Dependents:   I2C_slave

ApprI2CSlave.h

Committer:
Komazawa_sun
Date:
2017-09-08
Revision:
1:946468f68668
Parent:
0:4eb718005c1b

File content as of revision 1:946468f68668:

#ifndef APPR_I2C_SLAVE_H
#define APPR_I2C_SLAVE_H

#include "mbed.h"
#include "Alpha_ApprI2C_ID.h"


class ApprI2CSlave
{
    public:
        ApprI2CSlave(alpha_a::ID my_id_, alpha_a::f_type my_type_, int addr_, I2CSlave *slave_);
        void write(uint8_t data);
        int read();
        
    private:
        alpha_a::ID _my_id;
        alpha_a::f_type _my_type;
        I2CSlave *_slave;
        int _my_addr; 
        int res_data;
        
        
};

#endif