Tactility/Boards/Simulator/Source/hal/SimulatorPower.h
Ken Van Hoeylandt 103588948f
Implement forgetting WiFi APs (#116)
.. and fix the simulator build
2024-12-09 23:37:21 +01:00

26 lines
592 B
C++

#pragma once
#include "hal/Power.h"
#include <memory>
using namespace tt::hal;
class SimulatorPower : public Power {
bool allowedToCharge = false;
public:
SimulatorPower() {}
~SimulatorPower() {}
bool supportsMetric(MetricType type) const override;
bool getMetric(Power::MetricType type, Power::MetricData& data) override;
bool supportsChargeControl() const { return true; }
bool isAllowedToCharge() const { return allowedToCharge; }
void setAllowedToCharge(bool canCharge) { allowedToCharge = canCharge; }
};
std::shared_ptr<Power> simulatorPower();