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

📄 prd_bufferexchange.lst

📁 读RF卡的源代码
💻 LST
📖 第 1 页 / 共 2 页
字号:
ARM COMPILER V2.40e,  PRD_BufferExchange                                                   12/12/07  14:35:10  PAGE 1   


ARM COMPILER V2.40e, COMPILATION OF MODULE PRD_BufferExchange
OBJECT MODULE PLACED IN .\PRD_BufferExchange.obj
COMPILER INVOKED BY: C:\DEV\Tools\Keil\ARM\BIN\CA.exe ..\..\..\..\LIB\PicoRead\u03\Level_2\COMMON\sources\PRD_BufferExch
                    -ange.c THUMB DEBUG PRINT(.\LISTING\PRD_BUFFEREXCHANGE.LST) TABS(4) PREPRINT(.\LISTING\PRD_BUFFEREXCHANGE.I) OBJECT(.\PRD
                    -_BufferExchange.obj) 

stmt  level    source

    1          //=============================================================================
    2          //                  Copyright (C) INSIDE Contactless 1998-2005
    3          //
    4          // INSIDE Contactless reserves the right to make changes, without notice,
    5          // to any product (including application note) herein to improve
    6          // reliability, functionality, or design. INSIDE Contactless advises its
    7          // customers to obtain the latest version of device data sheets to verify,
    8          // before placing orders, that the information being relied upon by the
    9          // customer is current.
   10          //
   11          // INSIDE Contactless makes no warranty that the use will not infringe any
   12          // third party patent, copyright or trademark.
   13          //
   14          // Information furnished by INSIDE Contactless is believed to be accurate
   15          // and reliable. However, INSIDE Contactless does not assume any liability
   16          // resulting from the application or use of any product described within.
   17          //
   18          // All rights are reserved. Reproduction in whole or in part is prohibited
   19          // without the written consent of the copyright owner.
   20          //
   21          //      Bat 11a,
   22          //      Parc Club du Golf,
   23          //      Z.A.C. du Pichaury                      Tel :   +33 (0)4.42.39.33.00
   24          //      13856 Aix-en-Provence Cedex 3           Fax :   +33 (0)4.42.39.63.19
   25          //      FRANCE                                  Email : info@insidefr.com
   26          //
   27          //-----------------------------------------------------------------------------
   28          // Project Code : PICOREAD LIBRARY
   29          // Project Name : PICOREAD LIBRARY
   30          // Module Name  : PRD_BufferExchange.c
   31          // Platform dev : Keil 礦ision 3 (IDE ) + Keil ARM Compiler
   32          // Target       : LPC2103 (ARM7TDMI Core)
   33          // Language     : C ANSI
   34          // Revision     : 1.0
   35          // Description  : Send & Receive commands
   36          //=============================================================================
   37          // When     Who Ver     What
   38          // 06-04-24 MCY 1.1     restructuration
   39          // 06-05-12 FPK 1.2     modifications
   40          //=============================================================================
   41          
   42          
   43          // C ANSI Defines 
   44          #include <string.h>
   45          
   46          // Defines for PicoRead
   47          #include "PRD_PicoReadRF_Pages_Parameters.h" // Definition of PicoRead chip registers
*** ERROR C318 IN LINE 47 OF ..\..\..\..\LIB\PicoRead\u03\Level_2\COMMON\sources\PRD_BufferExchange.c: can't open file '
             -PRD_PicoReadRF_Pages_Parameters.h'
   48          #include "PRD_Config.h"     // Reader Configuration functions
*** ERROR C318 IN LINE 48 OF ..\..\..\..\LIB\PicoRead\u03\Level_2\COMMON\sources\PRD_BufferExchange.c: can't open file '
             -PRD_Config.h'
   49          #include "PRD_RF_Comm.h" 
