2016-06-15 23:48:41 +02:00
|
|
|
#ifndef PARAMETERMESSAGE_H_
|
|
|
|
#define PARAMETERMESSAGE_H_
|
|
|
|
|
2020-08-13 20:53:35 +02:00
|
|
|
#include "../ipc/CommandMessage.h"
|
|
|
|
#include "HasParametersIF.h"
|
|
|
|
#include "../storagemanager/StorageManagerIF.h"
|
2016-06-15 23:48:41 +02:00
|
|
|
|
|
|
|
class ParameterMessage {
|
|
|
|
private:
|
|
|
|
ParameterMessage();
|
|
|
|
public:
|
2020-06-17 21:15:19 +02:00
|
|
|
static const uint8_t MESSAGE_ID = messagetypes::PARAMETER;
|
2016-06-15 23:48:41 +02:00
|
|
|
static const Command_t CMD_PARAMETER_LOAD = MAKE_COMMAND_ID( 0x01 );
|
|
|
|
static const Command_t CMD_PARAMETER_DUMP = MAKE_COMMAND_ID( 0x02 );
|
|
|
|
static const Command_t REPLY_PARAMETER_DUMP = MAKE_COMMAND_ID( 0x03 );
|
|
|
|
|
|
|
|
static ParameterId_t getParameterId(const CommandMessage* message);
|
|
|
|
static store_address_t getStoreId(const CommandMessage* message);
|
|
|
|
static void setParameterDumpCommand(CommandMessage* message,
|
|
|
|
ParameterId_t id);
|
|
|
|
static void setParameterDumpReply(CommandMessage* message,
|
|
|
|
ParameterId_t id, store_address_t storageID);
|
|
|
|
static void setParameterLoadCommand(CommandMessage* message,
|
|
|
|
ParameterId_t id, store_address_t storageID);
|
2018-07-12 16:29:32 +02:00
|
|
|
static void clear(CommandMessage* message);
|
2016-06-15 23:48:41 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* PARAMETERMESSAGE_H_ */
|