fsfw/thermal/ThermalModuleIF.h
Ulrich Mohr 575f70ba03 updating code from Flying Laptop
This is the framework of Flying Laptop OBSW version A.13.0.
2018-07-12 16:29:32 +02:00

47 lines
1.0 KiB
C++

#ifndef THERMALMODULEIF_H_
#define THERMALMODULEIF_H_
#include "ThermalComponentIF.h"
class AbstractTemperatureSensor;
class ThermalModuleIF{
public:
enum Strategy {
PASSIVE = 0, ACTIVE_SURVIVAL = 1, ACTIVE_SINGLE = 2, ACTIVE_DUAL = 3,
};
enum StateRequest {
STATE_REQUEST_HEATING = 1, STATE_REQUEST_PASSIVE = 0
};
enum State {
NON_OPERATIONAL = 0, OPERATIONAL = 1, UNKNOWN = 2
};
//TODO, modern gcc complains about const
static const float INVALID_TEMPERATURE = 999;
virtual ~ThermalModuleIF() {
}
virtual void performOperation(uint8_t opCode) = 0;
virtual void performMode(Strategy strategy) = 0;
virtual float getTemperature() = 0;
virtual void registerSensor(AbstractTemperatureSensor *sensor) = 0;
virtual void registerComponent(ThermalComponentIF *component,
ThermalComponentIF::Priority priority) = 0;
virtual ThermalComponentIF *findComponent(object_id_t objectId) = 0;
virtual void setHeating(bool on) = 0;
virtual void setOutputInvalid() = 0;
};
#endif /* THERMALMODULEIF_H_ */