#ifndef _NGKH_I2C_HPP_
#define _NGKH_I2C_HPP_
#include <string>
#include "ngkh_i2c.h"
namespace ngkh {
class I2cDev {
public:
// Constructors/Destructors
explicit I2cDev(const std::string i2cDeviceFilePath, uint8_t devAddr);
~I2cDev(void);
// Methods
void write(uint8_t regAddr, uint8_t data);
uint8_t read(uint8_t regAddr);
private:
// Static members
static unsigned int _numDevices;
// Private members
ngkh_i2cDev_t *_i2cDev;
};
} // End of "namespace ngkh"
#endif