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

📄 prd_bufferexchange.lst

📁 读RF卡的源代码
💻 LST
📖 第 1 页 / 共 2 页
字号:
  151   2         }
  152   1         else 
  153   1         {
  154   2              v_fnSendRFCommand( (p_pStructReader->s_bRProtocol),p_pabBuffer,p_pwRFPicoReadByteCounter,p_pbRFPicoRe
             -adBitCounter) ;
*** ERROR C67 IN LINE 154 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'p_pStructReader'
             -: undefined identifier
  155   2         }
  156   1      
  157   1         v_fnTimeOutStart();
*** WARNING C140 IN LINE 157 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'v_fnTimeOutSt
             -art' undefined; assuming 'extern int v_fnTimeOutStart()'
  158   1      
  159   1         delay_us(50);   ////// FP 20/09/07
*** WARNING C140 IN LINE 159 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'delay_us' und
             -efined; assuming 'extern int delay_us()'
  160   1      
  161   1         // REINITIALIZE BIT COUNTER TO PREPARE RECEPTION
  162   1         p_pbRFPicoReadBitCounter = 0;
  163   1      }
*** WARNING C47 IN LINE 99 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'StructReader': 
             -unreferenced parameter
  164          
  165          
  166          //-----------------------------------------------------------------------------
  167          // Function name : b_fnReceiveBuffer(BYTE p_bParam, long* p_lNbBytesReceived,
  168          //                 BYTE* p_pbNbBitsReceived, BYTE* p_pabDataout)
  169          //-----------------------------------------------------------------------------
  170          // Description : Receive data from the chip.
  171          //
  172          // IN       :   p_bParam           : Communication parameter including :
  173          //                                   b4..b0  : RFU
  174          //                                   b5      : Receive SOF only (PicoPass only)
  175          //                                   b6      : Verify CRC
  176          //                                   b7      : RFU
  177          //              p_pabBuffer = Pointer to Buffer in which received datas will be stored
  178          //              p_pStructReader = Pointer to the according StructReader Structure
  179          //              p_pwRFPicoReadByteCounter = Pointer to number of complete bytes to receive including CRC16
  180          //              p_pbRFPicoReadBitCounter = Pointer to number of valid bits in the last byte to receive
  181          //              p_pbPicoReadStatus = Pointer to the Status byte received by the PicoRead chip after havin
             -g received the data bytes from the RF
  182          //              p_pbRFReceiveEOF = Pointer to value, that define (for ISO B) that EOF need to be taken into acco
             -unt or not. 
  183          //                  For ISOB        : p_pbRFReceiveEOF=1 
  184          //                  Other Protocols : p_pbRFReceiveEOF=0
  185          //
  186          //
  187          // OUT      :   *p_bNbBytesReceived : Number of data bytes received
  188          //              *p_pbNbBitsReceived  : Number of data bits received
  189          //              "*p_pabBuffer"       : Contains Datas received
  190          //
  191          // RETURN   :   Error code
  192          //
  193          // Notes    :   - none -
  194          //-----------------------------------------------------------------------------
  195          unsigned char b_fnReceiveBuffer(unsigned char p_bParam, unsigned char* p_pabBuffer,StructReader* p_pStruc
             -tReader,unsigned short* p_pwRFPicoReadByteCounter,unsigned char* p_pbRFPicoReadBitCounter,unsigned char* p_pbPicoReadSta
             -tus,unsigned char* p_pbRFReceiveEOF,unsigned char* p_pbBitsToReceive )
