Persistent TM Store #320

Merged
muellerr merged 109 commits from mueller/pus-15-tm-storage into develop 2023-02-24 19:03:39 +01:00
2 changed files with 15 additions and 1 deletions
Showing only changes of commit ec02332615 - Show all commits

View File

@ -8,7 +8,17 @@ Service15TmStorage::Service15TmStorage(object_id_t objectId, uint16_t apid,
: CommandingServiceBase(objectId, apid, "PUS Service 15", 15, numParallelCommands,
commandTimeoutSecs, queueDepth) {}
ReturnValue_t Service15TmStorage::isValidSubservice(uint8_t subservice) { return OK; }
ReturnValue_t Service15TmStorage::isValidSubservice(uint8_t subservice) {
switch (subservice) {
case(Subservices::START_BY_TIME_RANGE_RETRIEVAL): {
return OK;
}
case(Subservices::DELETE_UP_TO): {
return OK;
}
}
return FAILED;
}
ReturnValue_t Service15TmStorage::getMessageQueueAndObject(uint8_t subservice,
const uint8_t *tcData, size_t tcDataLen,

View File

@ -5,6 +5,10 @@
class Service15TmStorage : public CommandingServiceBase {
public:
enum Subservices: uint8_t {
START_BY_TIME_RANGE_RETRIEVAL = 9,
DELETE_UP_TO = 11
};
explicit Service15TmStorage(object_id_t objectId, uint16_t apid, uint8_t numParallelCommands,
uint16_t commandTimeoutSecs, size_t queueDepth);