*** ERROR C318 IN LINE 49 OF ..\..\..\..\LIB\PicoRead\u03\Level_2\COMMON\sources\PRD_BufferExchange.c: can't open file '
             -PRD_RF_Comm.h'
   50          
   51          // Functions for Buffer exchange
ARM COMPILER V2.40e,  PRD_BufferExchange                                                   12/12/07  14:35:10  PAGE 2   

   52          #include "PRD_Protocols_Defines.h"   //Protocols defines
*** ERROR C318 IN LINE 52 OF ..\..\..\..\LIB\PicoRead\u03\Level_2\COMMON\sources\PRD_BufferExchange.c: can't open file '
             -PRD_Protocols_Defines.h'
   53          #include "PRD_BufferExchange.h"
*** ERROR C318 IN LINE 53 OF ..\..\..\..\LIB\PicoRead\u03\Level_2\COMMON\sources\PRD_BufferExchange.c: can't open file '
             -PRD_BufferExchange.h'
   54          
   55          
   56          // Defines for the target
   57          #include "Target.H"             // Definition of processor registers  & Low level functions to be modified accor
             -ding to the target, and the user needs
*** ERROR C318 IN LINE 57 OF ..\..\..\..\LIB\PicoRead\u03\Level_2\COMMON\sources\PRD_BufferExchange.c: can't open file '
             -Target.H'
   58          
   59           #if ((defined PAYPASS) || (defined FULL))
               #include "PayPass_TTAL1_Default_Anticollision_Options.h"
               #include "PayPass_Anticollision.h"
               #endif
   63          
   64          
   65          //Global variable 
   66          unsigned char   g_bRFReceiveEOFA=0;
   67          unsigned char   g_bRFReceiveEOFB=1;
   68          unsigned char   g_bDataBitsReceived;
   69          unsigned char   g_bPicoReadStatus;
   70          unsigned short  g_lDataBytesReceived;
   71          unsigned char   g_bBitsToReceive=0;
   72          
   73          
   74          
   75          //-----------------------------------------------------------------------------
   76          // Function name : v_fnSendBuffer(BYTE p_bParam, BYTE p_bNbBytestoSend,
   77          //                 BYTE p_bNbBitstoSend, BYTE* p_pabDatain)
   78          //-----------------------------------------------------------------------------
   79          // Description : Transmit data to the chip.
   80          //
   81          // IN       :   p_bParam           : Communication parameter including :
   82          //                                   b6..b0  : RFU
   83          //                                   b7      : Send CRC
   84          //              p_pabBuffer = Pointer to Buffer of the datas to send
   85          //              p_pStructReader = Pointer to the according StructReader Structure
   86          //              p_pwRFPicoReadByteCounter = Pointer to number of complete bytes to send including CRC16
   87          //              p_pbRFPicoReadBitCounter = Pointer to number of valid bits in the last byte to send (ISO 
             -A only)
   88          //
   89          //
   90          // OUT      :   *p_pwRFPicoReadByteCounter : Number of data bytes sent
   91          //              *p_pbRFPicoReadBitCounter  : Number of data bits sent (ISO A only)
   92          //              "*p_pabBuffer"        : Contains datas just sent
   93          //             
   94          //
   95          // RETURN   :   - none -
   96          //
   97          // Notes    :   - none -
   98          //-----------------------------------------------------------------------------
   99          void v_fnSendBuffer(unsigned char p_bParam, unsigned short p_lNbBytestoSend, unsigned char p_bNbBitstoSen
             -d,unsigned char* p_pabBuffer,StructReader* p_pStructReader)
