Revision b4885314 include/amiro/power/ina219.hpp

View differences:

include/amiro/power/ina219.hpp
140 140
        Status() {bus_voltage.value = 0; power = 0;}
141 141
      };
142 142

  
143
    public:
143 144
      enum RegisterAddress {
144 145
        REG_CONFIGURATION = 0x00u,
145 146
        REG_SHUNT_VOLTAGE = 0x01u,
......
149 150
        REG_CALIBRATION = 0x05u
150 151
      };
151 152

  
153
    private:
152 154
      enum RegisterMask {
153 155
        MASK_CONFIGURATION = 0x3FFFu,
154 156
        MASK_CALIBRATION = 0xFFFEu,
......
204 206

  
205 207
      uint8_t reset();
206 208

  
207
  protected:
209
    protected:
208 210
      virtual msg_t main(void);
209 211

  
210
    private:
212
    public:
211 213
      msg_t readRegister(const RegisterAddress reg, uint16_t& dst);
212 214
      msg_t writeRegister(const RegisterAddress reg, const uint16_t& val);
213 215

  
216
    private:
214 217
      static inline INA219::BusVoltage busVoltageReg2uV(const INA219::Driver::BusVoltage reg_val)
215 218
      {
216 219
        INA219::BusVoltage bus_voltage;

Also available in: Unified diff