Home | History | Annotate | Download | only in src

Lines Matching refs:DesfireCapContainer

252         (*NdefMap->DataCount == NdefMap->DesfireCapContainer.NdefDataLen))
264 NdefMap->DesfireCapContainer.IsNlenPresentFlag = 0;
265 NdefMap->DesfireCapContainer.SkipNlenBytesFlag = 0;
470 BufIndex = (uint8_t)(( NdefMap->DesfireCapContainer.IsNlenPresentFlag == 1 )?
474 NdefMap->DesfireCapContainer.NdefDataLen = ((*NdefMap->DataCount == 0)?
478 NdefMap->DesfireCapContainer.NdefDataLen);
482 if ( (NdefMap->DesfireCapContainer.NdefDataLen) <= (*NdefMap->SendRecvLength - \
485 SizeToCpy = NdefMap->DesfireCapContainer.NdefDataLen;
495 if ( NdefMap->DesfireCapContainer.NdefDataLen == 0x00 )
543 if (*NdefMap->DataCount < NdefMap->DesfireCapContainer.NdefDataLen )
555 NdefMap->DesfireCapContainer.IsNlenPresentFlag = 1;
577 if (*NdefMap->DataCount == NdefMap->DesfireCapContainer.NdefDataLen )
859 if ( (NdefMap->DesfireCapContainer.SkipNlenBytesFlag == 1) && ((BytesRead == 1) || (BytesRead == 2 )))
891 NdefMap->DesfireCapContainer.NdefDataLen = NLength;
996 NdefMap->DesfireCapContainer.NdefDataLen = (uint16_t)(*NdefMap->WrNdefPacketLength);
1195 NdefMap->SendRecvBuf[5] = (uint8_t)((NdefMap->DesfireCapContainer.NdefMsgFid) >> PH_FRINFC_NDEFMAP_DESF_SHL8);
1196 NdefMap->SendRecvBuf[6] = (uint8_t)((NdefMap->DesfireCapContainer.NdefMsgFid) & (0x00ff));
1278 BufIndex = (uint8_t)(( NdefMap->DesfireCapContainer.SkipNlenBytesFlag == 1 ) ?
1281 if( ((BytesToRead == 1) || (BytesToRead == 2)) && (NdefMap->DesfireCapContainer.SkipNlenBytesFlag == 1))
1351 NdefMap->DesfireCapContainer.SkipNlenBytesFlag = 0;
1367 NdefMap->DesfireCapContainer.SkipNlenBytesFlag = 1;
1372 if( (NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex) >= (uint32_t)( NdefMap->DesfireCapContainer.MaxCmdSize ))
1375 noOfBytesToWrite = ( ( NdefMap->DesfireCapContainer.SkipNlenBytesFlag == 1) ?
1376 NdefMap->DesfireCapContainer.MaxCmdSize :
1377 (NdefMap->DesfireCapContainer.MaxCmdSize - PH_FRINFC_NDEFMAP_DESF_NLEN_SIZE_IN_BYTES));
1387 if ( NdefMap->DesfireCapContainer.SkipNlenBytesFlag == 1 )
1476 if ( (NdefMap->DesfireCapContainer.ReadAccess == 0x00) &&
1477 (NdefMap->DesfireCapContainer.WriteAccess == 0x00 ))
1485 else if((NdefMap->DesfireCapContainer.ReadAccess == 0x00) &&
1486 (NdefMap->DesfireCapContainer.WriteAccess == 0xFF ))
1550 NdefMap->DesfireCapContainer.MaxRespSize =
1555 NdefMap->DesfireCapContainer.MaxRespSize =
1567 NdefMap->DesfireCapContainer.MaxCmdSize =
1572 NdefMap->DesfireCapContainer.MaxCmdSize =
1578 if( (NdefMap->DesfireCapContainer.MaxRespSize < 0x0f) ||
1579 ( NdefMap->DesfireCapContainer.MaxCmdSize == 0x00))
1603 NdefMap->DesfireCapContainer.NdefMsgFid = ( (((uint16_t)NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_NDEF_FILEID_BYTE_FIRST_INDEX])<<PH_FRINFC_NDEFMAP_DESF_SHL8)+ \
1609 if ( (NdefMap->DesfireCapContainer.NdefMsgFid == 0xFFFF) ||
1610 (NdefMap->DesfireCapContainer.NdefMsgFid == 0xE102) ||
1611 (NdefMap->DesfireCapContainer.NdefMsgFid == 0xE103) ||
1612 (NdefMap->DesfireCapContainer.NdefMsgFid == 0x3F00) ||
1613 (NdefMap->DesfireCapContainer.NdefMsgFid == 0x3FFF ) )
1621 NdefMap->DesfireCapContainer.NdefFileSize =
1628 if ( ((NdefMap->DesfireCapContainer.NdefFileSize -2) <= 0x0004 ) ||
1629 ((NdefMap->DesfireCapContainer.NdefFileSize -2) == 0xFFFD ) )
1638 NdefMap->DesfireCapContainer.ReadAccess = NdefMap->\
1642 NdefMap->DesfireCapContainer.WriteAccess = NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_NDEF_FILEWR_ACCESS_INDEX];
1679 }/* if NdefMap->DesfireCapContainer.MaxRespSize < 0x0f */
1698 NdefMap->DesfireCapContainer.SkipNlenBytesFlag =0;
1705 if((NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex) >= NdefMap->DesfireCapContainer.MaxRespSize)
1709 Now, check do we have NdefMap->DesfireCapContainer.MaxRespSize to read ? */
1711 BytesToRead = (((NdefMap->DesfireCapContainer.NdefDataLen - *NdefMap->DataCount) >=
1712 NdefMap->DesfireCapContainer.MaxRespSize) ?
1713 NdefMap->DesfireCapContainer.MaxRespSize :
1714 (NdefMap->DesfireCapContainer.NdefDataLen -
1721 if(BytesToRead >= (uint16_t)(NdefMap->DesfireCapContainer.NdefDataLen - *NdefMap->DataCount))
1723 BytesToRead = (NdefMap->DesfireCapContainer.NdefDataLen - *NdefMap->DataCount);
1727 NdefMap->DesfireCapContainer.SkipNlenBytesFlag =