*** ERROR C25 IN LINE 99 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: syntax error near 
             -'*'
  100          {
*** WARNING C35 IN LINE 100 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'v_fnSendBuffer
             -': uses old-style declarator
  101   1         unsigned short* p_pwRFPicoReadByteCounter;
  102   1         unsigned char*  p_pbRFPicoReadBitCounter;
  103   1         unsigned char   l_bTemp;
  104   1      
ARM COMPILER V2.40e,  PRD_BufferExchange                                                   12/12/07  14:35:10  PAGE 3   

  105   1      
  106   1         if(p_pStructReader->s_bRProtocol == SONY_PROTOCOL)
*** ERROR C67 IN LINE 106 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'p_pStructReader'
             -: undefined identifier
*** ERROR C67 IN LINE 106 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'SONY_PROTOCOL': 
             -undefined identifier
  107   1         {
  108   2             for(l_bTemp=p_lNbBytestoSend+7;l_bTemp>7;l_bTemp--) 
  109   2             {
  110   3                  p_pabBuffer[l_bTemp] = p_pabBuffer[l_bTemp-8];
  111   3             }
  112   2             v_fnTypeCHeader(&p_pabBuffer[0]);
*** WARNING C140 IN LINE 112 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'v_fnTypeCHead
             -er' undefined; assuming 'extern int v_fnTypeCHeader()'
  113   2             p_lNbBytestoSend += 8;   
  114   2         } 
  115   1      
  116   1         v_fnDefineTimeout(p_pStructReader->s_bRTimeoutUsed);
*** ERROR C67 IN LINE 116 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'p_pStructReader'
             -: undefined identifier
*** WARNING C140 IN LINE 116 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'v_fnDefineTim
             -eout' undefined; assuming 'extern int v_fnDefineTimeout()'
  117   1      
  118   1         // EMIT DATA
  119   1         p_pwRFPicoReadByteCounter=&p_lNbBytestoSend;
  120   1         p_pbRFPicoReadBitCounter=&p_bNbBitstoSend;
  121   1      
  122   1         if(p_pStructReader->s_bRProtocol == ISOA_PROTOCOL) 
*** ERROR C67 IN LINE 122 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'p_pStructReader'
             -: undefined identifier
*** ERROR C67 IN LINE 122 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'ISOA_PROTOCOL': 
             -undefined identifier
  123   1         {        
  124   2               #if ((defined PAYPASS) || (defined FULL))
                       //Debug OC 31/8         WAIT 500祍 before a resending
                       delay_us(_FDT_A_PCD_MIN); 
                   //to do :   if((p_lNbBytestoSend!=0) && (p_pabBuffer[p_lNbBytestoSend-1]&0x01) )   p_pStructReader->s_bRTi
             -meoutUsed-=
               
               
                       #endif
  131   2              *p_pbRFPicoReadBitCounter = p_bNbBitstoSend;
  132   2         }
  133   1         #if ((defined PAYPASS) || (defined FULL))
                  else if(p_pStructReader->s_bRProtocol == ISOB_PROTOCOL)
                  {
                   delay_us(_FDT_A_PCD_MIN);
                  *p_pbRFPicoReadBitCounter = 0;
                   } 
                  #endif
  140   1      
  141   1         else 
  142   1         {
  143   2              
  144   2              *p_pbRFPicoReadBitCounter = 0;
  145   2         }   
  146   1      
  147   1      
  148   1         if(bit_testChar(&p_bParam,7)) 
*** WARNING C140 IN LINE 148 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'bit_testChar'
             - undefined; assuming 'extern int bit_testChar()'
  149   1         {
  150   2              v_fnSendRFCommand( (p_pStructReader->s_bRProtocol | P5_CRC_EN),p_pabBuffer,p_pwRFPicoReadByteCounter
             -,p_pbRFPicoReadBitCounter) ;
*** ERROR C67 IN LINE 150 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'p_pStructReader'
             -: undefined identifier
ARM COMPILER V2.40e,  PRD_BufferExchange                                                   12/12/07  14:35:10  PAGE 4   

*** ERROR C67 IN LINE 150 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'P5_CRC_EN': unde
             -fined identifier
*** WARNING C140 IN LINE 150 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'v_fnSendRFCom
             -mand' undefined; assuming 'extern int v_fnSendRFCommand()'

⌨️ 快捷键说明

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