亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? mfrc500uc.lst

?? RC500的mifare卡開(kāi)發(fā)備用程序及電路
?? LST
?? 第 1 頁(yè) / 共 4 頁(yè)
字號(hào):
C51 COMPILER V6.12  MFRC500UC                                                              08/18/2008 15:29:35 PAGE 1   


C51 COMPILER V6.12, COMPILATION OF MODULE MFRC500UC
OBJECT MODULE PLACED IN .\mfrc500uc.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE .\mfrc500uc.c LARGE WARNINGLEVEL(0) BROWSE INCDIR(D:\UsefulDocument\Mifare\
                    -MF RC500\MFRC500 Demo Reader\RC500\For Test) DEBUG OBJECTEXTEND

stmt level    source

   1          ///////////////////////////////////////////////////////////////////////////////
   2          //    Copyright (c), Philips Semiconductors Gratkorn
   3          //
   4          //                  (C)PHILIPS Electronics N.V.2000
   5          //                     All rights are reserved. 
   6          //  Philips reserves the right to make changes without notice at any time.
   7          // Philips makes no warranty, expressed, implied or statutory, including but
   8          // not limited to any implied warranty of merchantibility or fitness for any
   9          //particular purpose, or that the use will not infringe any third party patent,
  10          // copyright or trademark. Philips must not be liable for any loss or damage
  11          //                          arising from its use.
  12          ///////////////////////////////////////////////////////////////////////////////
  13          #include <string.h>
  14          #include <stdio.h>
  15          
  16          #include <RICReg.h>
*** ERROR 318 IN LINE 16 OF .\mfrc500uc.c: can't open file 'RICReg.h'
  17          
  18          #include <MfRc500.h>
*** ERROR 318 IN LINE 25 OF MfRc500.h: can't open file 'OsDefs.h'
*** ERROR C129 IN LINE 47 OF MFRC500.H: missing ';' before 'Mf500PcdConfig'
  19          #include <PcdShared.h>
*** ERROR 318 IN LINE 24 OF PcdShared.h: can't open file 'OsDefs.h'
  20          #include <uCInit.h>
*** ERROR 318 IN LINE 20 OF .\mfrc500uc.c: can't open file 'uCInit.h'
  21          #include <RcCommunication.h>
  22          #include <PcdUtils.h>
*** ERROR 318 IN LINE 41 OF MfErrno.h: can't open file 'OsDefs.h'
  23          #include <MfErrNo.h>
  24          
  25          /*! \file MfRc500uC.c
  26          *
  27          * Projekt: MF EV X00 Firmware
  28          *
  29          * $Workfile:: MfRc500uC.c                                               $ 
  30          * $Modtime:: 30.03.01 9:46                                              $ 
  31          * $Author:: Hb                                                          $
  32          * $Revision:: 31                                                        $
  33          *
  34          * 
  35          * This library modul is written for a C166 microcontroller derivative.
  36          * The source can be ported to other platforms very easily. 
  37          * The communication channel to the RC500 reader IC is assumed to be 
  38          * unknown. All data is written with the generic IO functions 
  39          * of the module RcComunication.h (Reader core communication). 
  40          * In our case the reader module is 
  41          * connected via memory mapped io at base address 0x100000.
  42          * The interrupt pin of the reader IC is assumed to be connected to 
  43          * the fast external interrupt pin INT0# (active low) and the reset
  44          * pin of the reader IC should be connected to a dedicated port pin
  45          * (Port: P1 Pin: 9).
  46          * In this configuration, a reset of the reader module is independend
  47          * from the reset of the microcontroller.
  48          * In order to generate communication timeouts, 
C51 COMPILER V6.12  MFRC500UC                                                              08/18/2008 15:29:35 PAGE 2   

  49          * general purpose timer 3 of the microcontroller is used. This 
  50          * timer need not to be initialised in advance. Before every usage 
  51          * the timer is completely initialised in each function. 
  52          * Non of the timers is essential for the functionality of the reader
  53          * module, but are helpful furing software development. All protocoll 
  54          * relevant timing constraints are generated
  55          * by the internal timer of the reader module.
  56          * 
  57          * Some explanations to the programming method of this library.
  58          * There are three kind of functions coded in this module.
  59          * <ol>
  60          *  <li> internal functions, which have no prototypes in a header
  61          *       file. This kind of functions are not intended to be used 
  62          *       outside of this file
  63          *  <li> commands, which are intended for the reader module itself
  64          *  <li> commands, which are intended for any tag in the rf field.
  65          *       These commands are send to the reader and the reader module
  66          *       transmitts the data to the rf interface.
  67          * </ol>
  68          * Commands for the reader and for the tag have the appropriate 
  69          * prefix (PCD for Proximity Coupled Device or reader module
  70          * PICC for Proximity Integrated Circuit Card or tag)
  71          * and their protypes are defined in the header file.
  72          * Certainly, each command for a PICC consists of an instruction to the PCD. 
  73          * Therefore
  74          * the function PcdSingleResponseCmd is very important for the understanding
  75          * of the communication.
  76          * 
  77          * The basic functionality is provided by the interrupt service
  78          * routine (SingleResponseCmd), which closely works together with the function
  79          * PcdSingleResponseCmd. All kinds of interrupts are serviced by the 
  80          * same ISR. 
  81          */
  82          
  83          ///////////////////////////////////////////////////////////////////////////////
  84          //             M O D U L   V A R I A B L E S 
  85          ///////////////////////////////////////////////////////////////////////////////
  86          
  87          /*!
  88          * \ingroup mfcompatible
  89          * storage of the last selected serial number including check byte.
  90          *
  91          * For multi level serial numbers, only the first 4 bytes are stored.
  92          */
  93          unsigned char MLastSelectedSnr[5];
  94          
  95          volatile unsigned char *MSndBuffer = 0; ///< pointer to the transmit buffer
  96          volatile unsigned char *MRcvBuffer = 0; ///< pointer to the receive buffer
  97          
  98          /*!
  99          * In order to exchange some values between the ISR and the calling function,
 100          * a struct is provided. 
 101          */
 102          volatile MfCmdInfo     MInfo;                  
 103          
 104          /*! \name ISO14443 Support Properties
 105          * \ingroup ISO14443
 106          * Some of the protokoll functions of ISO14443 needs information about
 107          * the capability of the reader device, which are provided by this
 108          * constants.
 109          */
 110          //@{
