Chameleon-Mini
CommandLine.h
1 /*
2  * CommandLine.h
3  *
4  * Created on: 04.05.2013
5  * Author: skuser
6  */
7 
8 #ifndef COMMANDLINE_H_
9 #define COMMANDLINE_H_
10 
11 #include "Terminal.h"
12 #include "Commands.h"
13 
14 void CommandLineInit(void);
15 bool CommandLineProcessByte(uint8_t Byte);
16 void CommandLineTick(void);
17 
18 void CommandExecute(const char *command);
19 void CommandLineAppendData(void const *const Buffer, uint16_t Bytes);
20 
21 /* Functions for timeout commands */
22 void CommandLinePendingTaskFinished(CommandStatusIdType ReturnStatusID, char const *const OutMessage); // must be called, when the intended task is finished
23 extern void (*CommandLinePendingTaskTimeout)(void); // gets called on timeout to end the pending task
24 void CommandLinePendingTaskBreak(void); // this manually triggers a timeout
25 
26 #endif /* COMMANDLINE_H_ */