commanding of HeaterHandler and GpioIF working

This commit is contained in:
2021-02-01 11:17:20 +01:00
parent 560e538f62
commit fd1e4f3473
20 changed files with 474 additions and 264 deletions

View File

@ -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(&parameter);
memoryAddress.setNext(&parameterValueInfo);
}
SerializeElement<uint16_t> memoryAddress;
SerializeElement<SerialFixedArrayListAdapter<uint8_t, MAX_SIZE, uint8_t>> parameterValueInfo;