某平台向上层应用模块提供调测命令支持,其接口结构定义如下:

 1 #define   MAX_CMDMSG_LEN           32
 2 #define   MAX_ARG_NUM                  7
 3 #define   MAX_USERARG_NUM          (MAX_ARG_NUM - 1)
 4 
 5 typedef struct{
 6     INT32U arg_counts;                /* 二级进程调试命令带的参数个数 */
 7     CHAR  arg[MAX_USERARG_NUM][MAX_CMDMSG_LEN];   /* 调试命令的参数 */
 8 }CMD_USER_ARG;
 9 
10 /* 用户处理命令函数*/
11 typedef  INT32S (*CmdUserProcFun)(CMD_USER_ARG *pCmdUserArg);
12 
13 /* 应用模块处理命令数据结构 */
14 typedef struct {
15     INT32U     dwArgCounts;       /* 该命令实际带的参数 */
16     INT32U     dwCheckArgCounts;  /* 统一比较的参数 */
17     CHAR      *CmdStr[MAX_USERARG_NUM];
18     CmdUserProcFun  procfun;
19 }CMD_USER_PROC;
Interface Structure

相关文章:

  • 2021-06-22
  • 2022-12-23
  • 2021-12-10
  • 2021-05-01
  • 2021-12-27
  • 2021-11-22
猜你喜欢
  • 2021-11-30
  • 2021-12-10
  • 2023-03-26
  • 2021-06-19
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案