diff --git a/src/fsfw/tmstorage/TmStoreMessage.cpp b/src/fsfw/tmstorage/TmStoreMessage.cpp index 6165df6d..c4bf1355 100644 --- a/src/fsfw/tmstorage/TmStoreMessage.cpp +++ b/src/fsfw/tmstorage/TmStoreMessage.cpp @@ -114,6 +114,11 @@ void TmStoreMessage::setDownlinkContentTimeMessage(CommandMessage* cmd, store_ad cmd->setParameter2(storeId.raw); } +void TmStoreMessage::setStopDownlinkContentMessage(CommandMessage* cmd, store_address_t storeId) { + cmd->setCommand(STOP_DOWNLINK_STORE_CONTENT); + cmd->setParameter2(storeId.raw); +} + uint32_t TmStoreMessage::getAddressLow(CommandMessage* cmd) { return cmd->getParameter(); } uint32_t TmStoreMessage::getAddressHigh(CommandMessage* cmd) { return cmd->getParameter2(); } diff --git a/src/fsfw/tmstorage/TmStoreMessage.h b/src/fsfw/tmstorage/TmStoreMessage.h index 90669335..087818f5 100644 --- a/src/fsfw/tmstorage/TmStoreMessage.h +++ b/src/fsfw/tmstorage/TmStoreMessage.h @@ -21,6 +21,7 @@ class TmStoreMessage { static void setStoreCatalogueReportMessage(CommandMessage* cmd, object_id_t objectId, store_address_t storeId); static void setDownlinkContentTimeMessage(CommandMessage* cmd, store_address_t storeId); + static void setStopDownlinkContentMessage(CommandMessage* cmd, store_address_t storeId); static void setIndexReportMessage(CommandMessage* cmd, store_address_t storeId); static ReturnValue_t setDeleteBlocksMessage(CommandMessage* cmd, uint32_t addressLow, uint32_t addressHigh); @@ -54,6 +55,7 @@ class TmStoreMessage { static const Command_t DOWNLINK_STORE_CONTENT_BLOCKS = MAKE_COMMAND_ID(12); static const Command_t REPORT_INDEX_REQUEST = MAKE_COMMAND_ID(13); static const Command_t INDEX_REPORT = MAKE_COMMAND_ID(14); + static const Command_t STOP_DOWNLINK_STORE_CONTENT = MAKE_COMMAND_ID(15); private: TmStoreMessage();