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

📄 structdef.h

📁 对SAMSUNG 2440所有外部端口的全功能测试,包括SD卡,USB,CAMERA,LCD,IIS,TIMER,RS232等等,是你理想的调试软件.
💻 H
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -