start implementing the PUS Service
EIVE/eive-obsw/pipeline/pr-develop This commit looks good Details

This commit is contained in:
Robin Müller 2022-12-14 11:29:32 +01:00
parent 5d67b896aa
commit ec02332615
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
2 changed files with 15 additions and 1 deletions

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);