Home | History | Annotate | Download | only in tech

Lines Matching refs:cmd

373         byte[] cmd = new byte[12];
377 cmd[0] = 0x60; // phHal_eMifareAuthentA
379 cmd[0] = 0x61; // phHal_eMifareAuthentB
385 cmd[1] = (byte) sectorToBlock(sector);
389 System.arraycopy(uid, uid.length - 4, cmd, 2, 4);
392 System.arraycopy(key, 0, cmd, 6, 6);
395 if (transceive(cmd, false) != null) {
424 byte[] cmd = { 0x30, (byte) blockIndex };
425 return transceive(cmd, false);
449 byte[] cmd = new byte[data.length + 2];
450 cmd
451 cmd[1] = (byte) blockIndex;
452 System.arraycopy(data, 0, cmd, 2, data.length);
454 transceive(cmd, false);
476 ByteBuffer cmd = ByteBuffer.allocate(6);
477 cmd.order(ByteOrder.LITTLE_ENDIAN);
478 cmd.put( (byte) 0xC1 );
479 cmd.put( (byte) blockIndex );
480 cmd.putInt(value);
482 transceive(cmd.array(), false);
504 ByteBuffer cmd = ByteBuffer.allocate(6);
505 cmd.order(ByteOrder.LITTLE_ENDIAN);
506 cmd.put( (byte) 0xC0 );
507 cmd.put( (byte) blockIndex );
508 cmd.putInt(value);
510 transceive(cmd.array(), false);
530 byte[] cmd = { (byte) 0xB0, (byte) blockIndex };
532 transceive(cmd, false);
552 byte[] cmd = { (byte) 0xC2, (byte) blockIndex };
554 transceive(cmd, false);