Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
command_decoder.h
00001 00002 enum KeywordCode {CALLIB,GOTO,STEP,ID}; 00003 enum TokenType { KEYWORD, NUMBER, STRING}; 00004 00005 #define MAX_TOKEN_NR 2 00006 #define MAX_KEYWORD_STRING_LTH 15 00007 #define MAX_KEYWORD_NR 4 00008 00009 union TokenValue 00010 { 00011 enum KeywordCode eKeyword; 00012 unsigned int uiNumber; 00013 char *pcString; 00014 }; 00015 00016 struct Token 00017 { 00018 enum TokenType eType; 00019 union TokenValue uValue; 00020 }; 00021 00022 struct Keyword 00023 { 00024 enum KeywordCode eCode; 00025 char cString[MAX_KEYWORD_STRING_LTH + 1]; 00026 }; 00027 00028 00029 extern struct Keyword asKeywordList[MAX_KEYWORD_NR]; 00030 extern struct Token asToken[MAX_TOKEN_NR]; 00031 extern unsigned char ucTokenNr; 00032 00033 void DecodeMsg(char *pcString);
Generated on Tue Aug 16 2022 02:15:48 by
1.7.2