*** ERROR C25 IN LINE 195 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: syntax error near
             - '*'
  196          {
*** WARNING C35 IN LINE 196 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'b_fnReceiveBuf
ARM COMPILER V2.40e,  PRD_BufferExchange                                                   12/12/07  14:35:10  PAGE 5   

             -fer': uses old-style declarator
  197   1         unsigned char l_bReceiveOption;
  198   1         unsigned char l_bError;
  199   1       
  200   1         l_bReceiveOption = p_pStructReader->s_bRProtocol;
*** ERROR C67 IN LINE 200 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'p_pStructReader'
             -: undefined identifier
  201   1         
  202   1         if (bit_testChar(&p_bParam,5)) 
  203   1         {
  204   2              l_bReceiveOption |= 0x80;
  205   2         }
  206   1         l_bError=b_fnReceiveRFResponse(l_bReceiveOption,p_pabBuffer,p_pwRFPicoReadByteCounter,p_pbRFPicoReadBi
             -tCounter,p_pbPicoReadStatus,p_pbRFReceiveEOF,*p_pbBitsToReceive);
*** ERROR C67 IN LINE 206 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'p_pwRFPicoReadBy
             -teCounter': undefined identifier
*** ERROR C67 IN LINE 206 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'p_pbRFPicoReadBi
             -tCounter': undefined identifier
*** ERROR C67 IN LINE 206 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'p_pbPicoReadStat
             -us': undefined identifier
*** ERROR C67 IN LINE 206 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'p_pbRFReceiveEOF
             -': undefined identifier
*** ERROR C67 IN LINE 206 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'p_pbBitsToReceiv
             -e': undefined identifier
*** WARNING C140 IN LINE 206 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'b_fnReceiveRF
             -Response' undefined; assuming 'extern int b_fnReceiveRFResponse()'
  207   1      
  208   1        
  209   1         //IF RECEPTION OK REMOVE CRC IN SONY
  210   1          if(p_pStructReader->s_bRProtocol == SONY_PROTOCOL)
*** ERROR C67 IN LINE 210 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'p_pStructReader'
             -: undefined identifier
*** ERROR C67 IN LINE 210 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'SONY_PROTOCOL': 
             -undefined identifier
  211   1         { 
  212   2              if (  ((*p_pwRFPicoReadByteCounter) != 0) && ((*p_pwRFPicoReadByteCounter) >= 2))
*** ERROR C67 IN LINE 212 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'p_pwRFPicoReadBy
             -teCounter': undefined identifier
*** ERROR C67 IN LINE 212 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'p_pwRFPicoReadBy
             -teCounter': undefined identifier
  213   2               {  
  214   3                  (*p_pwRFPicoReadByteCounter) -= 2;
*** ERROR C67 IN LINE 214 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'p_pwRFPicoReadBy
             -teCounter': undefined identifier
  215   3               }
  216   2         }
  217   1      
  218   1         // ANALYZE DATA
  219   1         //PARITY ERROR
  220   1         if ((l_bError == ERR_NO_ERROR) && ((*p_pbPicoReadStatus) & STATUS_ERR_PE)) 
*** ERROR C67 IN LINE 220 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'ERR_NO_ERROR': u
             -ndefined identifier
*** ERROR C67 IN LINE 220 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'p_pbPicoReadStat
             -us': undefined identifier
*** ERROR C67 IN LINE 220 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'STATUS_ERR_PE': 
             -undefined identifier
  221   1         {
  222   2              l_bError = ERR_PAR;
*** ERROR C67 IN LINE 222 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'ERR_PAR': undefi
             -ned identifier
  223   2         }
  224   1      
  225   1         // COLLISION ?
  226   1         if((l_bError == ERR_NO_ERROR) && ((*p_pbPicoReadStatus) & STATUS_ERR_CD)) 
*** ERROR C67 IN LINE 226 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'ERR_NO_ERROR': u
             -ndefined identifier
ARM COMPILER V2.40e,  PRD_BufferExchange                                                   12/12/07  14:35:10  PAGE 6   

*** ERROR C67 IN LINE 226 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'p_pbPicoReadStat
             -us': undefined identifier
*** ERROR C67 IN LINE 226 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'STATUS_ERR_CD': 
             -undefined identifier
  227   1         {
  228   2              l_bError = ERR_COLL;
*** ERROR C67 IN LINE 228 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'ERR_COLL': undef
             -ined identifier
  229   2         }
  230   1      
  231   1         // CHECK CRC ?
  232   1         if ( (l_bError == ERR_NO_ERROR) && (bit_testChar(&p_bParam,6)) && (!b_fnCheckCRCValid(*p_pbPicoReadSta
             -tus,p_pwRFPicoReadByteCounter)) )
*** ERROR C67 IN LINE 232 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'ERR_NO_ERROR': u
             -ndefined identifier
*** ERROR C67 IN LINE 232 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'p_pbPicoReadStat
             -us': undefined identifier
*** ERROR C67 IN LINE 232 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'p_pwRFPicoReadBy
             -teCounter': undefined identifier
*** WARNING C140 IN LINE 232 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'b_fnCheckCRCV
             -alid' undefined; assuming 'extern int b_fnCheckCRCValid()'
  233   1         {        
  234   2              l_bError = ERR_CRC;
*** ERROR C67 IN LINE 234 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'ERR_CRC': undefi
             -ned identifier
  235   2         }
  236   1      
  237   1        // REMOVE 0xB2 0x4D IN SONY PROTOCOL
  238   1         if(p_pStructReader->s_bRProtocol == SONY_PROTOCOL) 
*** ERROR C67 IN LINE 238 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'p_pStructReader'
             -: undefined identifier
*** ERROR C67 IN LINE 238 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'SONY_PROTOCOL': 
             -undefined identifier
  239   1         {memcpy(&p_pabBuffer[0],&p_pabBuffer[2],*p_pwRFPicoReadByteCounter);  }
*** ERROR C67 IN LINE 239 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'p_pwRFPicoReadBy
             -teCounter': undefined identifier
*** WARNING C96 IN LINE 239 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'memcpy': too f
             -ew actual parameters
  240   1      
  241   1       
  242   1      
  243   1         return l_bError;
  244   1      }
