TwiceAsNice
2019-02-18
|
#include <mgc.h>
Public Member Functions | |
char const * | name () const |
virtual IOByte | opCode () const =0 |
Returning the character operation code of the command. More... | |
virtual IOMode | opMode () const =0 |
Returning the operation mode for this command. More... | |
Protected Member Functions | |
virtual IOResult | ask (MGenDevice &root) |
Basic verifications to call before running the actual command implementation. More... | |
MGC (IOBuffer query, IOBuffer answer) | |
virtual | ~MGC () |
Protected Attributes | |
IOBuffer | query |
IOBuffer | answer |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
Basic verifications to call before running the actual command implementation.
Reimplemented in MGIO_READ_DISPLAY_FRAME, MGIO_INSERT_BUTTON, MGCMD_READ_ADCS, MGCMD_GET_FW_VERSION, MGCMD_NOP1, MGCP_ENTER_NORMAL_MODE, and MGCP_QUERY_DEVICE.
|
inline |
|
pure virtual |
Returning the character operation code of the command.
Implemented in MGCMD_GET_FW_VERSION, MGCMD_NOP1, MGCMD_READ_ADCS, MGCP_ENTER_NORMAL_MODE, MGCP_QUERY_DEVICE, MGIO_INSERT_BUTTON, and MGIO_READ_DISPLAY_FRAME.
|
pure virtual |
Returning the operation mode for this command.
Implemented in MGCMD_GET_FW_VERSION, MGCMD_NOP1, MGCMD_READ_ADCS, MGCP_ENTER_NORMAL_MODE, MGCP_QUERY_DEVICE, MGIO_INSERT_BUTTON, and MGIO_READ_DISPLAY_FRAME.
|
protected |
|
protected |