📄 command.h
字号:
/*************************************************************************
command.h
This file includes defines for support of the line command interface.
Copyright (C) 2001-2004 by Cirrus Logic Inc. All Rights Reserved
*************************************************************************/
#ifndef command_h
#define command_h
#define cCMND_BUF_SIZE 4096 //maximum command buffer size
#define cNUM_COM_ARG 32 //maximum number of arguments, i.e. pointers
#define cHELP_SHORT 0
#define cHELP_LONG 1
#define c2_HEX_CHAR 2
#define c4_HEX_CHAR 4
#define c6_HEX_CHAR 6
#define c8_HEX_CHAR 8
#define c12_HEX_CHAR 12
typedef code void ( * command_function_t )( char * com_arg_ptr[] );
code struct command_item_t {
code char * command_name;
code command_function_t command_function;
};
extern void service_Line_Command( void );
extern void do_packet_command( char * a_command );
extern unsigned char validate_hex_string( const char * hex_str_ptr,
unsigned char num_hex_char );
extern unsigned char validate_dec_string( char * dec_str_ptr );
extern void make_arg_string( char * com_arg_ptr[],
char the_starting_point );
extern unsigned char validate_ip_string( char * dec_str_ptr );
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -