#ifndef POWERMANAGER #define POWERMANAGER #include "Arduino.h" #include "definition.h" class PowerManager { friend class SAB; public: enum PowerType { BATTERY = 0, USB }; //Data structure for the battery info struct PowerInfo { PowerType powerType; unsigned char level; }; ~PowerManager(); PowerManager::PowerInfo getPowerInfo(const uint16_t nbOfMeasures = 5) const; protected: PowerManager(); private: }; #endif //POWERMANAGER_H