7 #ifndef _FRONIUS_response_H_
8 #define _FRONIUS_response_H_
11 #include <QCoreApplication>
26 unsigned char device_option;
27 unsigned char device_number;
28 unsigned char command;
31 unsigned char buffer[255];
37 unsigned char failedCommand;
38 unsigned char errorInformation;
46 unsigned char ifcType;
47 unsigned char versionMajor;
48 unsigned char versionMinor;
49 unsigned char versionRelease;
50 unsigned char checksum;
57 unsigned char typeIdentification;
65 unsigned char activeInvertor;
75 unsigned char exponent;
90 const unsigned char static HEADER_LENGTH = 7;
struct FRONIUS_response::@0::@3 DeviceType
Structure of data payload when answering to devicetype command.
QVariant value()
Decodes and returns value stored in response.
Response from fronius invertor.
struct FRONIUS_response::@0::@6 Status
Structure of data payload when answering status command.
unsigned char checksum
Returns checksum of the response.
struct FRONIUS_response::@0::@4 ActiveInvertor
Structure of data payload when answering to active invertors command.
bool isChecksumValid()
Check header validity.
struct FRONIUS_response::@0::@5 Value
Structure of data payload when answering command requesting a value.
bool isHeaderValid()
Check header validity.
struct FRONIUS_response::@0::@2 Version
Structure of data payload when answering to version command.
struct FRONIUS_response::@0::@1 Error
Structure of data payload when an error occured.