⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cmd_para_save.h

📁 单片机程序代码,经过很详细的测试.呵呵,硬件相关.
💻 H
字号:
#define Uchar	unsigned char
struct cmd_para_save{
	Uchar tsset_Sboard;						//'c00'时隙建立
	Uchar tsset_Stype;
	Uchar tsset_Sport;
	Uchar tsset_Sslot;
	Uchar tsset_Dboard;
	Uchar tsset_Dtype;
	Uchar tsset_Dport;
	Uchar tsset_Dslot;

	Uchar tsdel_Sboard;						//'c01'时隙删除
	Uchar tsdel_Stype;
	Uchar tsdel_Sport;
	Uchar tsdel_Sslot;
	Uchar tsdel_Dboard;
	Uchar tsdel_Dtype;
	Uchar tsdel_Dport;
	Uchar tsdel_Dslot;
	
	Uchar path_table_swget_board;			//'c50'通道倒换配置情况查询
	Uchar path_table_swget_port;
	Uchar path_table_swget_slot;

	Uchar path_table_swset_board;			//'c51'通道倒换配置
	Uchar path_table_swset_port;
	Uchar path_table_swset_slot;
	Uchar path_table_swset_Bboard;
	Uchar path_table_swset_Bport;
	Uchar path_table_swset_Bslot;
	Uchar path_table_swset_Bboard2;
	Uchar path_table_swset_Bport2;
	Uchar path_table_swset_Bslot2;

	Uchar path_swset_board;					//'c52'下达通道倒换命令
	Uchar path_swset_port;
	Uchar path_swset_slot;
	Uchar path_stset_board;
	Uchar path_stset_port;
	Uchar path_stset_slot;
	Uchar path_swset_mode;

	Uchar path_stat_swget_board;			//'c53'通道保护状态查询
	Uchar path_stat_swget_port;
	Uchar path_stat_swget_slot;

	Uchar ohget_board;						//'c20'读取开销字节
	Uchar ohget_port;
	Uchar ohget_slot;
	unsigned int ohget_name;

	Uchar ohset_board;						//'c21'配置开销字节
	Uchar ohset_port;
	Uchar ohset_slot;
	unsigned int ohset_name;
	Uchar ohset_value;

	Uchar ohjget_board;						//'c22'读取J开销字节
	Uchar ohjget_port;
	Uchar ohjget_slot;
	unsigned int ohjget_name;

	Uchar ohjset_board;						//'c23'配置J开销字节
	Uchar ohjset_port;
	Uchar ohjset_slot;
	unsigned int ohjset_name;

	Uchar lpget_stat_board;					//'c40'读取端口环回配置情况
	Uchar lpget_stat_board_type;
	Uchar lpget_stat_port;
	Uchar lpget_stat_slot;

	Uchar lpset_stat_board;					//'c41'配置端口环回
	Uchar lpset_stat_board_type;	
	Uchar lpset_stat_port;
	Uchar lpset_stat_slot;
	Uchar lpset_stat_type;

	Uchar alarm_led_value;					//'C66'告警灯指示值

	Uchar reset_EOS_board;					//'C90'软件复位EOS
	Uchar reset_EOS_value;

	Uchar set_address_board;				//'C91'设置发送接收端地址
	Uchar set_address_type;
	Uchar set_address_value;

	Uchar get_address_board;				//'C92'读取发送接收端地址
	Uchar get_address_type;

	Uchar set_search_board;					//'C93'设置监控点
	Uchar set_search_locate;

	Uchar get_search_board;					//'C94'读取监控点

	Uchar set_work_state_board;				//'C95'设置EOS盘工作方式
	Uchar set_work_state_value;

	Uchar get_work_state_board;				//'C96'读取EOS盘工作方式

 	Uchar set_EOS_num_board;				//'C97'设置EOS盘时隙个数
	Uchar set_EOS_num_value;

	Uchar get_EOS_num_board;				//'C98'读取EOS盘时隙个数

	Uchar perfor_reset_board_15min;			//'p01'复位指定15分钟性能计数器
	Uchar perfor_reset_port_15min;
	Uchar perfor_reset_slot_15min;
	Uchar perfor_reset_code_15min;

	Uchar perfor_instant_get_board;			//'p03'采集即时性能计数器
	Uchar perfor_instant_get_port;
	Uchar perfor_instant_get_slot;
	Uchar perfor_instant_get_code;

	Uchar perfor_threshold_set_board;		//'p04'设置性能门限
	Uchar perfor_threshold_set_port;
	Uchar perfor_threshold_set_slot;
	Uchar perfor_threshold_set_code;
	unsigned long int perfor_threshold_set_value;

	Uchar perfor_reset_board;				//'p07'复位指定性能计数器
	Uchar perfor_reset_port;
	Uchar perfor_reset_slot;
	Uchar perfor_reset_code;


	Uchar force_clock_source;				//'c10'强制配置同步时钟
	Uchar clock_source_mode;				//'c11'设置时钟源模式
	Uchar clock_source;						//'c12'配置时钟源
	Uchar clock_prio;						//'c12'配置时钟优先级
	Uchar clock_state_num;					//'c14'取时钟源接口状态
	Uchar board_num;						//'c30''c31'读取槽位中插盘类型、状态
	Uchar board_init;						//'c81'mcp响应单盘初始化结束
	Uchar single_board_reset;				//'m01'单盘复位
	Uchar perfor_sended;					//'p05'性能值发送完毕mcp响应

	Uchar test_read_board;						//'T00'读取指定的寄存器值
	unsigned int test_read_address;

	Uchar test_write_board;						//'T01'写指定的寄存器值
	unsigned int test_write_address;
	Uchar test_write_value;

	Uchar test_read_name;				//'T02'读取指定的变量值

	Uchar test_write_name;				//'T03'写指定的变量值
	Uchar test_value;
	
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -