commanding of HeaterHandler and GpioIF working
This commit is contained in:
@ -186,7 +186,7 @@ private:
|
||||
class RequestFullTableCommand : public SerialLinkedListAdapter<SerializeIF> {
|
||||
public:
|
||||
|
||||
RequestFullTableCommand(uint16_t querySize_, uint8_t tableId) :
|
||||
RequestFullTableCommand(uint16_t querySize_, uint8_t tableId_) :
|
||||
querySize(querySize_), tableId(tableId_) {
|
||||
setLinks();
|
||||
}
|
||||
@ -337,8 +337,8 @@ private:
|
||||
void setLinks() {
|
||||
setStart(&action);
|
||||
action.setNext(&tableId);
|
||||
tableId.setNext(&tableLength);
|
||||
tableLength.setNext(&tableDataset);
|
||||
tableId.setNext(&tableDataset);
|
||||
tableDataset.setNext(&tableDataset);
|
||||
}
|
||||
SerializeElement<uint8_t> action;
|
||||
SerializeElement<uint8_t> tableId;
|
||||
@ -404,11 +404,11 @@ public:
|
||||
* @param parameterSize The size of the parameter.
|
||||
*
|
||||
*/
|
||||
GomspaceSetParamMessage(uint16_t memoryAddress, uint8_t* parameterValue, uint8_t parameterSize) :
|
||||
memoryAddress(memoryAddress) {
|
||||
const uint8_t** buffer;
|
||||
*buffer = parameterValue;
|
||||
parameterInfo.deserialize(buffer, parameterSize, SerializeIF::Endianness::BIG);
|
||||
GomspaceSetParamMessage(uint16_t memoryAddress, const uint8_t** parameterValue,
|
||||
uint8_t parameterSize) :
|
||||
memoryAddress(memoryAddress) {
|
||||
size_t size = parameterSize;
|
||||
parameterValueInfo.deSerialize(parameterValue, &size, SerializeIF::Endianness::BIG);
|
||||
setLinks();
|
||||
}
|
||||
|
||||
@ -416,7 +416,7 @@ private:
|
||||
GomspaceSetParamMessage(const FullTableReply &reply);
|
||||
void setLinks() {
|
||||
setStart(&memoryAddress);
|
||||
memoryAddress.setNext(¶meter);
|
||||
memoryAddress.setNext(¶meterValueInfo);
|
||||
}
|
||||
SerializeElement<uint16_t> memoryAddress;
|
||||
SerializeElement<SerialFixedArrayListAdapter<uint8_t, MAX_SIZE, uint8_t>> parameterValueInfo;
|
||||
|
Reference in New Issue
Block a user