tortuga DataLogging Library: battery, speed, time, average...

Dependents:   TORTUGA_BLE

Fork of DataLogging by aapje monkey

BatteryState.h

Committer:
ptuytsch
Date:
2016-07-18
Revision:
6:9079496c6e25
Parent:
4:f91f45d52f9b

File content as of revision 6:9079496c6e25:

#ifndef BATTERYSTATE_H
#define BATTERYSTATE_H
#include "mbed.h"

class BatteryState{

public:
    typedef enum batteryType {
        Battery12V=0,
        Battery48V
    } batteryType;

    BatteryState(PinName pin, batteryType batType);
    uint8_t getBatteryPercentage();
    
    
protected:
    AnalogIn batteryPin;
    batteryType type;
};
    
#endif