A lot of new features and tweaks #12

Merged
muellerr merged 17 commits from mueller_framework into front_branch 2020-07-08 18:49:10 +02:00
2 changed files with 10 additions and 10 deletions
Showing only changes of commit 684b56ac88 - Show all commits

View File

@ -12,9 +12,10 @@
Service2DeviceAccess::Service2DeviceAccess(object_id_t objectId, Service2DeviceAccess::Service2DeviceAccess(object_id_t objectId,
uint16_t apid, uint8_t serviceId, object_id_t tcSource, uint16_t apid, uint8_t serviceId, object_id_t tcSource,
object_id_t tmDestination): object_id_t tmDestination, uint8_t numberOfParallelCommands,
uint16_t commandTimeoutSeconds):
CommandingServiceBase(objectId, apid, serviceId, CommandingServiceBase(objectId, apid, serviceId,
NUM_OF_PARALLEL_COMMANDS, COMMAND_TIMEOUT_SECONDS, numberOfParallelCommands, commandTimeoutSeconds,
tcSource, tmDestination) {} tcSource, tmDestination) {}
Service2DeviceAccess::~Service2DeviceAccess() {} Service2DeviceAccess::~Service2DeviceAccess() {}

View File

@ -14,10 +14,10 @@
* This service provides the capability to communicate with devices in their * This service provides the capability to communicate with devices in their
* native protocols with raw commands through the DeviceHandlerIF. * native protocols with raw commands through the DeviceHandlerIF.
* *
* This is a gateway service. It relays device commands using the software bus. * This is a gateway service. It relays device commands to the software bus.
* This service is very closely tied to the CommandingServiceBase * This service is very closely tied to the CommandingServiceBase
* template class. There is constant interaction between this Service Base und * template class.
* a Subclass like this service *
* There are 4 adaption points for component implementation through the * There are 4 adaption points for component implementation through the
* CommandingServiceBase. * CommandingServiceBase.
* *
@ -37,11 +37,10 @@ class Service2DeviceAccess : public CommandingServiceBase,
public: public:
Service2DeviceAccess(object_id_t objectId, uint16_t apid, Service2DeviceAccess(object_id_t objectId, uint16_t apid,
uint8_t serviceId, object_id_t tcSource, uint8_t serviceId, object_id_t tcSource,
object_id_t tmDestination); object_id_t tmDestination, uint8_t numberOfParallelCommands = 4,
uint16_t commandTimeoutSeconds = 60);
virtual ~Service2DeviceAccess(); virtual ~Service2DeviceAccess();
static constexpr uint8_t NUM_OF_PARALLEL_COMMANDS = 4;
static constexpr uint16_t COMMAND_TIMEOUT_SECONDS = 60;
protected: protected:
//! CommandingServiceBase (CSB) abstract functions. See CSB documentation. //! CommandingServiceBase (CSB) abstract functions. See CSB documentation.
ReturnValue_t isValidSubservice(uint8_t subservice) override; ReturnValue_t isValidSubservice(uint8_t subservice) override;