Tobias Haegermarck / SerialTerm

Dependents:   RobotArmControl

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SerialTerm.h Source File

SerialTerm.h

00001 class SerialTerm;
00002 
00003 struct SerialTerm_Command
00004 {
00005     char *cmd;
00006     void (*func)(int argc, char **argv, Serial *s);
00007     SerialTerm_Command *next;
00008 };
00009 
00010 class SerialTerm
00011 {
00012 public:
00013     SerialTerm(Serial *s);
00014     
00015     void Tick(void);
00016     void HandleCommand(void);
00017     void Add_Command(char *cmd, void (*func)(int argc, char **argv, Serial *s));
00018     
00019     SerialTerm_Command *First_Command;
00020     
00021     Serial *serial;
00022     bool New_Row;
00023     char Command_Buffer[256];
00024     int Command_Len;
00025 };