HomeAut
commandList.h
1 /*
2  * command.h
3  *
4  * Author: Vizi Gábor
5  * E-mail: vizi.gabor90@gmail.com
6  * Function: Command list
7  * Target: STM32Fx
8  * Version: v4
9  * Last modified: 2016.09.28
10  */
11 
12 #ifndef COMMANDLIST_H_
13 #define COMMANDLIST_H_
14 
15 
16 /*------------------------------------------------------------------------------
17  * Includes
18  *----------------------------------------------------------------------------*/
19 #include "include.h"
20 #include "CommandHandler.h"
21 
22 /*------------------------------------------------------------------------------
23  * Macros & definitions
24  *----------------------------------------------------------------------------*/
25 
26 
27 #define NUM_OF(x) (sizeof(x)/sizeof(x[0]))
28 
29 #define MONITOR_MAX_COMMAND_NUM (uint8_t)( NUM_OF(CommandList))
30 
31 
32 /*------------------------------------------------------------------------------
33  * Type definitions
34  *----------------------------------------------------------------------------*/
35 
36 
37 
38 
39 /*------------------------------------------------------------------------------
40  * Global variables
41  *----------------------------------------------------------------------------*/
42 
43 extern const CommandStruct CommandList[];
44 
45 extern const CommandID_t MONITOR_CommandNum;
46 
47 
48 
49 /*------------------------------------------------------------------------------
50 * Global function declarations
51 *----------------------------------------------------------------------------*/
52 
53 
54 // COMMANDS
55 CommandResult_t CommandFunction_cls(uint32_t argc, char** argv);
56 CommandResult_t CommandFunction_help(uint32_t argc, char** argv);
57 
58 CommandResult_t CommandFunction_version(uint32_t argc, char** argv);
59 CommandResult_t CommandFunction_welcome(uint32_t argc, char** argv);
60 
61 CommandResult_t CommandFunction_test(uint32_t argc, char** argv);
62 
63 CommandResult_t CommandFunction_set(uint32_t argc, char** argv);
64 CommandResult_t CommandFunction_get(uint32_t argc, char** argv);
65 CommandResult_t CommandFunction_GlobalVariableHelp(uint32_t argc, char** argv);
66 CommandResult_t CommandFunction_GlobalVariableList(uint32_t argc, char** argv);
67 CommandResult_t CommandFunction_GlobalVariableValueList(uint32_t argc, char** argv);
68 
69 CommandResult_t CommandFunction_reset(uint32_t argc, char** argv);
70 CommandResult_t CommandFunction_led(uint32_t argc, char** argv);
71 
72 CommandResult_t CommandFunction_unittest(uint32_t argc, char** argv);
73 CommandResult_t CommandFunction_moduletest(uint32_t argc, char** argv);
74 
75 CommandResult_t CommandFunction_dac(uint32_t argc, char** argv);
76 CommandResult_t CommandFunction_io(uint32_t argc, char** argv);
77 CommandResult_t CommandFunction_adc(uint32_t argc, char** argv);
78 CommandResult_t CommandFunction_adcread(uint32_t argc, char** argv);
79 
80 CommandResult_t CommandFunction_raspberrypi(uint32_t argc, char** argv);
81 
82 CommandResult_t CommandFunction_flashdel(uint32_t argc, char** argv);
83 CommandResult_t CommandFunction_flashread(uint32_t argc, char** argv);
84 CommandResult_t CommandFunction_flashwrite(uint32_t argc, char** argv);
85 CommandResult_t CommandFunction_temp(uint32_t argc, char** argv);
86 
87 /*
88 CommandResult_t CommandFunction_buzzer ( uint32_t argc, char** argv );
89 CommandResult_t CommandFunction_accelerometer ( uint32_t argc, char** argv );
90 CommandResult_t CommandFunction_gyroscope ( uint32_t argc, char** argv );
91 CommandResult_t CommandFunction_remotecontrol ( uint32_t argc, char** argv );
92 CommandResult_t CommandFunction_proximity ( uint32_t argc, char** argv );
93 CommandResult_t CommandFunction_log ( uint32_t argc, char** argv );
94 CommandResult_t CommandFunction_exit ( uint32_t argc, char** argv );
95 CommandResult_t CommandFunction_read ( uint32_t argc, char** argv );
96 
97 CommandResult_t CommandFunction_start ( uint32_t argc, char** argv );
98 CommandResult_t CommandFunction_stop ( uint32_t argc, char** argv );
99 CommandResult_t CommandFunction_dl ( uint32_t argc, char** argv );
100 CommandResult_t CommandFunction_go ( uint32_t argc, char** argv );
101 
102 CommandResult_t CommandFunction_mr ( uint32_t argc, char** argv );
103 CommandResult_t CommandFunction_mw ( uint32_t argc, char** argv );
104 CommandResult_t CommandFunction_btn ( uint32_t argc, char** argv );
105 
106 CommandResult_t CommandFunction_lcd ( uint32_t argc, char** argv );
107 CommandResult_t CommandFunction_stop ( uint32_t argc, char** argv );
108 CommandResult_t CommandFunction_romr ( uint32_t argc, char** argv );
109 CommandResult_t CommandFunction_romw ( uint32_t argc, char** argv );
110 CommandResult_t CommandFunction_romsr ( uint32_t argc, char** argv );
111 CommandResult_t CommandFunction_romwe ( uint32_t argc, char** argv );
112 CommandResult_t CommandFunction_rominit ( uint32_t argc, char** argv );
113 
114 CommandResult_t CommandFunction_rfm12b ( uint32_t argc, char** argv );
115 CommandResult_t CommandFunction_keypad ( uint32_t argc, char** argv );
116 CommandResult_t CommandFunction_standby ( uint32_t argc, char** argv );
117 CommandResult_t CommandFunction_rtc ( uint32_t argc, char** argv );
118 
119 CommandResult_t CommandFunction_ESP8266 ( uint32_t argc, char** argv );
120 */
121 
122 
123 
124 #endif /* COMMANDLIST_H_ */
Command structure.
Definition: CommandHandler.h:157