Home | History | Annotate | Download | only in src

Lines Matching refs:SendRecvBuf

148     if( ( NdefMap->SendRecvBuf[*(NdefMap->SendRecvLength)- 1] == PH_FRINFC_DESF_NATIVE_GETVER_RESP) )
172 if( ( NdefMap->SendRecvBuf[*(NdefMap->SendRecvLength)- 1] == PH_FRINFC_DESF_NATIVE_GETVER_RESP) )
198 if( ( NdefMap->SendRecvBuf[*(NdefMap->SendRecvLength)- 1] == 0xAF) )
205 NdefMap->AddInfo.Type4Info.MajorVersion = NdefSmtCrdFmt->SendRecvBuf[3];
206 NdefMap->AddInfo.Type4Info.MinorVersion = NdefSmtCrdFmt->SendRecvBuf[4];
387 if((NdefMap->SendRecvBuf[BuffIndex] <= 0x03) ||
388 (NdefMap->SendRecvBuf[BuffIndex] >= 0x06) )
397 ((NdefMap->SendRecvBuf[BuffIndex] == 0x04)?
425 NdefMap->SendRecvBuf[0] = 0x00;
426 NdefMap->SendRecvBuf[1] = 0xD6;
430 NdefMap->SendRecvBuf[2] = 0x00; /* p1 */
431 NdefMap->SendRecvBuf[3] = 0x00; /* p2 */
434 NdefMap->SendRecvBuf[4] = 0x02;
437 NdefMap->SendRecvBuf[5] = (uint8_t)(*NdefMap->DataCount >> PH_FRINFC_NDEFMAP_DESF_SHL8);
438 NdefMap->SendRecvBuf[6] = (uint8_t)(*NdefMap->DataCount & (0x00ff));
475 ( (((uint16_t)NdefMap->SendRecvBuf[
477 NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_CCLEN_BYTE_SECOND_INDEX]):
509 (&(NdefMap->SendRecvBuf[BufIndex])),
526 (NdefMap->SendRecvBuf),/* to avoid the length of the NDEF File*/
687 if(( NdefMap->SendRecvBuf[(*(NdefMap->SendRecvLength) - 2)] ==
689 (NdefMap->SendRecvBuf[(*(NdefMap->SendRecvLength) - 1)] ==
718 if(( NdefMap->SendRecvBuf[(*(NdefMap->SendRecvLength) - 2)] ==
720 (NdefMap->SendRecvBuf[(*(NdefMap->SendRecvLength) - 1)] ==
723 if(( NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_SW1_INDEX] ==
725 (NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_SW2_INDEX] ==
756 if(( NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_SW1_INDEX] == PH_FRINFC_NDEFMAP_DESF_RAPDU_SW1_BYTE) &&
757 (NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_SW2_INDEX] == PH_FRINFC_NDEFMAP_DESF_RAPDU_SW2_BYTE))
807 if( (NdefMap->SendRecvBuf[(*(NdefMap->SendRecvLength)-2)] == PH_FRINFC_NDEFMAP_DESF_RAPDU_SW1_BYTE) &&
808 (NdefMap->SendRecvBuf[(*(NdefMap->SendRecvLength)-1)] == PH_FRINFC_NDEFMAP_DESF_RAPDU_SW2_BYTE))
871 ((NdefMap->SendRecvBuf[(*NdefMap->SendRecvLength-2)] == PH_FRINFC_NDEFMAP_DESF_RAPDU_SW1_BYTE) &&
872 (NdefMap->SendRecvBuf[(*NdefMap->SendRecvLength-1)] == PH_FRINFC_NDEFMAP_DESF_RAPDU_SW2_BYTE)))
879 NLength = ( (((uint16_t)NdefMap->SendRecvBuf[0])<<PH_FRINFC_NDEFMAP_DESF_SHL8)+ \
880 NdefMap->SendRecvBuf[1]);
950 if( (NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_SW1_INDEX] == PH_FRINFC_NDEFMAP_DESF_RAPDU_SW1_BYTE) &&
951 (NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_SW2_INDEX] == PH_FRINFC_NDEFMAP_DESF_RAPDU_SW2_BYTE))
981 if((NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_SW1_INDEX] == PH_FRINFC_NDEFMAP_DESF_RAPDU_SW1_BYTE) &&
982 (NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_SW2_INDEX] == PH_FRINFC_NDEFMAP_DESF_RAPDU_SW2_BYTE))
1053 NdefMap->SendRecvBuf[0] = 0x00; /* cls */
1054 NdefMap->SendRecvBuf[1] = 0xa4; /* ins */
1055 NdefMap->SendRecvBuf[2] = 0x04; /* p1 */
1056 NdefMap->SendRecvBuf[3] = 0x00; /* p2 */
1057 NdefMap->SendRecvBuf[4] = 0x07; /* lc */
1060 NdefMap->SendRecvBuf[5] = 0xd2;
1061 NdefMap->SendRecvBuf[6] = 0x76;
1062 NdefMap->SendRecvBuf[7] = 0x00;
1063 NdefMap->SendRecvBuf[8] = 0x00;
1064 NdefMap->SendRecvBuf[9] = 0x85;
1065 NdefMap->SendRecvBuf[10] = 0x01;
1079 NdefMap->SendRecvBuf[3] = DESFIRE_EV1_P2_OFFSET_VALUE; */
1080 NdefMap->SendRecvBuf[11] = 0x01;
1082 NdefMap->SendRecvBuf[12] = 0x00;
1088 NdefMap->SendRecvBuf[3] = 0x00; /* p2 */
1089 NdefMap->SendRecvBuf[11] = 0x00;
1101 NdefMap->SendRecvBuf[11] = 0x01;
1102 NdefMap->SendRecvBuf[12] = 0x00;
1108 NdefMap->SendRecvBuf[11] = 0x00;
1118 NdefMap->SendRecvBuf[11] = 0x00;
1172 NdefMap->SendRecvBuf[0] = 0x00; /* cls */
1173 NdefMap->SendRecvBuf[1] = 0xa4; /* ins */
1174 NdefMap->SendRecvBuf[2] = 0x00; /* p1 */
1175 NdefMap->SendRecvBuf[3] = 0x00; /* p2 */
1176 NdefMap->SendRecvBuf[4] = 0x02; /* lc */
1181 NdefMap->SendRecvBuf[3] = DESFIRE_EV1_P2_OFFSET_VALUE; /* p2 */
1189 NdefMap->SendRecvBuf[5] = 0xe1;
1190 NdefMap->SendRecvBuf[6] = 0x03;
1195 NdefMap->SendRecvBuf[5] = (uint8_t)((NdefMap->DesfireCapContainer.NdefMsgFid) >> PH_FRINFC_NDEFMAP_DESF_SHL8);
1196 NdefMap->SendRecvBuf[6] = (uint8_t)((NdefMap->DesfireCapContainer.NdefMsgFid) & (0x00ff));
1233 NdefMap->SendRecvBuf[0] = 0x00;
1234 NdefMap->SendRecvBuf[1] = 0xb0;
1235 NdefMap->SendRecvBuf[2] = 0x00; /* p1 */
1236 NdefMap->SendRecvBuf[3] = 0x00; /* p2 */
1237 NdefMap->SendRecvBuf[4] = 0x0F; /* le */
1250 NdefMap->SendRecvBuf[0] = 0x00;
1251 NdefMap->SendRecvBuf[1] = 0xb0;
1258 NdefMap->SendRecvBuf[2] = 0;
1259 NdefMap->SendRecvBuf[3] = 0;
1267 NdefMap->SendRecvBuf[2] = (uint8_t)((DataCnt)>> PH_FRINFC_NDEFMAP_DESF_SHL8);
1268 NdefMap->SendRecvBuf[3] = (uint8_t)((DataCnt)& (0x00ff));
1289 NdefMap->SendRecvBuf[4]=(uint8_t) BytesToRead ;
1343 NdefMap->SendRecvBuf[0] = 0x00;
1344 NdefMap->SendRecvBuf[1] = 0xD6;
1349 NdefMap->SendRecvBuf[2] = 0x00; /* p1 */
1350 NdefMap->SendRecvBuf[3] = 0x00; /* p2 */
1363 NdefMap->SendRecvBuf[2] = (uint8_t)((DataCnt)>> PH_FRINFC_NDEFMAP_DESF_SHL8);
1364 NdefMap->SendRecvBuf[3] = (uint8_t)((DataCnt)& (0x00ff));
1391 NdefMap->SendRecvBuf[4] = (uint8_t)noOfBytesToWrite;
1396 NdefMap->SendRecvBuf[5] = 0x00;
1397 NdefMap->SendRecvBuf[6] = 0x00;
1400 NdefMap->SendRecvBuf[4] = (uint8_t)noOfBytesToWrite + PH_FRINFC_NDEFMAP_DESF_NLEN_SIZE_IN_BYTES;
1403 /* copy the data to SendRecvBuf from the apdu buffer*/
1404 (void)memcpy( &NdefMap->SendRecvBuf[index],
1411 NdefMap->SendRecvBuf[4] = (uint8_t)noOfBytesToWrite;
1413 /* copy the data to SendRecvBuf from the apdu buffer*/
1414 (void)memcpy( &NdefMap->SendRecvBuf[5],
1520 CapContSize = ( (((uint16_t)NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_CCLEN_BYTE_FIRST_INDEX])<<8)+ \
1521 NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_CCLEN_BYTE_SECOND_INDEX]);
1548 ((((uint16_t)NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_MLE_BYTE_FIRST_INDEX]) << 8)\
1549 + NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_MLE_BYTE_SECOND_INDEX]);
1556 ((((uint16_t)NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_MLE_BYTE_FIRST_INDEX]) << 8)\
1557 +NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_MLE_BYTE_SECOND_INDEX]);
1564 ((((uint16_t)NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_MLC_BYTE_FIRST_INDEX])<<8)\
1565 + NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_MLC_BYTE_SECOND_INDEX]);
1573 ((((uint16_t)NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_MLC_BYTE_FIRST_INDEX])<<8)\
1574 +NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_MLC_BYTE_SECOND_INDEX]);
1597 if ( (( NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_TLV_LEN_INDEX]) > 0x00 ) &&
1598 (( NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_TLV_LEN_INDEX]) <= 0xFE )&&
1599 (( NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_TLV_LEN_INDEX]) == 0x06 ))
1603 NdefMap->DesfireCapContainer.NdefMsgFid = ( (((uint16_t)NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_NDEF_FILEID_BYTE_FIRST_INDEX])<<PH_FRINFC_NDEFMAP_DESF_SHL8)+ \
1604 NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_NDEF_FILEID_BYTE_SECOND_INDEX]);
1622 ((((uint16_t)NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_NDEF_FILESZ_BYTE_FIRST_INDEX])<<8)
1623 | (NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_NDEF_FILESZ_BYTE_SECOND_INDEX] & 0x00ff));
1639 SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_NDEF_FILERD_ACCESS_INDEX] ;
1642 NdefMap->DesfireCapContainer.WriteAccess = NdefMap->SendRecvBuf[PH_FRINFC_NDEFMAP_DESF_NDEF_FILEWR_ACCESS_INDEX];
1815 NdefMap->SendRecvBuf,
1817 NdefMap->SendRecvBuf,