structdef.h

来自「研勤公司2440开发板的测试程序」· C头文件 代码 · 共 63 行

H
63
字号
typedef struct status_sys {

	volatile unsigned char motorstu;  		//electromotor status
	volatile unsigned 	   sendstu:1;		//send money desk signal
	volatile unsigned      resetstu:1;		//accept money desk signal
	volatile unsigned      warningstu:1;	//warning signal status
	
} sys_status;



typedef struct money_verify{

	volatile unsigned char command;					//function command
	volatile unsigned char warning_value;			//the code of warning
	volatile unsigned char par_value;				//par value of money

} mny_verify;



typedef struct status_signal{

	volatile unsigned      left_cnt_downedge:1;			//left count pipe down-edge signal
	volatile unsigned      left_cnt_upedge:1;			//left count pipe up-edge signal
	volatile unsigned      right_cnt_downedge:1;		//right count pipe down-edge signal
	volatile unsigned      right_cnt_upedge:1;			//right count pipe up-edge signal
	volatile unsigned char left_cnt_mag;				//left magnetism counter
	volatile unsigned char right_cnt_mag;				//right magnetism counter
	volatile unsigned char mid_cnt_smallmag;			//middle small-magnetism counter
	volatile unsigned char mid_cnt_bigmag;				//middle big-magnetism counter
	volatile unsigned char infrared_dat;				//intfrared ray data
	volatile unsigned char width_dat;					//width data
	volatile unsigned char flu_dat;						//fluorescence data
	
	volatile unsigned      finish_verify:1;				//verify complete
	
	volatile unsigned      left_cnt_downedge_sec:1;		//left count pipe down-edge second signal
	volatile unsigned      right_cnt_downedge_sec:1;	//right count pipe down-edge second signal
	
	mny_verify    cuurrent_mny;							//cuurent money facticity
	
} sig_status;



typedef struct human_interface{
 
	volatile unsigned char key_enter;
	volatile unsigned char key_data;
	volatile unsigned char *pDis_buff;
	volatile unsigned char dis_status;
}



typedef struct delay_times{

	volatile unsigned char key_delays;
	//    .....
}delay_time;

⌨️ 快捷键说明

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