|
USB EPROM/Flash Programmer
|
Defines a command to be run and its response. More...
#include <runner.hpp>
Public Member Functions | |
| bool | responseIsOk () const |
| Returns if response is OK. More... | |
| float | responseAsFloat () const |
| Returns response value as a float point. More... | |
| int | responseAsByte () const |
| Returns response value as a byte. More... | |
| int | responseAsWord () const |
| Returns response value as a word. More... | |
| int | responseAsDWord () const |
| Returns response value as a double word. More... | |
| bool | responseAsBool () const |
| Returns response value as a boolean. More... | |
| void | set (kCmdOpCodeEnum code) |
| Sets the command. More... | |
| void | setFloat (kCmdOpCodeEnum code, float param) |
| Sets the command and the parameters. More... | |
| void | setByte (kCmdOpCodeEnum code, uint8_t param) |
| Sets the command and the parameters. More... | |
| void | setWord (kCmdOpCodeEnum code, uint16_t param) |
| Sets the command and the parameters. More... | |
| void | setDWord (kCmdOpCodeEnum code, uint32_t param) |
| Sets the command and the parameters. More... | |
| void | setBool (kCmdOpCodeEnum code, bool param) |
| Sets the command and the parameters. More... | |
| TRunnerCommand & | operator= (const TRunnerCommand &src) |
| Assign Operator. More... | |
Public Attributes | |
| TCmdOpCode | opcode |
| Opcode of the command. More... | |
| QByteArray | params |
| Parameters of the command (raw bytes). More... | |
| QByteArray | response |
| Response of the command (raw bytes). More... | |
Friends | |
| bool | operator== (const TRunnerCommand &a, const TRunnerCommand &b) |
| Equality Operator. More... | |
Defines a command to be run and its response.
| bool responseIsOk | ( | ) | const |
Returns if response is OK.
| float responseAsFloat | ( | ) | const |
Returns response value as a float point.
| int responseAsByte | ( | ) | const |
Returns response value as a byte.
| int responseAsWord | ( | ) | const |
Returns response value as a word.
| int responseAsDWord | ( | ) | const |
Returns response value as a double word.
| bool responseAsBool | ( | ) | const |
Returns response value as a boolean.
| void set | ( | kCmdOpCodeEnum | code | ) |
Sets the command.
| code | OpCode of the command. |
| void setFloat | ( | kCmdOpCodeEnum | code, |
| float | param | ||
| ) |
Sets the command and the parameters.
| code | OpCode of the command. |
| param | Value of the param. |
| void setByte | ( | kCmdOpCodeEnum | code, |
| uint8_t | param | ||
| ) |
Sets the command and the parameters.
| code | OpCode of the command. |
| param | Value of the param. |
| void setWord | ( | kCmdOpCodeEnum | code, |
| uint16_t | param | ||
| ) |
Sets the command and the parameters.
| code | OpCode of the command. |
| param | Value of the param. |
| void setDWord | ( | kCmdOpCodeEnum | code, |
| uint32_t | param | ||
| ) |
Sets the command and the parameters.
| code | OpCode of the command. |
| param | Value of the param. |
| void setBool | ( | kCmdOpCodeEnum | code, |
| bool | param | ||
| ) |
Sets the command and the parameters.
| code | OpCode of the command. |
| param | Value of the param. |
| TRunnerCommand & operator= | ( | const TRunnerCommand & | src | ) |
|
friend |
Equality Operator.
| a | One object. |
| b | Another object. |
| TCmdOpCode opcode |
Opcode of the command.
| QByteArray params |
Parameters of the command (raw bytes).
| QByteArray response |
Response of the command (raw bytes).