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

📄 page.h

📁 自己编写的
💻 H
字号:

//added by liangweidong
//for display contorl interface
//2005-7-18
#ifndef __PAGE_H__
#define __PAGE_H__

#define ASCIIX	(6)
#define ASCIIY	(8)

#define TRUTH   1
#define FU

typedef struct  {
	//total patameter
	unsigned int flag_language:1;			// 1:english  0:chinese
	unsigned int flag_protect:1;			// 1:enable    0:disable
	unsigned int flag_LCD_onoff:1;			// 1:enable    0:disable
	unsigned int flag_openloop:1;			// 1:enable    0:disable
	unsigned int flag_accum_contim:1;		// 1:accumulation    0:contimuous
	unsigned int flag_USB:1;				// 1:enable    0:disable
	unsigned int flag_RS232:1;				// 1:choice baud rate 115200    0:choice baud rate 57600
	unsigned int flag_timesetup:1;			// 1:enable    0:disable

	//file patameter
	unsigned int flag_set_zero_voltage:4;	// currently setup the zero point voltage, the range is 0~-10 V
//	unsigned int flag_file_zero_voltage:4;	// the zero point voltage in the file, the range is 0~-10 V

	unsigned int flag_set_span_voltage:4;	// currently setup the span point voltage, the range is 0~10 V	
//	unsigned int flag_file_span_voltage:4;	// the span point voltage in the file, the range is 0~10 V

	unsigned int flag_core_stroke:7;		// the current position of the control core 
	unsigned int flag_auto_manual:1;		// 1:show auto  0:show manual

	unsigned int flag_accum_stroke:7;		// the current position of the accumulation
	unsigned int flag_set_core_type:1;		// currently setup the core type 1:show the control core is  DIVERGENT 0:show the control core is  CONVERGENT

	unsigned int flag_set_emoty_voltage:4;	//
//	unsigned int flag_file_emoty_voltage:4;	//

	unsigned int flag_set_full_voltage:4;	//
//	unsigned int flag_file_full_voltage:4;	//

	unsigned int flag_set_gain:8;			// set the gain

//	unsigned int flag_file_gain:8;			// the file gain	

	unsigned int flag_filling_type:1;		// set the filling type	
	unsigned int flag_unit_type:1;			// 1:choice unit tupe mm 0:choice unit tupe %

	unsigned int flag_point_number:2;		// 1:show 32 control points 2:show 64 control points 3:show 96 control points 4:show 128 control points
	unsigned int flag_thickness_range:2;	// 1:show 25% 2:show 50% 3:show 75% 4:show 100%
//	unsigned int flag_file_core_type:1;		// the core type in the file 1:show the control core is  DIVERGENT 0:show the control core is  CONVERGENT
}flagsetting;



unsigned short int read_file_data(unsigned short int controlpoint);
void write_file_data(unsigned short int filedata,unsigned short int controlpoint);
BOOL seek_trun_flag(unsigned short int controlpoint);
BOOL seek_alarm_flag(unsigned short int controlpoint);
BOOL set_trun_flag(unsigned short int controlpoint);
BOOL set_alarm_flag(unsigned short int controlpoint);
BOOL clear_trun_flag(unsigned short int controlpoint);
BOOL clear_alarm_flag(unsigned short int controlpoint);
void init_total_file(void);
void display_figure(int flag);
void page_setfigure(void);
void page_setmark(void);
void page_setmark_next(void);
void page_setfile(void);
void page_setfile(void);
void page_setfile_save(void);
void page_moniter(void);
void page_data(void);
void page_data1(unsigned char point_number);
void page_data2(void);
void page_machine_setup(void);
void page_other_set(void);


//void page_setfigure(void);
//void page_setmark(void);
//void init_total_file(void);
//void display_figure(int flag);



#endif /*__PAGE_H__*/

⌨️ 快捷键说明

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