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

📄 kb.h

📁 自己编写的
💻 H
字号:
#ifndef __kb_H__
#define __kb_H__

void clr_pf(char onebit);
void setb_pf(char onebit);
void displaylcd(void);//char num);
void displaylcd32(char x, char y, char num);
void clear(void);
void Lcd_kb_MonoInit_one(void);
void kb_displaylcd(unsigned short int type);
extern void  Lcd_MonoInit(void);
extern void clrscreen(void);

/*added by liangweidong */
void display_hello(void);
void display_pic(void);
void display_test(void);
unsigned int text_translate(unsigned char data_text);
void Cleartext(int position);
void Blacktext(int position);
void Clearcharacter(int position);
void Displaytext(int position, unsigned char *n  );
void DrawHorizontalLine(int position, unsigned int linelong);
void DrawPerpendicularLine(int position, unsigned int linelong);
//id Display_character(unsigned char column, unsigned char line,   char *p);

//added by liangweidong 2005-8-1
//defined for control file
#define   INFLEXIONALPOINT 1
#define MARKPOINT 2

/*
//added by liangweidong 2005-07-14
struct Controlpoint {		//This struct can save the value of control point.
	unsigned char sequence;
	unsigned char mark;
	unsigned int thickness;
	struct Controlpoint *next_point;
};


//control point data struct
struct filedata{
	unsigned int turnflag :1;
	unsigned int alarmflag :1;
	unsigned int data:14;	
};
*/

//the parameter of the control file 
typedef struct  {
	char   		  name[16];					//文件名
	unsigned short int      totalpointnumber;		//本文件中所控制的点数
	unsigned short int      shotsize;				//加料量
	unsigned short int      diegap;				//锁模
	unsigned short int      movedelay;			//延迟
	unsigned short int      cushion;				//缓冲
	unsigned short int      diegapslope;			//锁模坡度
	unsigned short int      startslope;			//启动坡度
	unsigned short int      range_high;			//范围最大
	unsigned short int      range_low;			//范围最小
	
	unsigned short int flag_file_gain;				// the file gain	
	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
	unsigned int flag_file_zero_voltage:4;		// the zero point voltage in the file, 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_file_emoty_voltage:4;		//
	unsigned int flag_file_full_voltage:4;		//

	unsigned short int file_data[128];
//	struct filedata  file[128];
//	unsigned int      filedata[128][2];			//本文件的数据

}fileparameter;




void Test_Kb(void);

#endif 

⌨️ 快捷键说明

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