28 lines
1.1 KiB
C++
28 lines
1.1 KiB
C++
#ifndef FSFW_DEVICEHANDLERS_DEVICEHANDLERTHERMALSET_H_
|
|
#define FSFW_DEVICEHANDLERS_DEVICEHANDLERTHERMALSET_H_
|
|
|
|
#include "../datapoollocal/LocalPoolVariable.h"
|
|
#include "../datapoollocal/StaticLocalDataSet.h"
|
|
#include "DeviceHandlerIF.h"
|
|
|
|
class DeviceHandlerThermalSet : public StaticLocalDataSet<2> {
|
|
public:
|
|
DeviceHandlerThermalSet(HasLocalDataPoolIF* hkOwner, ThermalStateCfg cfg)
|
|
: DeviceHandlerThermalSet(hkOwner->getObjectId(), cfg) {}
|
|
|
|
DeviceHandlerThermalSet(object_id_t deviceHandler, ThermalStateCfg cfg)
|
|
: StaticLocalDataSet(sid_t(deviceHandler, cfg.thermalSetId)),
|
|
thermalStatePoolId(cfg.thermalStatePoolId),
|
|
heaterRequestPoolId(cfg.thermalRequestPoolId) {}
|
|
|
|
const lp_id_t thermalStatePoolId;
|
|
const lp_id_t heaterRequestPoolId;
|
|
|
|
lp_var_t<DeviceHandlerIF::dh_thermal_state_t> thermalState =
|
|
lp_var_t<DeviceHandlerIF::dh_thermal_state_t>(sid.objectId, thermalStatePoolId, this);
|
|
lp_var_t<DeviceHandlerIF::dh_heater_request_t> heaterRequest =
|
|
lp_var_t<DeviceHandlerIF::dh_heater_request_t>(sid.objectId, heaterRequestPoolId, this);
|
|
};
|
|
|
|
#endif /* FSFW_DEVICEHANDLERS_DEVICEHANDLERTHERMALSET_H_ */
|