flash based config testing

Dependencies:   mbed

Revision:
3:82c00c8e2cb4
Parent:
2:cfc39b0843ae
--- a/CommandProcessor/CommandProcessor.h	Thu Mar 02 07:36:56 2017 +0000
+++ b/CommandProcessor/CommandProcessor.h	Tue Mar 07 08:06:39 2017 +0000
@@ -4,18 +4,34 @@
 #include "mbed.h"
 #include "PreferenceWriter.h"
 
-float *checkf(char *s);
-int *checkn(char *s);
+void processCmd(Serial *pc, PreferenceWriter *pref, char *buf);
 
-void processCmd(Serial *pc, PreferenceWriter *pref, char *buf);
+/*---variable loading, setting, and flashing---*/
 void cmd_ls(Serial *pc);
 void cmd_ls2(Serial *pc, char *buf);
+void cmd_set(Serial *pc, char *buf, char *val);
 void cmd_defaults(Serial *pc);
 void cmd_reload(Serial *pc, PreferenceWriter *pref);
 void cmd_flush(Serial *pc, PreferenceWriter *pref);
-void cmd_cfg(Serial *pc);
+
+/*---mode switching---*/
+void cmd_setp(Serial *pc, char *buf);
+void cmd_mode(Serial *pc, char *buf);
+void cmd_src(Serial *pc, char *buf);
+void cmd_op(Serial *pc, char *buf);
+
+/*---variable commands---*/
 void cmd_exit(Serial *pc);
 
+/*---internal functions---*/
 int tokenize(char *buf, char **out, int max);
+float *checkf(char *s);
+int *checkn(char *s);
+char *mode_to_str(int n);
+int str_to_mode(char *buf);
+char *src_to_str(int n);
+int str_to_src(char *buf);
+char *op_to_str(int n);
+int str_to_op(char *buf);
 
 #endif
\ No newline at end of file