some adaptions
This commit is contained in:
parent
3b0b474ab6
commit
8e49806057
@ -25,10 +25,14 @@ void ParameterMessage::setParameterDumpReply(CommandMessage* message,
|
||||
}
|
||||
|
||||
void ParameterMessage::setParameterLoadCommand(CommandMessage* message,
|
||||
ParameterId_t id, store_address_t storageID) {
|
||||
ParameterId_t id, store_address_t storeId, uint8_t ptc, uint8_t pfc,
|
||||
uint8_t row, uint8_t column) {
|
||||
message->setCommand(CMD_PARAMETER_LOAD);
|
||||
message->setParameter(id);
|
||||
message->setParameter2(storageID.raw);
|
||||
message->setParameter2(storeId.raw);
|
||||
uint32_t packedParameterSettings = (ptc << 24) | (pfc << 16) |
|
||||
(row << 8) | column;
|
||||
message->setParameter3(packedParameterSettings);
|
||||
}
|
||||
|
||||
void ParameterMessage::clear(CommandMessage* message) {
|
||||
|
@ -21,7 +21,8 @@ public:
|
||||
static void setParameterDumpReply(CommandMessage* message,
|
||||
ParameterId_t id, store_address_t storageID);
|
||||
static void setParameterLoadCommand(CommandMessage* message,
|
||||
ParameterId_t id, store_address_t storageID);
|
||||
ParameterId_t id, store_address_t storeId, uint8_t ptc,
|
||||
uint8_t pfc, uint8_t row, uint8_t column);
|
||||
static void clear(CommandMessage* message);
|
||||
|
||||
};
|
||||
|
@ -97,12 +97,14 @@ public:
|
||||
}
|
||||
template<typename T>
|
||||
void setMatrix(T& member) {
|
||||
this->set(member[0], sizeof(member)/sizeof(member[0]), sizeof(member[0])/sizeof(member[0][0]));
|
||||
this->set(member[0], sizeof(member)/sizeof(member[0]),
|
||||
sizeof(member[0])/sizeof(member[0][0]));
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void setMatrix(const T& member) {
|
||||
this->set(member[0], sizeof(member)/sizeof(member[0]), sizeof(member[0])/sizeof(member[0][0]));
|
||||
this->set(member[0], sizeof(member)/sizeof(member[0]),
|
||||
sizeof(member[0])/sizeof(member[0][0]));
|
||||
}
|
||||
|
||||
ReturnValue_t set(const uint8_t *stream, size_t streamSize,
|
||||
|
Loading…
Reference in New Issue
Block a user