Implemented first Hangar-Service

Dependencies:   CalibrateMagneto QuaternionMath

Fork of SML2 by TobyRich GmbH

I2CPeripheral.h

Committer:
pvaibhav
Date:
2015-01-13
Revision:
0:943820483318
Child:
5:b9f2f62a8f90

File content as of revision 0:943820483318:

#ifndef _H_I2CPERIPHERAL_H
#define _H_I2CPERIPHERAL_H

#include "mbed.h"

class I2CPeripheral
{
private:
    I2C* mBus;
    uint8_t mAddress;
    
protected:
    void write_reg(const uint8_t reg, const uint8_t val);
    uint8_t read_reg(const uint8_t reg);

public:
    I2CPeripheral(I2C &i2c, const uint8_t address);
};

#endif//_H_I2CPERIPHERAL_H