Lines Matching refs:SendRecvBuf
432 (&(NdefMap->SendRecvBuf[13])),
475 (&(NdefMap->SendRecvBuf[13])),
481 (&( NdefMap->SendRecvBuf[13])),
504 (&(NdefMap->SendRecvBuf[PH_NFCFRI_NDEFMAP_FELI_RESP_HEADER_LEN+(NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex)])),
522 (&( NdefMap->SendRecvBuf[13])),
557 (&(NdefMap->SendRecvBuf[13])),
562 (&(NdefMap->SendRecvBuf[13+(NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex)])),
572 (&(NdefMap->SendRecvBuf[13])),
593 (&(NdefMap->SendRecvBuf[13])),
604 (&(NdefMap->SendRecvBuf[PH_NFCFRI_NDEFMAP_FELI_RESP_HEADER_LEN])),
787 NdefMap->SendRecvBuf[BufIndex] = 0x00;
790 NdefMap->SendRecvBuf[BufIndex] = 0x06;
795 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])),
799 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])),
807 NdefMap->SendRecvBuf[BufIndex] = 0x01;
811 NdefMap->SendRecvBuf[BufIndex] = 0x0B;
814 NdefMap->SendRecvBuf[BufIndex] = 0x00;
818 NdefMap->SendRecvBuf[BufIndex] = (uint8_t)(TrxLen/16);
826 NdefMap->SendRecvBuf[BufIndex] = 0x80;
830 NdefMap->SendRecvBuf[BufIndex] = (uint8_t)(i + 1);
839 NdefMap->SendRecvBuf[BufIndex] = 0x80;
843 NdefMap->SendRecvBuf[BufIndex] = (uint8_t)(NdefMap->Felica.CurBlockNo + i);
849 NdefMap->SendRecvBuf[PH_NFCFRI_NDEFMAP_FELI_PKT_LEN_INDEX] = (uint8_t) BufIndex;
861 NdefMap->SendRecvBuf,
863 NdefMap->SendRecvBuf,
986 NdefMap->SendRecvBuf[BufIndex] = 0x00;
990 NdefMap->SendRecvBuf[BufIndex] = 0x08;
995 (void)memcpy( (&(NdefMap->SendRecvBuf[BufIndex])),
999 (void)memcpy( (&(NdefMap->SendRecvBuf[BufIndex])),
1006 NdefMap->SendRecvBuf[BufIndex] = 0x01; /* Number of Services (n=1 ==> 0x80)*/
1009 NdefMap->SendRecvBuf[BufIndex] = 0x09; /* Service Code List*/
1012 NdefMap->SendRecvBuf[BufIndex] = 0x00; /* Service Code List*/
1015 NdefMap->SendRecvBuf[BufIndex] = 0x01; /* Number of Blocks to Write*/
1018 NdefMap->SendRecvBuf[BufIndex] = 0x80; /* 1st Block Element : byte 1*/
1021 NdefMap->SendRecvBuf[BufIndex] = 0x00; /* 1st Block Element : byte 2, block 1*/
1025 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.Version;
1028 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.Nbr;
1031 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.Nbw;
1034 NdefMap->SendRecvBuf[BufIndex] = (uint8_t)((NdefMap->FelicaAttrInfo.Nmaxb) >> 8);
1037 NdefMap->SendRecvBuf[BufIndex] = (uint8_t)((NdefMap->FelicaAttrInfo.Nmaxb) & (0x00ff));
1040 NdefMap->SendRecvBuf[BufIndex] = 0x00; /*RFU*/
1043 NdefMap->SendRecvBuf[BufIndex] = 0x00; /*RFU*/
1046 NdefMap->SendRecvBuf[BufIndex] = 0x00; /*RFU*/
1049 NdefMap->SendRecvBuf[BufIndex] = 0x00; /*RFU*/
1054 NdefMap->SendRecvBuf[BufIndex] = 0x0F; /* Write Flag Made On*/
1057 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.RdWrFlag; /* Read write flag*/
1061 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.LenBytes[0];
1064 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.LenBytes[1];
1067 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.LenBytes[2];
1085 NdefMap->SendRecvBuf[BufIndex] = 0x00; /* Write Flag Made Off*/
1088 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.RdWrFlag; /* Read write flag*/
1102 NdefMap->SendRecvBuf[BufIndex] = (uint8_t)(( TotNoWrittenBytes & 0x00ff0000) >> 16);
1105 NdefMap->SendRecvBuf[BufIndex] = (uint8_t)((TotNoWrittenBytes & 0x0000ff00) >> 8);
1108 NdefMap->SendRecvBuf[BufIndex] = (uint8_t)(TotNoWrittenBytes & 0x000000ff);
1118 ChkSum += NdefMap->SendRecvBuf[index];
1122 NdefMap->SendRecvBuf[BufIndex] = (uint8_t)(ChkSum >> 8);
1125 NdefMap->SendRecvBuf[BufIndex] = (uint8_t )(ChkSum & 0x00ff);
1129 NdefMap->SendRecvBuf[PH_NFCFRI_NDEFMAP_FELI_PKT_LEN_INDEX] = BufIndex;
1150 NdefMap->SendRecvBuf,
1152 NdefMap->SendRecvBuf,
1184 NdefMap->SendRecvBuf[BufIndex] = 0x00;
1188 NdefMap->SendRecvBuf[BufIndex] = 0x08;
1193 (void)memcpy( (&(NdefMap->SendRecvBuf[BufIndex])),
1197 (void)memcpy( (&(NdefMap->SendRecvBuf[BufIndex])),
1205 NdefMap->SendRecvBuf[BufIndex] = 0x01; /* Number of Services (n=1 ==> 0x80)*/
1208 NdefMap->SendRecvBuf[BufIndex] = 0x09; /* Service Code List*/
1211 NdefMap->SendRecvBuf[BufIndex] = 0x00; /* Service Code List*/
1214 NdefMap->SendRecvBuf[BufIndex] = 0x01; /* Number of Blocks to Write*/
1217 NdefMap->SendRecvBuf[BufIndex] = 0x80; /* 1st Block Element : byte 1*/
1220 NdefMap->SendRecvBuf[BufIndex] = 0x00; /* 1st Block Element : byte 2, block 1*/
1224 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.Version;
1227 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.Nbr;
1230 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.Nbw;
1233 NdefMap->SendRecvBuf[BufIndex] = (uint8_t)((NdefMap->FelicaAttrInfo.Nmaxb) >> 8);
1236 NdefMap->SendRecvBuf[BufIndex] = (uint8_t)((NdefMap->FelicaAttrInfo.Nmaxb) & (0x00ff));
1239 NdefMap->SendRecvBuf[BufIndex] = 0x00; /*RFU*/
1242 NdefMap->SendRecvBuf[BufIndex] = 0x00; /*RFU*/
1245 NdefMap->SendRecvBuf[BufIndex] = 0x00; /*RFU*/
1248 NdefMap->SendRecvBuf[BufIndex] = 0x00; /*RFU*/
1251 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.WriteFlag;
1254 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.RdWrFlag; /* Read write flag*/
1258 NdefMap->SendRecvBuf[BufIndex] = 0x00;
1261 NdefMap->SendRecvBuf[BufIndex] = 0x00;
1264 NdefMap->SendRecvBuf[BufIndex] = 0x00;
1270 ChkSum += NdefMap->SendRecvBuf[index];
1274 NdefMap->SendRecvBuf[BufIndex] = (uint8_t)(ChkSum >> 8);
1277 NdefMap->SendRecvBuf[BufIndex] = (uint8_t )(ChkSum & 0x00ff);
1281 NdefMap->SendRecvBuf[PH_NFCFRI_NDEFMAP_FELI_PKT_LEN_INDEX] = BufIndex;
1302 NdefMap->SendRecvBuf,
1304 NdefMap->SendRecvBuf,
1462 NdefMap->SendRecvBuf[BufIndex] = 0x00;
1466 NdefMap->SendRecvBuf[BufIndex] = 0x08;
1471 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])),
1475 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])),
1482 NdefMap->SendRecvBuf[BufIndex] = 0x01; /* Number of Services (n=1 ==> 0x80)*/
1485 NdefMap->SendRecvBuf[BufIndex] = 0x09; /* Service Code List*/
1488 NdefMap->SendRecvBuf[BufIndex] = 0x00; /* Service Code List*/
1523 NdefMap->SendRecvBuf[BufIndex] = 0;
1681 NdefMap->SendRecvBuf[BufIndex] = 0x80;
1686 NdefMap->SendRecvBuf[BufIndex] = NdefMap->Felica.CurBlockNo + i;
1692 NdefMap->SendRecvBuf[BufIndex] = CurBlk + i;
1701 (void)memcpy( (&(NdefMap->SendRecvBuf[BufIndex])),
1710 (void)memcpy( (&(NdefMap->SendRecvBuf[BufIndex])),
1728 (void)memcpy( (&(NdefMap->SendRecvBuf[BufIndex])),
1742 NdefMap->SendRecvBuf[BufIndex] =0x00;
1764 (void)memcpy( (&(NdefMap->SendRecvBuf[BufIndex])),
1782 (void)memcpy( (&(NdefMap->SendRecvBuf[BufIndex])),
1795 NdefMap->SendRecvBuf[BufIndex] =0x00;
1817 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])),
1836 NdefMap->SendRecvBuf[NoOfBlks -1 ]=TotNoBlks;
1841 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])),
1849 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])),
1864 NdefMap->SendRecvBuf[BufIndex] =0x00;
1881 NdefMap->SendRecvBuf[PH_NFCFRI_NDEFMAP_FELI_PKT_LEN_INDEX] = BufIndex;
1884 NdefMap->SendRecvBuf[NoOfBlks -1 ]=TotNoBlks;
1896 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.Nbw;
1902 NdefMap->SendRecvBuf[BufIndex] = 0x80;
1905 NdefMap->SendRecvBuf[BufIndex] = NdefMap->Felica.CurBlockNo + i;
1910 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])),
1918 NdefMap->SendRecvBuf[PH_NFCFRI_NDEFMAP_FELI_PKT_LEN_INDEX] = BufIndex;
1934 NdefMap->SendRecvBuf[BufIndex] = (uint8_t)( NdefMap->FelicaAttrInfo.Nmaxb - NdefMap->Felica.CurBlockNo);
1940 NdefMap->SendRecvBuf[BufIndex] = 0x80;
1942 NdefMap->SendRecvBuf[BufIndex] = NdefMap->Felica.CurBlockNo + i;
1947 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])),
1955 NdefMap->SendRecvBuf[PH_NFCFRI_NDEFMAP_FELI_PKT_LEN_INDEX] = BufIndex;
1997 NdefMap->SendRecvBuf[BufIndex] = BlkNo;
2005 NdefMap->SendRecvBuf[BufIndex] = 0x80;
2009 NdefMap->SendRecvBuf[BufIndex] = CurBlk + i;
2016 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])),
2027 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])),
2039 NdefMap->SendRecvBuf[BufIndex] =0x00;
2068 NdefMap->SendRecvBuf[PH_NFCFRI_NDEFMAP_FELI_PKT_LEN_INDEX] = BufIndex;
2115 NdefMap->SendRecvBuf,
2117 NdefMap->SendRecvBuf,
2153 NdefMap->SendRecvBuf[0] = 0x06;
2154 NdefMap->SendRecvBuf[1] = 0x00;
2155 NdefMap->SendRecvBuf[2] = sysCode[0];
2156 NdefMap->SendRecvBuf[3] = sysCode[1];
2157 NdefMap->SendRecvBuf[4] = 0x01;
2158 NdefMap->SendRecvBuf[5] = 0x03;
2181 NdefMap->SendRecvBuf,
2183 NdefMap->SendRecvBuf,
2252 (uint8_t *)&NdefMap->SendRecvBuf[2], 8);
2254 (uint8_t *)&NdefMap->SendRecvBuf[10], 8);
2255 NdefMap->psRemoteDevInfo->RemoteDevInfo.Felica_Info.SystemCode[1] = NdefMap->SendRecvBuf[18];
2256 NdefMap->psRemoteDevInfo->RemoteDevInfo.Felica_Info.SystemCode[0] = NdefMap->SendRecvBuf[19];
2342 if ( NdefMap->SendRecvBuf[10] == 0x00)
2438 if ( NdefMap->SendRecvBuf[10] == 0x00 )
2460 if ( NdefMap->SendRecvBuf[10] == 0x00)
2478 if ( NdefMap->SendRecvBuf[10] == 0x00)
2494 if(NdefMap->SendRecvBuf[1] == PH_NFCFRI_NDEFMAP_FELI_WR_RESP_BYTE )
2497 if ( NdefMap->SendRecvBuf[10] == 0x00 )
2585 }/*if ( NdefMap->SendRecvBuf[10] == 0x00 )*/
2594 }/*if(NdefMap->SendRecvBuf[1] == PH_NFCFRI_NDEFMAP_FELI_WR_RESP_BYTE )*/
2620 if(NdefMap->SendRecvBuf[1] == PH_NFCFRI_NDEFMAP_FELI_RD_RESP_BYTE )
2626 BytesToRecv = NdefMap->SendRecvBuf[12]*16;
2629 if ( NdefMap->SendRecvBuf[10] == 0x00)
2743 NdefMap->SendRecvBuf[BufIndex] = 0x00;
2747 NdefMap->SendRecvBuf[BufIndex] = 0x06;
2752 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])),
2756 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])),
2764 NdefMap->SendRecvBuf[BufIndex] = 0x01; /* Number of Services (n=1 ==> 0x80)*/
2767 NdefMap->SendRecvBuf[BufIndex] = 0x0B; /* Service Code List*/
2770 NdefMap->SendRecvBuf[BufIndex] = 0x00; /* Service Code List*/
2773 NdefMap->SendRecvBuf[BufIndex] = 0x01; /* Number of Blocks to read)*/
2776 NdefMap->SendRecvBuf[BufIndex] = 0x80; /* 1st Block Element : byte 1*/
2779 NdefMap->SendRecvBuf[BufIndex] = 0x00; /* 1st Block Element : byte 2, block 1*/
2782 NdefMap->SendRecvBuf[PH_NFCFRI_NDEFMAP_FELI_PKT_LEN_INDEX] = BufIndex;
2802 NdefMap->SendRecvBuf,
2804 NdefMap->SendRecvBuf,
2821 result = (uint8_t)(phFriNfc_Felica_MemCompare( (void *)(&(NdefMap->SendRecvBuf[2])),
2896 Nmaxb1 = NdefMap->SendRecvBuf[16];
2897 Nmaxb2 = NdefMap->SendRecvBuf[17];
2904 if ( NdefMap->SendRecvBuf[14] > Nmaxblk )
2913 if ( (NdefMap->SendRecvBuf[15] > Nmaxblk) ||
2914 ((NdefMap->SendRecvBuf[22] != 0x00) && (NdefMap->SendRecvBuf[22] !=0x0f ))||
2915 ( (NdefMap->SendRecvBuf[23] != 0x00) && (NdefMap->SendRecvBuf[23] !=0x01 ))||
2916 ( NdefMap->SendRecvBuf[18] != 0x00) ||
2917 ( NdefMap->SendRecvBuf[19] != 0x00) ||
2918 ( NdefMap->SendRecvBuf[20] != 0x00) ||
2919 ( NdefMap->SendRecvBuf[21] != 0x00))
2927 PH_NFCFRI_NDEFMAP_FELI_CAL_LEN_BYTES( NdefMap->SendRecvBuf[24],
2928 NdefMap->SendRecvBuf[25],
2929 NdefMap->SendRecvBuf[26],
2944 NdefMap->FelicaAttrInfo.Version = NdefMap->SendRecvBuf[PH_NFCFRI_NDEFMAP_FELI_VERSION_INDEX];
2945 NdefMap->FelicaAttrInfo.Nbr = NdefMap->SendRecvBuf[14];
2946 NdefMap->FelicaAttrInfo.Nbw = NdefMap->SendRecvBuf[15];
2950 NdefMap->FelicaAttrInfo.WriteFlag = NdefMap->SendRecvBuf[22];
2951 NdefMap->FelicaAttrInfo.RdWrFlag = NdefMap->SendRecvBuf[23];
2954 ChkSum1 = NdefMap->SendRecvBuf[27];
2955 ChkSum2 = NdefMap->SendRecvBuf[28];
2960 status = phFriNfc_Felica_HCalCheckSum(NdefMap->SendRecvBuf,
2985 NdefMap->FelicaAttrInfo.LenBytes[0] = NdefMap->SendRecvBuf[24];
2986 NdefMap->FelicaAttrInfo.LenBytes[1] = NdefMap->SendRecvBuf[25];
2987 NdefMap->FelicaAttrInfo.LenBytes[2] = NdefMap->SendRecvBuf[26];