#include "BpxBatteryHandler.h" BpxBatteryHandler::BpxBatteryHandler(object_id_t objectId, object_id_t comIF, CookieIF* comCookie) : DeviceHandlerBase(objectId, comIF, comCookie), hkSet(this), cfgSet(this) {} BpxBatteryHandler::~BpxBatteryHandler() {} void BpxBatteryHandler::doStartUp() {} void BpxBatteryHandler::doShutDown() {} ReturnValue_t BpxBatteryHandler::buildNormalDeviceCommand(DeviceCommandId_t* id) { return HasReturnvaluesIF::RETURN_OK; } ReturnValue_t BpxBatteryHandler::buildTransitionDeviceCommand(DeviceCommandId_t* id) { return HasReturnvaluesIF::RETURN_OK; } void BpxBatteryHandler::fillCommandAndReplyMap() { insertInCommandAndReplyMap(BpxBattery::READ_HK, 1, &hkSet); insertInCommandAndReplyMap(BpxBattery::PING, 1); insertInCommandAndReplyMap(BpxBattery::REBOOT, 1); insertInCommandAndReplyMap(BpxBattery::RESET_COUNTERS, 1); insertInCommandAndReplyMap(BpxBattery::RESTORE_DEFAULT_CONFIG, 1); insertInCommandAndReplyMap(BpxBattery::READ_CONFIG, 1); } ReturnValue_t BpxBatteryHandler::buildCommandFromCommand(DeviceCommandId_t deviceCommand, const uint8_t* commandData, size_t commandDataLen) { return HasReturnvaluesIF::RETURN_OK; } ReturnValue_t BpxBatteryHandler::scanForReply(const uint8_t* start, size_t remainingSize, DeviceCommandId_t* foundId, size_t* foundLen) { return HasReturnvaluesIF::RETURN_OK; } ReturnValue_t BpxBatteryHandler::interpretDeviceReply(DeviceCommandId_t ixd, const uint8_t* packet) { return HasReturnvaluesIF::RETURN_OK; } void BpxBatteryHandler::setNormalDatapoolEntriesInvalid() {} LocalPoolDataSetBase* BpxBatteryHandler::getDataSetHandle(sid_t sid) { return nullptr; } uint32_t BpxBatteryHandler::getTransitionDelayMs(Mode_t modeFrom, Mode_t modeTo) { return 10000; } ReturnValue_t BpxBatteryHandler::initializeLocalDataPool(localpool::DataPool& localDataPoolMap, LocalDataPoolManager& poolManager) { return HasReturnvaluesIF::RETURN_OK; }