C51 COMPILER V6.12  MFRC500UC                                                              08/18/2008 15:29:35 PAGE 3   

 111          #define TCLFSDSNDMAX   8   ///< max. frame size send
 112          #define TCLFSDRECMAX   8   ///< max. frame size rcv
 113          #define TCLDSMAX       3   ///< max. baudrate divider PICC --> PCD
 114          #define TCLDRMAX       3   ///< max. baudrate divider PCD --> PICC
 115          
 116          #define TCLDSDFLT      0   ///< default baudrate divider PICC --> PCD
 117          #define TCLDRDFLT      0   ///< default baudrate divider PCD --> PICC
 118          //@}
 119          
 120          
 121          ///////////////////////////////////////////////////////////////////////////////
 122          //             Prototypes for local functions 
 123          ///////////////////////////////////////////////////////////////////////////////
 124          
 125          ///  Internal Authentication State Switch
 126          /*!
 127          * \ingroup internal
 128          * \param auth_mode (<em>IN</em>) 
 129          *                  <ul> selects master key A or master key B 
 130          *                   <li> PICC_AUTHENT1A
 131          *                   <li> PICC_AUTHENT1B 
 132          *                  </ul>
 133          * \param *snr      (<em>IN</em>) 
 134          *                  4 byte serial number of the card, which should be 
 135          *                  authenticated
 136          * \param sector (<em>IN</em>) Range [0..15] 
 137          *               specifies the key RAM address 
 138          *               from which the keys should be taken
 139          * \return <ul>
 140          *          <li> MI_OK
 141          *          <li> CCE
 142          *          <li> MI_BITCOUNTERR  wrong number of bits received
 143          *          <li> MI_AUTHERR      wrong keys for selected card
 144          *          <li> MI_KEYERR       error while loading keys
 145          *         </ul>
 146          * 
 147          * Internal authentication state function.
 148          */
 149          char Mf500PiccAuthState(unsigned char auth_mode,// PICC_AUTHENT1A, PICC_AUTHENT1B
 150                                 unsigned char *snr,    // 4 byte serial number
 151                                 unsigned char sector); // 0 <= sector <= 15  
 152                                                      // sector address for authentication
 153          
 154          ///////////////////////////////////////////////////////////////////////
 155          //      M I F A R E   M O D U L E   C O N F I G U R A T I O N
 156          ///////////////////////////////////////////////////////////////////////
 157          char Mf500PcdConfig(void)
 158          {
 159             char status = MI_RESETERR;
 160             unsigned short RstLoopCnt = 0;
 161             unsigned short CmdWaitCnt = 0;
 162                
 163             // global initialisation
 164             MSndBuffer  = RicRxTxBuffer;  // initialise send buffer 
 165             MRcvBuffer  = RicRxTxBuffer;  // initialise receive buffer
 166          
 167             status = PcdReset();
 168          
 169             if (status == MI_OK)
 170             {
 171          
 172               // test clock Q calibration - value in the range of 0x46 expected
C51 COMPILER V6.12  MFRC500UC                                                              08/18/2008 15:29:35 PAGE 4   

 173               WriteRC(RegClockQControl,0x0);
 174               WriteRC(RegClockQControl,0x40);
 175               SleepUs(24);  // wait approximately 100 us - calibration in progress
 176               ClearBitMask(RegClockQControl,0x40); // clear bit ClkQCalib for 
 177                                                    // further calibration
 178          
 179               // The following values for RegBitPhase and
 180               // RegRxThreshold represents an optimal
 181               // value for our demo package. For user
 182               // implementation some changes could be
 183               // necessary
 184               // initialize bit phase
 185               WriteRC(RegBitPhase,0xAD);      
 186          
 187               // initialize minlevel
 188               WriteRC(RegRxThreshold,0xFF);   
 189            
 190               // disable auto power down
 191               WriteRC(RegRxControl2,01);
 192          
 193               // Depending on the processing speed of the
 194               // operation environment, the waterlevel 
 195               // can be adapted. (not very critical for
 196               // mifare applications)
 197               // initialize waterlevel to value 4
 198               WriteRC(RegFIFOLevel,0x1A); // initialize to 26d 
 199               
 200               //Timer Konfiguration
 201               WriteRC(RegTimerControl,0x02);  // TStopRxEnd=0,TStopRxBeg=0,
 202                                             // TStartTxEnd=1,TStartTxBeg=0  
 203                                             // timer must be stopped manually
 204          
 205               WriteRC(RegIRqPinConfig,0x3); // interrupt active low enable
 206          
 207               PcdRfReset(1);            // Rf - reset and enable output driver   
 208          
 209             }
 210             return status;
 211          }
 212          
 213          ///////////////////////////////////////////////////////////////////////
 214          //          M I F A R E   R E M O T E   A N T E N N A
 215          //  Configuration of slave module
 216          ///////////////////////////////////////////////////////////////////////
 217          char Mf500ActiveAntennaSlaveConfig(void)
 218          {

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美主播一区二区三区美女| 国产亚洲综合在线| 精品国产1区二区| 欧美国产激情一区二区三区蜜月| 一区在线观看视频| 日本伊人精品一区二区三区观看方式| 国产一区二区三区在线观看免费| 91丝袜呻吟高潮美腿白嫩在线观看| 在线观看成人小视频| 日韩一区二区在线观看视频播放| 久久久91精品国产一区二区精品| 亚洲麻豆国产自偷在线| 久久97超碰色| 色综合久久综合网97色综合| 26uuu国产日韩综合| 一区二区三区波多野结衣在线观看| 精一区二区三区| 色婷婷久久综合| 26uuu欧美日本| 婷婷一区二区三区| 成人av中文字幕| 日韩欧美的一区二区| 亚洲一区二区欧美日韩| 91精品国产综合久久精品| 精品国产乱码久久久久久老虎| 亚洲精品免费在线| 欧美一区二区三区在| 日韩欧美电影在线| 亚洲一区电影777| 成人午夜电影网站| 日韩精品影音先锋| 午夜久久久影院| 91在线观看高清| 久久久久久久久久久黄色| 日韩国产在线观看一区| 91影视在线播放| 国产欧美精品一区二区色综合朱莉| 天堂av在线一区| 91福利在线看| 亚洲欧美偷拍卡通变态| 国产河南妇女毛片精品久久久| 欧美一区二区在线播放| 亚洲一区二区三区四区中文字幕 | 在线免费一区三区| 国产精品高潮呻吟| 国产精品一区二区男女羞羞无遮挡| 9191国产精品| 亚洲国产综合在线| 91麻豆国产香蕉久久精品| 中文字幕成人在线观看| 黑人巨大精品欧美黑白配亚洲| 欧美一区二区视频在线观看2020| 日韩一区中文字幕| 欧美日韩大陆一区二区| 欧美欧美欧美欧美| 日韩午夜激情视频| 午夜免费久久看| 欧美亚洲国产bt| 亚洲资源中文字幕| 欧美性生活一区| 亚洲最新在线观看| 欧美色综合影院| 亚洲一二三区视频在线观看| 色噜噜狠狠成人中文综合 | 成人免费高清视频| 欧美精品一区二区不卡| 国产在线视频不卡二| 欧美成人r级一区二区三区| 另类小说一区二区三区| 日韩精品一区二区三区四区| 狂野欧美性猛交blacked| 日韩欧美资源站| 加勒比av一区二区| 欧美精品一区二区久久婷婷| 狠狠v欧美v日韩v亚洲ⅴ| 久久久无码精品亚洲日韩按摩| 国产乱一区二区| 国产精品私房写真福利视频| 国产69精品一区二区亚洲孕妇| 国产精品少妇自拍| 99精品久久99久久久久| 亚洲免费看黄网站| 欧美无砖专区一中文字| 日韩电影免费在线看| 精品奇米国产一区二区三区| 国产一区二区伦理片| 国产精品看片你懂得| 91美女视频网站| 亚洲成av人片一区二区梦乃 | 在线免费亚洲电影| 天天色 色综合| 久久综合久色欧美综合狠狠| 成人激情综合网站| 一级女性全黄久久生活片免费| 欧美日韩国产小视频| 久草这里只有精品视频| 国产日韩精品一区| 色美美综合视频| 久久精品国产亚洲aⅴ| 中文一区二区在线观看| 在线看日本不卡| 久久精品国产精品亚洲精品| 中文字幕高清不卡| 精品视频一区三区九区| 经典三级视频一区| 日韩码欧中文字| 911国产精品| 国产精品18久久久久久久久久久久| 亚洲男人的天堂在线观看| 欧美一区二区在线免费观看| 国产白丝精品91爽爽久久| 亚洲国产精品久久艾草纯爱| 精品国产成人在线影院 | 亚洲欧美日韩小说| 3atv在线一区二区三区| 成人精品小蝌蚪| 蜜桃一区二区三区在线| 中文子幕无线码一区tr| 3d成人动漫网站| 99久久久久久99| 九九九精品视频| 一个色综合网站| 久久蜜臀中文字幕| 精品视频在线视频| 成人中文字幕合集| 美腿丝袜亚洲色图| 一区二区三区四区在线| 久久久影视传媒| 欧美麻豆精品久久久久久| 国产99一区视频免费| 日韩高清不卡一区二区| 亚洲色图另类专区| 精品国产伦一区二区三区观看方式| 一本色道a无线码一区v| 国产成人自拍在线| 日韩高清不卡在线| 夜夜精品视频一区二区| 国产午夜精品一区二区三区视频 | 另类小说图片综合网| 亚洲一区二区美女| 中文字幕欧美一| 久久久久国产精品人| 日韩一级欧美一级| 欧美视频在线一区二区三区| 国产宾馆实践打屁股91| 精一区二区三区| 婷婷中文字幕一区三区| 一区二区三区中文在线| 成人免费看的视频| 理论片日本一区| 五月婷婷另类国产| 亚洲激情综合网| 国产精品久久网站| 国产性做久久久久久| 精品国产网站在线观看| 7777精品伊人久久久大香线蕉完整版 | 91精品国产日韩91久久久久久| 91片在线免费观看| 成人黄色av电影| 国产精品一卡二卡| 极品美女销魂一区二区三区| 天堂va蜜桃一区二区三区漫画版| 亚洲激情图片一区| 亚洲免费在线播放| 亚洲视频在线观看三级| 国产精品久久久久久久久搜平片| 久久嫩草精品久久久精品一| 日韩欧美一区二区不卡| 日韩一级免费观看| 欧美一级精品大片| 日韩一级免费一区| 日韩精品一区二区三区中文不卡| 7878成人国产在线观看| 宅男噜噜噜66一区二区66| 欧美日韩aaa| 欧美日韩一区二区三区四区五区| 欧美午夜在线观看| 欧美日韩1234| 欧美一区二区成人| 日韩一级片在线观看| 精品三级av在线| 久久综合视频网| 国产欧美精品一区二区色综合| 国产午夜精品福利| 中文字幕不卡三区| 日韩理论片一区二区| 亚洲免费观看高清完整版在线观看| 亚洲欧美在线视频观看| 亚洲女女做受ⅹxx高潮| 一区二区三区鲁丝不卡| 亚洲综合免费观看高清在线观看| 亚洲亚洲精品在线观看| 污片在线观看一区二区| 美女视频一区二区三区| 国产一区二区三区在线观看精品| 国产成人av福利| 91在线观看污| 欧美日韩精品免费观看视频| 欧美一区二区三区免费观看视频 | 国产精品一区二区免费不卡 |