📄 globe.c
字号:
/****************************************************************/
/* 全局变量定义程序
/* 主要功能:
/* 定义所有全局变量
/*
/* 编制:
/* 时间:
/****************************************************************/
#ifndef _GLOBE_INCLUDED_
#define _GLOBE_INCLUDED_
#include <reg51.h>
#include "main.h"
const uchar code FMSHINFO[23] = {"版权属于上海复旦微电子"}; //版权信息
const uchar code str1[]=
{//上海复旦微电子
0x80,0x81,0x82,0x83,0x84,0x85,0x86,0xff
};
const uchar code str2[]=
{//FM222测试系统
0x0f,0x16,0x02,0x02,0x02,0x42,0x87,0x88,0x89,0x8a,0xff
};
const uchar code req_str[]=
{//Request
0x1b,0x28,0x34,0x38,0x28,0x36,0x37,0xff
};
const uchar code select_str[]=
{//Select
0x1c,0x28,0x2f,0x28,0x26,0x37,0xff
};
const uchar code anticoll_str[]=
{//Anticoll
0x0a,0x31,0x37,0x2c,0x26,0x32,0x2f,0x2f,0xff
};
const uchar code authent_str[]=
{//Authent
0x0a,0x38,0x37,0x2b,0x28,0x31,0x37,0xff
};
uchar code halt_str[]=
{//Halt
0x11,0x24,0x2f,0x37,0xff
};
const uchar code read_str[]=
{//Read
0x1b,0x28,0x24,0x27,0xff
};
const uchar code write_str[]=
{//Write
0x20,0x35,0x2c,0x37,0x28,0xff
};
const uchar code loadkey_str[]=
{//loadkey
0x15,0x32,0x24,0x27,0x2e,0x28,0x3c,0xff
};
const uchar code initival_str[]=
{//initival
0x12,0x31,0x2c,0x37,0x2c,0x39,0x24,0x2f,0xff
};
const uchar code increment_str[]=
{//increment
0x12,0x31,0x26,0x35,0x28,0x30,0x28,0x31,0x37,0xff
};
const uchar code decrement_str[]=
{//decrement
0x0d,0x28,0x26,0x35,0x28,0x30,0x28,0x31,0x37,0xff
};
const uchar code transfer_str[]=
{
0x1d,0x35,0x24,0x31,0x29,0x28,0x35,0xff
};
const uchar code restore_str[]=
{
0x1b,0x28,0x36,0x37,0x32,0x35,0x28,0xff
};
const uchar code ok_str[]=
{//OK
0x18,0x14,0xff
};
const uchar code err_str[]=
{//ERR
0x0e,0x1b,0x1b,0xff
};
const uchar code uids_str[]=
{
0x1e,0x12,0x0d,0x41,0xff
};
uchar idata Curcol;
uchar idata Curlin;
uchar idata Timer0_Count; //定时器0计数器
uchar idata RS_RecvPoint; //RS-232通道接收数据指针
uchar idata RS_RecvLen; //RS-232通道接收数据长度字节
uchar idata RS_SendPoint; //RS-232通道发送数据指针
uchar idata RS_SendLen; //RS-232通道发送数据长度字节
uchar idata RS_RECVSTATUS; //RS-232通道接收状态字
uchar idata RS_SENDSTATUS; //RS-232通道发送状态字
uchar idata Comm_SNR _at_ 0x0099; //@0x2a0;数据交换包序号
uchar idata CardSize; //卡片数据长度
uchar idata readdata[16]; //读写数据缓冲区
uchar idata value[4]; //增减的数值
uchar idata KeySet; //密码类型
uchar idata tagtype[2] _at_ 0x0096; //卡片标识字符
uchar idata ledlcd_on; //液晶背光亮标志
uint idata ledcnt; //液晶背光亮延时计数
//******************* RC531变量定义********************
uchar idata PRO_SendBuf[32] _at_ 0x0080; //发送处理缓冲区 32 BYTE
uchar idata PRO_RecvBuf[32] _at_ 0x0080; //接收处理缓冲区 32 BYTE
uchar idata buffer[24] _at_ 0x0060; //RC531命令发送接收缓冲区
uchar idata UID[5] _at_ 0x007a; //序列号
uchar idata Secnr _at_ 0x0090; //扇区号
//******************* keyscan变量定义********************
uchar idata Key_Pressed;
uchar idata Key_Waitpro ;
uchar idata Cur_KeyCode;
uchar idata Pre_KeyCode;
uchar idata KeyCounter;
uchar idata Keyscan_rdy;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -