Basic INA219, with set calibaration and functions for reading raw register and write to register
INA219.h
- Committer:
- tsoic
- Date:
- 2015-11-20
- Revision:
- 0:cdfbda214bee
- Child:
- 1:6b9f92e99dd7
File content as of revision 0:cdfbda214bee:
#ifndef INA219_H #define INA219_H #include "mbed.h" #include "I2CR.h" class INA219 { public: INA219(); uint16_t readRawReg(uint8_t); uint8_t write_reg(uint8_t, uint8_t); private: I2CR i2cr; uint8_t dt[4]; void calibration(); }; #endif