📄 mfrcuc.lst
字号:
C51 COMPILER V6.00i MFRCUC 07/12/2004 17:06:43 PAGE 1
C51 COMPILER 6.00i, COMPILATION OF MODULE MFRCUC
OBJECT MODULE PLACED IN MFRCUC.OBJ
COMPILER INVOKED BY: G:\mywork\cygnal单片机\CYGNAL\IDEfiles\C51\BIN\C51.exe MFRCUC.h DB OE
stmt level source
1 /*
2 * Copyright (c), Philips Semiconductors Gratkorn / Austria
3 *
4 * (C)PHILIPS Electronics N.V.2000
5 * All rights are reserved. Reproduction in whole or in part is
6 * prohibited without the written consent of the copyright owner.
7 * Philips reserves the right to make changes without notice at any time.
8 * Philips makes no warranty, expressed, implied or statutory, including but
9 * not limited to any implied warranty of merchantability or fitness for any
10 *particular purpose, or that the use will not infringe any third party patent,
11 * copyright or trademark. Philips must not be liable for any loss or damage
12 * arising from its use.
13 */
14
15
16
17
18 #define PICC_REQIDL 0x26
19 #define PICC_REQALL 0x52
20 #define PICC_ANTICOLL1 0x93
21 #define PICC_ANTICOLL2 0x95
22 #define PICC_ANTICOLL3 0x97
23 #define PICC_AUTHENT1A 0x60
24 #define PICC_AUTHENT1B 0x61
25 #define PICC_READ 0x30
26 #define PICC_WRITE 0xA0
27 #define PICC_DECREMENT 0xC0
28 #define PICC_INCREMENT 0xC1
29 #define PICC_RESTORE 0xC2
30 #define PICC_TRANSFER 0xB0
31 #define PICC_HALT 0x50
32
33 typedef struct
34 {
35 unsigned char cmd;
36 char status;
37 unsigned char nBytesSent;
38 unsigned char nBytesToSend;
39 unsigned char nBytesReceived;
40 unsigned short nBitsReceived;
41 unsigned char irqSource;
42 unsigned char collPos;
43 } MfCmdInfo;
44
45 char Mf500PcdConfig(void);
46 char Mf500PcdSetDefaultAttrib(void);
47 char Mf500PiccRequest(unsigned char req_code,
48 unsigned char *atq);
49 char Mf500PiccAnticoll (unsigned char bcnt,
50 unsigned char *snr);
51 char Mf500PiccCascAnticoll (unsigned char select_code,
52 unsigned char bcnt,
53 unsigned char *snr);
54 char Mf500PiccSelect(unsigned char *snr,
55 unsigned char *sak);
C51 COMPILER V6.00i MFRCUC 07/12/2004 17:06:43 PAGE 2
56 char Mf500PiccCascSelect(unsigned char select_code,
57 unsigned char *snr,
58 unsigned char *sak);
59 char Mf500PiccAuth(unsigned char auth_mode,
60 unsigned char key_sector,
61 unsigned char block);
62
63 char Mf500PiccAuthE2( unsigned char auth_mode,
64 unsigned char *snr,
65 unsigned char key_sector,
66 unsigned char block);
67
68 char Mf500HostCodeKey(unsigned char *uncoded,
69 unsigned char *coded);
70 char Mf500PcdLoadKeyE2(unsigned char key_type,
71 unsigned char sector,
72 unsigned char *uncoded_keys);
73
74 char Mf500PiccAuthKey(unsigned char auth_mode,
75 unsigned char *snr,
76 unsigned char *keys,
77 unsigned char sector);
78
79 char Mf500PiccRead(unsigned char addr,unsigned char *mdata);
80 char Mf500PiccWrite(unsigned char addr,
81 unsigned char *mdata);
82
83 char Mf500PiccValue(unsigned char dd_mode,
84 unsigned char addr,
85 unsigned char *value,
86 unsigned char trans_addr);
87
88 char Mf500PiccValueDebit(unsigned char dd_mode,
89 unsigned char addr,
90 unsigned char *value);
91
92 char Mf500PiccExchangeBlock(unsigned char *send_data,
93 unsigned char send_bytelen,
94 unsigned char *rec_data,
95 unsigned char *rec_bytelen,
96 unsigned char append_crc,
97 unsigned long timeout );
98
99 char Mf500PiccHalt(void);
100 void ClearBitMask(unsigned int reg,unsigned char mask);
101 void WriteRC(unsigned int Address, unsigned char value);
102 unsigned char ReadRC(unsigned int Address);
103 void PcdSetTmo(unsigned char tmoLength);
104 void SetBitMask(unsigned int reg,unsigned char mask);
105 void FlushFIFO(void);
106 char PcdSingleResponseCmd(unsigned char cmd);
107 char PcdRfReset(unsigned int nms);
108 void ResetInfo(void);
109 char PcdReadE2(unsigned char startaddr,
110 unsigned char length,
111 unsigned char *mdata);
112 char PcdWriteE2( unsigned int startaddr,
113 unsigned char length,
114 unsigned char *mdata);
115 char ExchangeByteStream(unsigned char Cmd,
116 unsigned char *send_data,
117 unsigned char send_bytelen,
C51 COMPILER V6.00i MFRCUC 07/12/2004 17:06:43 PAGE 3
118 unsigned char *rec_data,
119 unsigned char *rec_bytelen);
120 char Mf500PiccAuthState(unsigned char auth_mode,
121 unsigned char *snr,
122 unsigned char sector);
123 void Delay(unsigned int j);
124 void SEND_INFO_PC();
125 void SendData(unsigned char *buf);
126 void SendEnter();
127 void SendHex(unsigned char ch);
128 void Send1Hex(unsigned char ch);
129 void Baudrate_Init(); // 初始化串口的波特率
130 void SEND_ICINFO_PC(unsigned char command,unsigned char status_flag,unsigned char len,unsigned char buf[])
-;
131 void Delay10ms();
132 void SpeakSound();
133 //////////////////////////////////////
134 void init_lcd (void);
135 void wr_lcd (unsigned char choe1,unsigned char choe2,unsigned char data_comm,unsigned char content);
136 /*choe1为1,控制左半屏,choe2为1,控制右半屏*/
137 void chk_busy (unsigned char choe1,unsigned char choe2);
138 void delay (unsigned int us);
139 void delay1 (unsigned int ms);
140 //void init_lcd (void);
141 void disphz (unsigned char xdata *chn);
142 void dispzf (unsigned char xdata *chn);
143 void disptu (unsigned char xdata *img);
144 void wrlattice (unsigned char data1,unsigned char data2);
145
146
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = ---- ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -