Select Git revision
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Command.m 116.42 KiB
% EV3 command construction
%
% Methods::
% Command Constructor, creates an empty command object
% delete Destructor, clears the command object
%
% addHeaderSystem Adds a system header to the command object
% addHeaderSystemReply Adds a system header with reply to the command object
% addHeaderDirect Adds a direct header to the command object
% addHeaderDirectReply Adds a direct header with reply to the command object
% addLength Adds the length of the msg to the front of the command object
% addSystemCommand Adds a system command to the command object
% addDirectCommand Adds a direct command to the command object
%
% checkForError @MMI Checks error byte in received package
% isCorrupt @MMI Checks whether reply packet is corrupt
%
% clear Clears the command msg
% display Displays the command msg (decimal)
% displayHex Displays the command msg (hex)
%
% LC0 Adds a local constant 0 to the command object
% LC1 Adds a local constant 1 to the command object
% LC2 Adds a local constant 2 to the command object
% LC4 Adds a local constant 4 to the command object
% LV0 Adds a local variable 0 to the command object
% GV0 Adds a global variable 0 to the command object
% LCS Adds a local constant string to the command object
%
% addValue Adds a numerical value to the command object
% addArray Adds a numerical array to the command object
% addString Adds a string to the command object
% addLCSString Adds a LCS string to the command object
%
% LONGToBytes Adds a LONGToBytes to the command object
% WORDToBytes Adds a WORDToBytes to the command object
% BYTEToBytes Adds a BYTEToBytes to the command object
%
% PROGRAMHeader Adds a PROGRAMHeader to the command object
% addFileSize Adds the filesize to the command object
% VMTHREADHeader Adds a VMTHREADHeader to the command object
% SUBCALLHeader Adds a SUBCALLHeader to the command object
% BLOCKHeader Adds a BLOCKHeader to the command object
% GenerateByteCode Prints the command message to a file
%
% opNOP Adds a opNOP opcode to the command object
% opOBJECT_END Adds a opOBJECT_END opcode to the command object
%
% opJR Adds a opJR opcode to the command object
%
% opUI_FLUSH Adds a opUI_FLUSH opcode to the command object
%
% opUI_READ_GET_VBATT Adds a opUI_READ opcode with a GET_VBATT subcode to the command object
% opUI_READ_GET_LBATT Adds a opUI_READ opcode with a GET_LBATT subcode to the command object
%
% opUI_WRITE_PUT_STRING Adds a opUI_WRITE opcode with a PUT_STRING subcode to the command object
% opUI_WRITE_INIT_RUN Adds a opUI_WRITE opcode with a INIT_RUN subcode to the command object
% opUI_WRITE_LED Adds a opUI_WRITE opcode with a LED subcode to the command object
%
% opUI_DRAW_UPDATE Adds a opUI_DRAW opcode with a UPDATE subcode to the command object
% opUI_DRAW_CLEAN Adds a opUI_DRAW opcode with a CLEAN subcode to the command object
% opUI_DRAW_PIXEL Adds a opUI_DRAW opcode with a PIXEL subcode to the command object
% opUI_DRAW_LINE Adds a opUI_DRAW opcode with a LINE subcode to the command object
% opUI_DRAW_CIRCLE Adds a opUI_DRAW opcode with a CIRCLE subcode to the command object
% opUI_DRAW_TEXT Adds a opUI_DRAW opcode with a TEXT subcode to the command object
% opUI_DRAW_VALUE Adds a opUI_DRAW opcode with a VALUE subcode to the command object
% opUI_DRAW_FILLRECT Adds a opUI_DRAW opcode with a FILLRECT subcode to the command object
% opUI_DRAW_RECT Adds a opUI_DRAW opcode with a RECT subcode to the command object
% opUI_DRAW_INVERSERECT Adds a opUI_DRAW opcode with a INVERSERECT subcode to the command object
% opUI_DRAW_SELECT_FONT Adds a opUI_DRAW opcode with a SELECT_FONT subcode to the command object