2020-12-01 18:55:53 +01:00
|
|
|
#ifndef FSFW_DEVICEHANDLERS_DEVICEHANDLERTHERMALSET_H_
|
|
|
|
#define FSFW_DEVICEHANDLERS_DEVICEHANDLERTHERMALSET_H_
|
|
|
|
|
|
|
|
#include "DeviceHandlerIF.h"
|
|
|
|
#include "../datapoollocal/StaticLocalDataSet.h"
|
|
|
|
#include "../datapoollocal/LocalPoolVariable.h"
|
|
|
|
|
|
|
|
|
|
|
|
class DeviceHandlerThermalSet: public StaticLocalDataSet<2> {
|
|
|
|
public:
|
|
|
|
|
|
|
|
DeviceHandlerThermalSet(HasLocalDataPoolIF* hkOwner, uint32_t setId =
|
|
|
|
DeviceHandlerIF::DEFAULT_THERMAL_SET_ID,
|
|
|
|
lp_id_t thermalStateId =
|
|
|
|
DeviceHandlerIF::DEFAULT_THERMAL_STATE_POOL_ID,
|
|
|
|
lp_id_t heaterRequestId =
|
|
|
|
DeviceHandlerIF::DEFAULT_THERMAL_HEATING_REQUEST_POOL_ID):
|
2021-01-12 14:08:51 +01:00
|
|
|
DeviceHandlerThermalSet(hkOwner->getObjectId(), setId,
|
2020-12-01 18:55:53 +01:00
|
|
|
thermalStateId, heaterRequestId) {}
|
|
|
|
|
|
|
|
DeviceHandlerThermalSet(object_id_t deviceHandler, uint32_t setId =
|
|
|
|
DeviceHandlerIF::DEFAULT_THERMAL_SET_ID,
|
|
|
|
lp_id_t thermalStateId =
|
|
|
|
DeviceHandlerIF::DEFAULT_THERMAL_STATE_POOL_ID,
|
|
|
|
lp_id_t thermalStateRequestId =
|
|
|
|
DeviceHandlerIF::DEFAULT_THERMAL_HEATING_REQUEST_POOL_ID):
|
|
|
|
StaticLocalDataSet(sid_t(deviceHandler, setId)),
|
|
|
|
thermalStatePoolId(thermalStateId),
|
2020-12-01 19:12:40 +01:00
|
|
|
heaterRequestPoolId(thermalStateRequestId) {}
|
2020-12-01 18:55:53 +01:00
|
|
|
|
|
|
|
const lp_id_t thermalStatePoolId;
|
2020-12-01 19:12:40 +01:00
|
|
|
const lp_id_t heaterRequestPoolId;
|
2020-12-01 18:55:53 +01:00
|
|
|
|
|
|
|
lp_var_t<DeviceHandlerIF::dh_thermal_state_t> thermalState =
|
|
|
|
lp_var_t<DeviceHandlerIF::dh_thermal_state_t>(
|
|
|
|
thermalStatePoolId, sid.objectId, this);
|
|
|
|
lp_var_t<DeviceHandlerIF::dh_heater_request_t> heaterRequest =
|
|
|
|
lp_var_t<DeviceHandlerIF::dh_heater_request_t>(
|
2020-12-01 19:12:40 +01:00
|
|
|
heaterRequestPoolId, sid.objectId, this);
|
2020-12-01 18:55:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* FSFW_DEVICEHANDLERS_DEVICEHANDLERTHERMALSET_H_ */
|