TwiceAsNice  2019-02-18
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MGC Class Referenceabstract

#include <mgc.h>

Inheritance diagram for MGC:
Inheritance graph
Collaboration diagram for MGC:
Collaboration graph

Public Member Functions

char constname () 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
 

Constructor & Destructor Documentation

◆ MGC()

MGC::MGC ( IOBuffer  query,
IOBuffer  answer 
)
inlineprotected

◆ ~MGC()

virtual MGC::~MGC ( )
inlineprotectedvirtual

Member Function Documentation

◆ ask()

virtual IOResult MGC::ask ( MGenDevice root)
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.

◆ name()

char const* MGC::name ( ) const
inline

◆ opCode()

virtual IOByte MGC::opCode ( ) const
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.

◆ opMode()

virtual IOMode MGC::opMode ( ) const
pure virtual

Member Data Documentation

◆ answer

IOBuffer MGC::answer
protected

◆ query

IOBuffer MGC::query
protected

The documentation for this class was generated from the following file: