47 lines
1.7 KiB
C++
47 lines
1.7 KiB
C++
|
#include "SyrlinksDummy.h"
|
||
|
#include <mission/devices/devicedefinitions/SyrlinksDefinitions.h>
|
||
|
|
||
|
SyrlinksDummy::SyrlinksDummy(object_id_t objectId, object_id_t comif, CookieIF *comCookie)
|
||
|
: DeviceHandlerBase(objectId, comif, comCookie) {}
|
||
|
|
||
|
SyrlinksDummy::~SyrlinksDummy() {}
|
||
|
|
||
|
void SyrlinksDummy::doStartUp() {}
|
||
|
|
||
|
void SyrlinksDummy::doShutDown() {}
|
||
|
|
||
|
ReturnValue_t SyrlinksDummy::buildNormalDeviceCommand(DeviceCommandId_t *id) {
|
||
|
return NOTHING_TO_SEND;
|
||
|
}
|
||
|
|
||
|
ReturnValue_t SyrlinksDummy::buildTransitionDeviceCommand(DeviceCommandId_t *id) {
|
||
|
return NOTHING_TO_SEND;
|
||
|
}
|
||
|
|
||
|
ReturnValue_t SyrlinksDummy::buildCommandFromCommand(DeviceCommandId_t deviceCommand,
|
||
|
const uint8_t *commandData,
|
||
|
size_t commandDataLen) {
|
||
|
return RETURN_OK;
|
||
|
}
|
||
|
|
||
|
ReturnValue_t SyrlinksDummy::scanForReply(const uint8_t *start, size_t len,
|
||
|
DeviceCommandId_t *foundId, size_t *foundLen) {
|
||
|
return RETURN_OK;
|
||
|
}
|
||
|
|
||
|
ReturnValue_t SyrlinksDummy::interpretDeviceReply(DeviceCommandId_t id, const uint8_t *packet) {
|
||
|
return RETURN_OK;
|
||
|
}
|
||
|
|
||
|
void SyrlinksDummy::fillCommandAndReplyMap() {
|
||
|
}
|
||
|
|
||
|
uint32_t SyrlinksDummy::getTransitionDelayMs(Mode_t modeFrom, Mode_t modeTo) { return 500; }
|
||
|
|
||
|
ReturnValue_t SyrlinksDummy::initializeLocalDataPool(localpool::DataPool& localDataPoolMap,
|
||
|
LocalDataPoolManager& poolManager) {
|
||
|
localDataPoolMap.emplace(syrlinks::TEMP_BASEBAND_BOARD, new PoolEntry<float>({0}));
|
||
|
localDataPoolMap.emplace(syrlinks::TEMP_POWER_AMPLIFIER, new PoolEntry<float>({0}));
|
||
|
return HasReturnvaluesIF::RETURN_OK;
|
||
|
}
|