normal.h
来自「利用NXP的新一代高集成度的芯片RC500完成Mifare系列卡的读写」· C头文件 代码 · 共 87 行
H
87 行
#include<absacc.h>
#include<string.h>
#include "reg52.h"
#include <intrins.h>
#define uchar unsigned char
#define uint unsigned int
#define ulong unsigned long
#define TRUE 1
#define FALSE 0
sbit RFRST=P1^3;
sbit SOUND=P1^7;
struct BIOStm
{
uchar tm_year;
uchar tm_mon;
uchar tm_day;
uchar tm_hour;
uchar tm_min;
uchar tm_sec;
};
struct STRUCT_INT {
uchar char1;
uchar char2;
};
union UNION_INT {
uint int_int;
struct STRUCT_INT struct_int;
};
struct STRUCT_ULONG {
uchar char1;
uchar char2;
uchar char3;
uchar char4;
};
union UNION_ULONG {
ulong ulong_ulong;
struct STRUCT_ULONG struct_ulong;
};
typedef bit BOOL;
typedef unsigned char BYTE;
typedef unsigned int UWORD;
typedef unsigned long ULONG;
typedef unsigned int ACCADR; /*当需要用地址访问外部数据时,建议用此类型定义*/
// ------------------------------------------------
// ------------------------------------------------
typedef struct
{
BYTE charH;
BYTE charL;
} STRUCTINT;
typedef struct
{
BYTE char1;
BYTE char2;
BYTE char3;
BYTE char4;
}STRUCTLONG ;
typedef union
{
UWORD btint;
STRUCTINT stint;
}UNWORD ;
// ------------------------------------------------
// ------------------------------------------------
typedef union
{
ULONG btlong;
STRUCTLONG stlong;
}UNLONG ;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?