*** WARNING C47 IN LINE 195 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: 'StructReader':
             - unreferenced parameter
  245          
  246          //-----------------------------------------------------------------------------
  247          // Function : void v_fnTypeCHeader(unsigned char* p_abBufferToFillwithHeader)
  248          //-----------------------------------------------------------------------------
  249          // Description : Fill the content of a buffer with the Felica header
  250          //
  251          // IN       :   p_abBufferToFillwithHeader[0..7]  :  Buffer to fill.  
  252          //
  253          // OUT      :   p_abBufferToFillwithHeader[0..7]  : Preamble and synchronous pattern bytes
  254          //
  255          //-----------------------------------------------------------------------------
  256          //-----------------------------------------------------------------------------
  257          void v_fnTypeCHeader(unsigned char* p_abBufferToFillwithHeader)
  258          {
*** ERROR C53 IN LINE 258 OF ..\..\..\..\LIB\PICOREAD\U03\LEVEL_2\COMMON\SOURCES\PRD_BUFFEREXCHANGE.C: redefinition of '
             -v_fnTypeCHeader': different return types
  259   1         p_abBufferToFillwithHeader[0] = 0x00;
  260   1         p_abBufferToFillwithHeader[1] = 0x00;
  261   1         p_abBufferToFillwithHeader[2] = 0x00;
  262   1         p_abBufferToFillwithHeader[3] = 0x00;
  263   1         p_abBufferToFillwithHeader[4] = 0x00;
ARM COMPILER V2.40e,  PRD_BufferExchange                                                   12/12/07  14:35:10  PAGE 7   

  264   1         p_abBufferToFillwithHeader[5] = 0x00;
  265   1         p_abBufferToFillwithHeader[6] = 0xB2;
  266   1         p_abBufferToFillwithHeader[7] = 0x4D;
  267   1      }
  268          
  269          

ARM COMPILATION COMPLETE.  13 WARNING(S),  43 ERROR(S)

⌨️ 快捷键说明

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