Lines Matching refs:BufIndex

766     uint16_t BufIndex=0,i=0;  in phFriNfc_Felica_HSetTransceiveForRead()  local
787 NdefMap->SendRecvBuf[BufIndex] = 0x00; in phFriNfc_Felica_HSetTransceiveForRead()
788 BufIndex ++; in phFriNfc_Felica_HSetTransceiveForRead()
790 NdefMap->SendRecvBuf[BufIndex] = 0x06; in phFriNfc_Felica_HSetTransceiveForRead()
791 BufIndex++; in phFriNfc_Felica_HSetTransceiveForRead()
795 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])), in phFriNfc_Felica_HSetTransceiveForRead()
799 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])), in phFriNfc_Felica_HSetTransceiveForRead()
804 BufIndex+=8; in phFriNfc_Felica_HSetTransceiveForRead()
807 NdefMap->SendRecvBuf[BufIndex] = 0x01; in phFriNfc_Felica_HSetTransceiveForRead()
808 BufIndex++; in phFriNfc_Felica_HSetTransceiveForRead()
811 NdefMap->SendRecvBuf[BufIndex] = 0x0B; in phFriNfc_Felica_HSetTransceiveForRead()
812 BufIndex++; in phFriNfc_Felica_HSetTransceiveForRead()
814 NdefMap->SendRecvBuf[BufIndex] = 0x00; in phFriNfc_Felica_HSetTransceiveForRead()
815 BufIndex++; in phFriNfc_Felica_HSetTransceiveForRead()
818 NdefMap->SendRecvBuf[BufIndex] = (uint8_t)(TrxLen/16); in phFriNfc_Felica_HSetTransceiveForRead()
819 BufIndex++; in phFriNfc_Felica_HSetTransceiveForRead()
826 NdefMap->SendRecvBuf[BufIndex] = 0x80; in phFriNfc_Felica_HSetTransceiveForRead()
827 BufIndex++; in phFriNfc_Felica_HSetTransceiveForRead()
830 NdefMap->SendRecvBuf[BufIndex] = (uint8_t)(i + 1); in phFriNfc_Felica_HSetTransceiveForRead()
831 BufIndex++; in phFriNfc_Felica_HSetTransceiveForRead()
839 NdefMap->SendRecvBuf[BufIndex] = 0x80; in phFriNfc_Felica_HSetTransceiveForRead()
840 BufIndex++; in phFriNfc_Felica_HSetTransceiveForRead()
843 NdefMap->SendRecvBuf[BufIndex] = (uint8_t)(NdefMap->Felica.CurBlockNo + i); in phFriNfc_Felica_HSetTransceiveForRead()
844 BufIndex++; in phFriNfc_Felica_HSetTransceiveForRead()
849 NdefMap->SendRecvBuf[PH_NFCFRI_NDEFMAP_FELI_PKT_LEN_INDEX] = (uint8_t) BufIndex; in phFriNfc_Felica_HSetTransceiveForRead()
852 NdefMap->SendLength = BufIndex; in phFriNfc_Felica_HSetTransceiveForRead()
964 uint8_t BufIndex=0, ErrFlag = FALSE; in phFriNfc_Felica_HUpdateAttrBlkForWrOp() local
986 NdefMap->SendRecvBuf[BufIndex] = 0x00; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
987 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
990 NdefMap->SendRecvBuf[BufIndex] = 0x08; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
991 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
995 (void)memcpy( (&(NdefMap->SendRecvBuf[BufIndex])), in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
999 (void)memcpy( (&(NdefMap->SendRecvBuf[BufIndex])), in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1004 BufIndex+=8; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1006 NdefMap->SendRecvBuf[BufIndex] = 0x01; /* Number of Services (n=1 ==> 0x80)*/ in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1007 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1009 NdefMap->SendRecvBuf[BufIndex] = 0x09; /* Service Code List*/ in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1010 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1012 NdefMap->SendRecvBuf[BufIndex] = 0x00; /* Service Code List*/ in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1013 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1015 NdefMap->SendRecvBuf[BufIndex] = 0x01; /* Number of Blocks to Write*/ in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1016 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1018 NdefMap->SendRecvBuf[BufIndex] = 0x80; /* 1st Block Element : byte 1*/ in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1019 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1021 NdefMap->SendRecvBuf[BufIndex] = 0x00; /* 1st Block Element : byte 2, block 1*/ in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1022 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1025 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.Version; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1026 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1028 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.Nbr; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1029 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1031 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.Nbw; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1032 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1034 NdefMap->SendRecvBuf[BufIndex] = (uint8_t)((NdefMap->FelicaAttrInfo.Nmaxb) >> 8); in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1035 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1037 NdefMap->SendRecvBuf[BufIndex] = (uint8_t)((NdefMap->FelicaAttrInfo.Nmaxb) & (0x00ff)); in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1038 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1040 NdefMap->SendRecvBuf[BufIndex] = 0x00; /*RFU*/ in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1041 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1043 NdefMap->SendRecvBuf[BufIndex] = 0x00; /*RFU*/ in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1044 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1046 NdefMap->SendRecvBuf[BufIndex] = 0x00; /*RFU*/ in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1047 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1049 NdefMap->SendRecvBuf[BufIndex] = 0x00; /*RFU*/ in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1050 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1054 NdefMap->SendRecvBuf[BufIndex] = 0x0F; /* Write Flag Made On*/ in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1055 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1057 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.RdWrFlag; /* Read write flag*/ in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1058 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1061 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.LenBytes[0]; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1062 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1064 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.LenBytes[1]; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1065 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1067 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.LenBytes[2]; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1068 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1085 NdefMap->SendRecvBuf[BufIndex] = 0x00; /* Write Flag Made Off*/ in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1086 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1088 … NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.RdWrFlag; /* Read write flag*/ in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1089 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1102 … NdefMap->SendRecvBuf[BufIndex] = (uint8_t)(( TotNoWrittenBytes & 0x00ff0000) >> 16); in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1103 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1105 NdefMap->SendRecvBuf[BufIndex] = (uint8_t)((TotNoWrittenBytes & 0x0000ff00) >> 8); in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1106 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1108 NdefMap->SendRecvBuf[BufIndex] = (uint8_t)(TotNoWrittenBytes & 0x000000ff); in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1109 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1122 NdefMap->SendRecvBuf[BufIndex] = (uint8_t)(ChkSum >> 8); in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1123 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1125 NdefMap->SendRecvBuf[BufIndex] = (uint8_t )(ChkSum & 0x00ff); in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1126 BufIndex++; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1129 NdefMap->SendRecvBuf[PH_NFCFRI_NDEFMAP_FELI_PKT_LEN_INDEX] = BufIndex; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1134 NdefMap->SendLength = BufIndex; in phFriNfc_Felica_HUpdateAttrBlkForWrOp()
1170 uint8_t BufIndex=0; in phFriNfc_Felica_HWrEmptyMsg() local
1184 NdefMap->SendRecvBuf[BufIndex] = 0x00; in phFriNfc_Felica_HWrEmptyMsg()
1185 BufIndex++; in phFriNfc_Felica_HWrEmptyMsg()
1188 NdefMap->SendRecvBuf[BufIndex] = 0x08; in phFriNfc_Felica_HWrEmptyMsg()
1189 BufIndex++; in phFriNfc_Felica_HWrEmptyMsg()
1193 (void)memcpy( (&(NdefMap->SendRecvBuf[BufIndex])), in phFriNfc_Felica_HWrEmptyMsg()
1197 (void)memcpy( (&(NdefMap->SendRecvBuf[BufIndex])), in phFriNfc_Felica_HWrEmptyMsg()
1203 BufIndex+=8; in phFriNfc_Felica_HWrEmptyMsg()
1205 NdefMap->SendRecvBuf[BufIndex] = 0x01; /* Number of Services (n=1 ==> 0x80)*/ in phFriNfc_Felica_HWrEmptyMsg()
1206 BufIndex++; in phFriNfc_Felica_HWrEmptyMsg()
1208 NdefMap->SendRecvBuf[BufIndex] = 0x09; /* Service Code List*/ in phFriNfc_Felica_HWrEmptyMsg()
1209 BufIndex++; in phFriNfc_Felica_HWrEmptyMsg()
1211 NdefMap->SendRecvBuf[BufIndex] = 0x00; /* Service Code List*/ in phFriNfc_Felica_HWrEmptyMsg()
1212 BufIndex++; in phFriNfc_Felica_HWrEmptyMsg()
1214 NdefMap->SendRecvBuf[BufIndex] = 0x01; /* Number of Blocks to Write*/ in phFriNfc_Felica_HWrEmptyMsg()
1215 BufIndex++; in phFriNfc_Felica_HWrEmptyMsg()
1217 NdefMap->SendRecvBuf[BufIndex] = 0x80; /* 1st Block Element : byte 1*/ in phFriNfc_Felica_HWrEmptyMsg()
1218 BufIndex++; in phFriNfc_Felica_HWrEmptyMsg()
1220 NdefMap->SendRecvBuf[BufIndex] = 0x00; /* 1st Block Element : byte 2, block 1*/ in phFriNfc_Felica_HWrEmptyMsg()
1221 BufIndex++; in phFriNfc_Felica_HWrEmptyMsg()
1224 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.Version; in phFriNfc_Felica_HWrEmptyMsg()
1225 BufIndex++; in phFriNfc_Felica_HWrEmptyMsg()
1227 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.Nbr; in phFriNfc_Felica_HWrEmptyMsg()
1228 BufIndex++; in phFriNfc_Felica_HWrEmptyMsg()
1230 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.Nbw; in phFriNfc_Felica_HWrEmptyMsg()
1231 BufIndex++; in phFriNfc_Felica_HWrEmptyMsg()
1233 NdefMap->SendRecvBuf[BufIndex] = (uint8_t)((NdefMap->FelicaAttrInfo.Nmaxb) >> 8); in phFriNfc_Felica_HWrEmptyMsg()
1234 BufIndex++; in phFriNfc_Felica_HWrEmptyMsg()
1236 NdefMap->SendRecvBuf[BufIndex] = (uint8_t)((NdefMap->FelicaAttrInfo.Nmaxb) & (0x00ff)); in phFriNfc_Felica_HWrEmptyMsg()
1237 BufIndex++; in phFriNfc_Felica_HWrEmptyMsg()
1239 NdefMap->SendRecvBuf[BufIndex] = 0x00; /*RFU*/ in phFriNfc_Felica_HWrEmptyMsg()
1240 BufIndex++; in phFriNfc_Felica_HWrEmptyMsg()
1242 NdefMap->SendRecvBuf[BufIndex] = 0x00; /*RFU*/ in phFriNfc_Felica_HWrEmptyMsg()
1243 BufIndex++; in phFriNfc_Felica_HWrEmptyMsg()
1245 NdefMap->SendRecvBuf[BufIndex] = 0x00; /*RFU*/ in phFriNfc_Felica_HWrEmptyMsg()
1246 BufIndex++; in phFriNfc_Felica_HWrEmptyMsg()
1248 NdefMap->SendRecvBuf[BufIndex] = 0x00; /*RFU*/ in phFriNfc_Felica_HWrEmptyMsg()
1249 BufIndex++; in phFriNfc_Felica_HWrEmptyMsg()
1251 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.WriteFlag; in phFriNfc_Felica_HWrEmptyMsg()
1252 BufIndex++; in phFriNfc_Felica_HWrEmptyMsg()
1254 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.RdWrFlag; /* Read write flag*/ in phFriNfc_Felica_HWrEmptyMsg()
1255 BufIndex++; in phFriNfc_Felica_HWrEmptyMsg()
1258 NdefMap->SendRecvBuf[BufIndex] = 0x00; in phFriNfc_Felica_HWrEmptyMsg()
1259 BufIndex++; in phFriNfc_Felica_HWrEmptyMsg()
1261 NdefMap->SendRecvBuf[BufIndex] = 0x00; in phFriNfc_Felica_HWrEmptyMsg()
1262 BufIndex++; in phFriNfc_Felica_HWrEmptyMsg()
1264 NdefMap->SendRecvBuf[BufIndex] = 0x00; in phFriNfc_Felica_HWrEmptyMsg()
1265 BufIndex++; in phFriNfc_Felica_HWrEmptyMsg()
1274 NdefMap->SendRecvBuf[BufIndex] = (uint8_t)(ChkSum >> 8); in phFriNfc_Felica_HWrEmptyMsg()
1275 BufIndex++; in phFriNfc_Felica_HWrEmptyMsg()
1277 NdefMap->SendRecvBuf[BufIndex] = (uint8_t )(ChkSum & 0x00ff); in phFriNfc_Felica_HWrEmptyMsg()
1278 BufIndex++; in phFriNfc_Felica_HWrEmptyMsg()
1281 NdefMap->SendRecvBuf[PH_NFCFRI_NDEFMAP_FELI_PKT_LEN_INDEX] = BufIndex; in phFriNfc_Felica_HWrEmptyMsg()
1286 NdefMap->SendLength = BufIndex; in phFriNfc_Felica_HWrEmptyMsg()
1445 uint8_t BufIndex=0, in phFriNfc_Felica_HUpdateData() local
1462 NdefMap->SendRecvBuf[BufIndex] = 0x00; in phFriNfc_Felica_HUpdateData()
1463 BufIndex++; in phFriNfc_Felica_HUpdateData()
1466 NdefMap->SendRecvBuf[BufIndex] = 0x08; in phFriNfc_Felica_HUpdateData()
1467 BufIndex++; in phFriNfc_Felica_HUpdateData()
1471 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])), in phFriNfc_Felica_HUpdateData()
1475 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])), in phFriNfc_Felica_HUpdateData()
1480 BufIndex+=8; in phFriNfc_Felica_HUpdateData()
1482 NdefMap->SendRecvBuf[BufIndex] = 0x01; /* Number of Services (n=1 ==> 0x80)*/ in phFriNfc_Felica_HUpdateData()
1483 BufIndex++; in phFriNfc_Felica_HUpdateData()
1485 NdefMap->SendRecvBuf[BufIndex] = 0x09; /* Service Code List*/ in phFriNfc_Felica_HUpdateData()
1486 BufIndex++; in phFriNfc_Felica_HUpdateData()
1488 NdefMap->SendRecvBuf[BufIndex] = 0x00; /* Service Code List*/ in phFriNfc_Felica_HUpdateData()
1489 BufIndex++; in phFriNfc_Felica_HUpdateData()
1523 NdefMap->SendRecvBuf[BufIndex] = 0; in phFriNfc_Felica_HUpdateData()
1524 BufIndex++; in phFriNfc_Felica_HUpdateData()
1527 NoOfBlks = BufIndex; in phFriNfc_Felica_HUpdateData()
1681 NdefMap->SendRecvBuf[BufIndex] = 0x80; in phFriNfc_Felica_HUpdateData()
1682 BufIndex++; in phFriNfc_Felica_HUpdateData()
1686 NdefMap->SendRecvBuf[BufIndex] = NdefMap->Felica.CurBlockNo + i; in phFriNfc_Felica_HUpdateData()
1687 BufIndex++; in phFriNfc_Felica_HUpdateData()
1692 NdefMap->SendRecvBuf[BufIndex] = CurBlk + i; in phFriNfc_Felica_HUpdateData()
1693 BufIndex++; in phFriNfc_Felica_HUpdateData()
1701 (void)memcpy( (&(NdefMap->SendRecvBuf[BufIndex])), in phFriNfc_Felica_HUpdateData()
1706 BufIndex += NdefMap->Felica.Wr_BytesRemained; in phFriNfc_Felica_HUpdateData()
1710 (void)memcpy( (&(NdefMap->SendRecvBuf[BufIndex])), in phFriNfc_Felica_HUpdateData()
1718 BufIndex += 16 - NdefMap->Felica.Wr_BytesRemained; in phFriNfc_Felica_HUpdateData()
1728 (void)memcpy( (&(NdefMap->SendRecvBuf[BufIndex])), in phFriNfc_Felica_HUpdateData()
1736BufIndex += (uint8_t)(NdefMap->ApduBufferSize - (16 - NdefMap->Felica.Wr_BytesRemained)); in phFriNfc_Felica_HUpdateData()
1742 NdefMap->SendRecvBuf[BufIndex] =0x00; in phFriNfc_Felica_HUpdateData()
1743 BufIndex++; in phFriNfc_Felica_HUpdateData()
1764 (void)memcpy( (&(NdefMap->SendRecvBuf[BufIndex])), in phFriNfc_Felica_HUpdateData()
1769 BufIndex += ((NdefMap->FelicaAttrInfo.Nbw - 1 )*16); in phFriNfc_Felica_HUpdateData()
1782 (void)memcpy( (&(NdefMap->SendRecvBuf[BufIndex])), in phFriNfc_Felica_HUpdateData()
1789BufIndex += (uint8_t)( BytesRemained - (16 -NdefMap->Felica.Wr_BytesRemained)); in phFriNfc_Felica_HUpdateData()
1795 NdefMap->SendRecvBuf[BufIndex] =0x00; in phFriNfc_Felica_HUpdateData()
1796 BufIndex++; in phFriNfc_Felica_HUpdateData()
1817 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])), in phFriNfc_Felica_HUpdateData()
1822 BufIndex += ((NdefMap->FelicaAttrInfo.Nbw - 1 )*16); in phFriNfc_Felica_HUpdateData()
1841 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])), in phFriNfc_Felica_HUpdateData()
1846 BufIndex+=NdefMap->Felica.Wr_BytesRemained; in phFriNfc_Felica_HUpdateData()
1849 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])), in phFriNfc_Felica_HUpdateData()
1854 BufIndex+= (uint8_t)NdefMap->ApduBufferSize; in phFriNfc_Felica_HUpdateData()
1864 NdefMap->SendRecvBuf[BufIndex] =0x00; in phFriNfc_Felica_HUpdateData()
1865 BufIndex++; in phFriNfc_Felica_HUpdateData()
1881 NdefMap->SendRecvBuf[PH_NFCFRI_NDEFMAP_FELI_PKT_LEN_INDEX] = BufIndex; in phFriNfc_Felica_HUpdateData()
1882 NdefMap->SendLength = BufIndex; in phFriNfc_Felica_HUpdateData()
1896 NdefMap->SendRecvBuf[BufIndex] = NdefMap->FelicaAttrInfo.Nbw; in phFriNfc_Felica_HUpdateData()
1897 BufIndex++; in phFriNfc_Felica_HUpdateData()
1902 NdefMap->SendRecvBuf[BufIndex] = 0x80; in phFriNfc_Felica_HUpdateData()
1903 BufIndex++; in phFriNfc_Felica_HUpdateData()
1905 NdefMap->SendRecvBuf[BufIndex] = NdefMap->Felica.CurBlockNo + i; in phFriNfc_Felica_HUpdateData()
1906 BufIndex++; in phFriNfc_Felica_HUpdateData()
1910 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])), in phFriNfc_Felica_HUpdateData()
1915 BufIndex += (NdefMap->FelicaAttrInfo.Nbw*16); in phFriNfc_Felica_HUpdateData()
1918 NdefMap->SendRecvBuf[PH_NFCFRI_NDEFMAP_FELI_PKT_LEN_INDEX] = BufIndex; in phFriNfc_Felica_HUpdateData()
1925 NdefMap->SendLength = BufIndex; in phFriNfc_Felica_HUpdateData()
1934 …NdefMap->SendRecvBuf[BufIndex] = (uint8_t)( NdefMap->FelicaAttrInfo.Nmaxb - NdefMap->Felica.CurBlo… in phFriNfc_Felica_HUpdateData()
1935 BufIndex++; in phFriNfc_Felica_HUpdateData()
1940 NdefMap->SendRecvBuf[BufIndex] = 0x80; in phFriNfc_Felica_HUpdateData()
1941 BufIndex++; in phFriNfc_Felica_HUpdateData()
1942 NdefMap->SendRecvBuf[BufIndex] = NdefMap->Felica.CurBlockNo + i; in phFriNfc_Felica_HUpdateData()
1943 BufIndex++; in phFriNfc_Felica_HUpdateData()
1947 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])), in phFriNfc_Felica_HUpdateData()
1952BufIndex += (uint8_t)((NdefMap->FelicaAttrInfo.Nmaxb - NdefMap->Felica.CurBlockNo )*16); in phFriNfc_Felica_HUpdateData()
1955 NdefMap->SendRecvBuf[PH_NFCFRI_NDEFMAP_FELI_PKT_LEN_INDEX] = BufIndex; in phFriNfc_Felica_HUpdateData()
1961 NdefMap->SendLength = BufIndex; in phFriNfc_Felica_HUpdateData()
1997 NdefMap->SendRecvBuf[BufIndex] = BlkNo; in phFriNfc_Felica_HUpdateData()
1998 BufIndex++; in phFriNfc_Felica_HUpdateData()
2005 NdefMap->SendRecvBuf[BufIndex] = 0x80; in phFriNfc_Felica_HUpdateData()
2006 BufIndex++; in phFriNfc_Felica_HUpdateData()
2009 NdefMap->SendRecvBuf[BufIndex] = CurBlk + i; in phFriNfc_Felica_HUpdateData()
2010 BufIndex++; in phFriNfc_Felica_HUpdateData()
2016 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])), in phFriNfc_Felica_HUpdateData()
2021 BufIndex += (uint8_t )BytesRemainedInCard ; in phFriNfc_Felica_HUpdateData()
2027 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])), in phFriNfc_Felica_HUpdateData()
2032 BufIndex += (uint8_t)(NdefMap->ApduBufferSize - NdefMap->ApduBuffIndex); in phFriNfc_Felica_HUpdateData()
2039 NdefMap->SendRecvBuf[BufIndex] =0x00; in phFriNfc_Felica_HUpdateData()
2040 BufIndex++; in phFriNfc_Felica_HUpdateData()
2068 NdefMap->SendRecvBuf[PH_NFCFRI_NDEFMAP_FELI_PKT_LEN_INDEX] = BufIndex; in phFriNfc_Felica_HUpdateData()
2069 NdefMap->SendLength = BufIndex; in phFriNfc_Felica_HUpdateData()
2729 uint8_t BufIndex = 0; in phFriNfc_Felica_HRdAttrInfo() local
2743 NdefMap->SendRecvBuf[BufIndex] = 0x00; in phFriNfc_Felica_HRdAttrInfo()
2744 BufIndex++; in phFriNfc_Felica_HRdAttrInfo()
2747 NdefMap->SendRecvBuf[BufIndex] = 0x06; in phFriNfc_Felica_HRdAttrInfo()
2748 BufIndex++; in phFriNfc_Felica_HRdAttrInfo()
2752 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])), in phFriNfc_Felica_HRdAttrInfo()
2756 (void)memcpy((&(NdefMap->SendRecvBuf[BufIndex])), in phFriNfc_Felica_HRdAttrInfo()
2762 BufIndex+=8; in phFriNfc_Felica_HRdAttrInfo()
2764 NdefMap->SendRecvBuf[BufIndex] = 0x01; /* Number of Services (n=1 ==> 0x80)*/ in phFriNfc_Felica_HRdAttrInfo()
2765 BufIndex++; in phFriNfc_Felica_HRdAttrInfo()
2767 NdefMap->SendRecvBuf[BufIndex] = 0x0B; /* Service Code List*/ in phFriNfc_Felica_HRdAttrInfo()
2768 BufIndex++; in phFriNfc_Felica_HRdAttrInfo()
2770 NdefMap->SendRecvBuf[BufIndex] = 0x00; /* Service Code List*/ in phFriNfc_Felica_HRdAttrInfo()
2771 BufIndex++; in phFriNfc_Felica_HRdAttrInfo()
2773 NdefMap->SendRecvBuf[BufIndex] = 0x01; /* Number of Blocks to read)*/ in phFriNfc_Felica_HRdAttrInfo()
2774 BufIndex++; in phFriNfc_Felica_HRdAttrInfo()
2776 NdefMap->SendRecvBuf[BufIndex] = 0x80; /* 1st Block Element : byte 1*/ in phFriNfc_Felica_HRdAttrInfo()
2777 BufIndex++; in phFriNfc_Felica_HRdAttrInfo()
2779 NdefMap->SendRecvBuf[BufIndex] = 0x00; /* 1st Block Element : byte 2, block 1*/ in phFriNfc_Felica_HRdAttrInfo()
2780 BufIndex++; in phFriNfc_Felica_HRdAttrInfo()
2782 NdefMap->SendRecvBuf[PH_NFCFRI_NDEFMAP_FELI_PKT_LEN_INDEX] = BufIndex; in phFriNfc_Felica_HRdAttrInfo()
2787 NdefMap->SendLength = BufIndex; in phFriNfc_Felica_HRdAttrInfo()
2845 BufIndex=0; in phFriNfc_Felica_HCalCheckSum() local
2847 for(BufIndex = StartIndex;BufIndex <=EndIndex;BufIndex++) in phFriNfc_Felica_HCalCheckSum()
2849 CheckSum += TempBuffer[BufIndex]; in phFriNfc_Felica_HCalCheckSum()