2022-02-10 14:24:34 +01:00
|
|
|
#include "PayloadPcduHandler.h"
|
|
|
|
|
|
|
|
PayloadPcduHandler::PayloadPcduHandler(object_id_t objectId, object_id_t comIF, CookieIF* cookie)
|
2022-02-10 16:05:36 +01:00
|
|
|
: DeviceHandlerBase(objectId, comIF, cookie), state(States::ON) {}
|
2022-02-10 14:24:34 +01:00
|
|
|
|
2022-02-10 16:05:36 +01:00
|
|
|
void PayloadPcduHandler::doStartUp() {
|
|
|
|
switch(state) {
|
|
|
|
case(States::ADC_OFF_PL_OFF): {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case(States::SWITCH_ON_RELAY): {
|
|
|
|
// If necessary, check whether a certain amount of time has elapaed
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case(States::ADC_OFF_PL_OFF): {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case(States::SWITCH_ON_HPA): {
|
|
|
|
// If necessary, check whether a certain amount of time has elapaed
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-02-10 14:24:34 +01:00
|
|
|
|
|
|
|
void PayloadPcduHandler::doShutDown() {}
|
|
|
|
|
|
|
|
ReturnValue_t PayloadPcduHandler::buildNormalDeviceCommand(DeviceCommandId_t* id) {
|
|
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
ReturnValue_t PayloadPcduHandler::buildTransitionDeviceCommand(DeviceCommandId_t* id) {
|
|
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
void PayloadPcduHandler::fillCommandAndReplyMap() {}
|
|
|
|
|
|
|
|
ReturnValue_t PayloadPcduHandler::buildCommandFromCommand(DeviceCommandId_t deviceCommand,
|
|
|
|
const uint8_t* commandData,
|
|
|
|
size_t commandDataLen) {
|
|
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
ReturnValue_t PayloadPcduHandler::scanForReply(const uint8_t* start, size_t remainingSize,
|
|
|
|
DeviceCommandId_t* foundId, size_t* foundLen) {
|
|
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
ReturnValue_t PayloadPcduHandler::interpretDeviceReply(DeviceCommandId_t id,
|
|
|
|
const uint8_t* packet) {
|
|
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
|
|
}
|
|
|
|
|
2022-02-10 15:39:54 +01:00
|
|
|
uint32_t PayloadPcduHandler::getTransitionDelayMs(Mode_t modeFrom, Mode_t modeTo) { return 10000; }
|
2022-02-10 14:24:34 +01:00
|
|
|
|
|
|
|
ReturnValue_t PayloadPcduHandler::initializeLocalDataPool(localpool::DataPool& localDataPoolMap,
|
|
|
|
LocalDataPoolManager& poolManager) {
|
|
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
|
|
}
|