32 #define CMD_T_ASYNC 0x01
33 #define CMD_T_SYNC 0x02
39 void (* cmd_func)(void);
40 void (* cmd_callback)(
void *arg);
43 #define MAX_LINE_N 127
51 SSC_BR_115200 = 115200,
52 SSC_BR_230400 = 230400,
53 SSC_BR_460800 = 460800,
54 SSC_BR_921600 = 921600
int ssc_parse_param(char *pLine, char *argv[])
Parse the simple serial command (ssc).
int ssc_param_len(void)
Get the length of the simple serial command.
char * ssc_param_str(void)
Get the simple serial command string.
void ssc_register(ssc_cmd_t *cmdset, uint8 cmdnum, void(*help)(void))
Register the user-defined simple serial command (ssc) set.
void ssc_attach(SscBaudRate bandrate)
Initial the ssc function.