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.
CommandProcessor.h
00001 #ifndef __COMMAND_PROCESSOR_H 00002 #define __COMMAND_PROCESSOR_H 00003 00004 #include "mbed.h" 00005 #include "PreferenceWriter.h" 00006 00007 void processCmd(Serial *pc, char *buf); 00008 00009 /*---mode switching---*/ 00010 void cmd_setp(Serial *pc, char *buf); 00011 void cmd_freq(Serial *pc, char *buf); 00012 void cmd_src(Serial *pc, char *buf); 00013 void cmd_op(Serial *pc, char *buf); 00014 void cmd_ls(Serial *pc); 00015 00016 /*---setting/getting parameters---*/ 00017 void cmd_ls2(Serial *pc, char *buf); 00018 void cmd_set(Serial *pc, char *buf, char *val); 00019 void cmd_flush(Serial *pc, PreferenceWriter *pref); 00020 void cmd_reload(Serial *pc, PreferenceWriter *pref); 00021 void cmd_query(Serial *pc, char *buf); 00022 00023 /*---system commands---*/ 00024 void cmd_clear(Serial *pc); 00025 void cmd_help(Serial *pc); 00026 00027 /*---internal functions---*/ 00028 int tokenize(char *buf, char **out, int max); 00029 int str_to_src(char *buf); 00030 char* src_to_str(int n); 00031 float* checkf(char *s); 00032 int* checkn(char *s); 00033 char* op_to_str(int n); 00034 int str_to_op(char *buf); 00035 00036 #endif
Generated on Tue Jul 12 2022 21:21:55 by
