Robin Mueller
192c7c6f31
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
63 lines
2.2 KiB
C++
63 lines
2.2 KiB
C++
#include "PcduHandlerDummy.h"
|
|
|
|
#include <mission/devices/devicedefinitions/GomspaceDefinitions.h>
|
|
|
|
PcduHandlerDummy::PcduHandlerDummy(object_id_t objectId, object_id_t comif, CookieIF *comCookie)
|
|
: DeviceHandlerBase(objectId, comif, comCookie), dummySwitcher(objectId, 18, 18, false) {}
|
|
|
|
PcduHandlerDummy::~PcduHandlerDummy() {}
|
|
|
|
void PcduHandlerDummy::doStartUp() { setMode(MODE_NORMAL); }
|
|
|
|
void PcduHandlerDummy::doShutDown() { setMode(MODE_OFF); }
|
|
|
|
ReturnValue_t PcduHandlerDummy::buildNormalDeviceCommand(DeviceCommandId_t *id) {
|
|
return NOTHING_TO_SEND;
|
|
}
|
|
|
|
ReturnValue_t PcduHandlerDummy::buildTransitionDeviceCommand(DeviceCommandId_t *id) {
|
|
return NOTHING_TO_SEND;
|
|
}
|
|
|
|
ReturnValue_t PcduHandlerDummy::buildCommandFromCommand(DeviceCommandId_t deviceCommand,
|
|
const uint8_t *commandData,
|
|
size_t commandDataLen) {
|
|
return returnvalue::OK;
|
|
}
|
|
|
|
ReturnValue_t PcduHandlerDummy::scanForReply(const uint8_t *start, size_t len,
|
|
DeviceCommandId_t *foundId, size_t *foundLen) {
|
|
return returnvalue::OK;
|
|
}
|
|
|
|
ReturnValue_t PcduHandlerDummy::interpretDeviceReply(DeviceCommandId_t id, const uint8_t *packet) {
|
|
return returnvalue::OK;
|
|
}
|
|
|
|
void PcduHandlerDummy::fillCommandAndReplyMap() {}
|
|
|
|
uint32_t PcduHandlerDummy::getTransitionDelayMs(Mode_t modeFrom, Mode_t modeTo) { return 500; }
|
|
|
|
ReturnValue_t PcduHandlerDummy::initializeLocalDataPool(localpool::DataPool &localDataPoolMap,
|
|
LocalDataPoolManager &poolManager) {
|
|
return returnvalue::OK;
|
|
}
|
|
|
|
ReturnValue_t PcduHandlerDummy::sendSwitchCommand(power::Switch_t switchNr, ReturnValue_t onOff) {
|
|
return dummySwitcher.sendSwitchCommand(switchNr, onOff);
|
|
}
|
|
|
|
ReturnValue_t PcduHandlerDummy::sendFuseOnCommand(uint8_t fuseNr) {
|
|
return dummySwitcher.sendFuseOnCommand(fuseNr);
|
|
}
|
|
|
|
ReturnValue_t PcduHandlerDummy::getSwitchState(power::Switch_t switchNr) const {
|
|
return dummySwitcher.getSwitchState(switchNr);
|
|
}
|
|
|
|
ReturnValue_t PcduHandlerDummy::getFuseState(uint8_t fuseNr) const {
|
|
return dummySwitcher.getFuseState(fuseNr);
|
|
}
|
|
|
|
uint32_t PcduHandlerDummy::getSwitchDelayMs(void) const { return dummySwitcher.getSwitchDelayMs(); }
|