eive-obsw/dummies/SusDummy.cpp

45 lines
1.6 KiB
C++
Raw Normal View History

2022-06-16 08:26:40 +02:00
#include "SusDummy.h"
SusDummy::SusDummy(object_id_t objectId, object_id_t comif, CookieIF *comCookie)
: DeviceHandlerBase(objectId, comif, comCookie), susSet(this) {}
SusDummy::~SusDummy() {}
2023-03-13 18:29:22 +01:00
void SusDummy::doStartUp() { setMode(MODE_NORMAL); }
2022-06-16 08:26:40 +02:00
2023-03-13 18:29:22 +01:00
void SusDummy::doShutDown() { setMode(MODE_OFF); }
2022-06-16 08:26:40 +02:00
ReturnValue_t SusDummy::buildNormalDeviceCommand(DeviceCommandId_t *id) { return NOTHING_TO_SEND; }
ReturnValue_t SusDummy::buildTransitionDeviceCommand(DeviceCommandId_t *id) {
return NOTHING_TO_SEND;
2022-06-16 08:26:40 +02:00
}
ReturnValue_t SusDummy::buildCommandFromCommand(DeviceCommandId_t deviceCommand,
const uint8_t *commandData, size_t commandDataLen) {
2022-08-24 17:27:47 +02:00
return returnvalue::OK;
2022-06-16 08:26:40 +02:00
}
ReturnValue_t SusDummy::scanForReply(const uint8_t *start, size_t len, DeviceCommandId_t *foundId,
size_t *foundLen) {
return returnvalue::OK;
2022-08-26 14:28:06 +02:00
}
2022-06-16 08:26:40 +02:00
ReturnValue_t SusDummy::interpretDeviceReply(DeviceCommandId_t id, const uint8_t *packet) {
return returnvalue::OK;
2022-06-16 08:26:40 +02:00
}
void SusDummy::fillCommandAndReplyMap() {}
2022-06-16 08:26:40 +02:00
uint32_t SusDummy::getTransitionDelayMs(Mode_t modeFrom, Mode_t modeTo) { return 500; }
2022-06-16 08:26:40 +02:00
ReturnValue_t SusDummy::initializeLocalDataPool(localpool::DataPool &localDataPoolMap,
LocalDataPoolManager &poolManager) {
2023-02-28 19:14:15 +01:00
localDataPoolMap.emplace(susMax1227::SusPoolIds::TEMPERATURE_C,
new PoolEntry<float>({0}, 1, true));
localDataPoolMap.emplace(susMax1227::SusPoolIds::CHANNEL_VEC,
2023-02-24 10:21:53 +01:00
new PoolEntry<uint16_t>({2603, 781, 2760, 2048, 4056, 0}, true));
2022-06-16 08:26:40 +02:00
2022-12-01 15:56:55 +01:00
return returnvalue::OK;
2022-06-16 08:26:40 +02:00
}