-// do not use; has a fix UID
-static void __attribute__((unused)) BuildSelectRequest( uint8_t uid[])
-{
-
-// uid[6]=0x31; // this is getting ignored - the uid array is not happening...
- uint8_t cmd[12];
-
- uint16_t crc;
- // one sub-carrier, inventory, 1 slot, fast rate
- //cmd[0] = (1 << 2) | (1 << 5) | (1 << 1); // INVENTROY FLAGS
- cmd[0] = (1 << 4) | (1 << 5) | (1 << 1); // Select and addressed FLAGS
- // SELECT command code
- cmd[1] = 0x25;
- // 64-bit UID
-// cmd[2] = uid[0];//0x32;
-// cmd[3]= uid[1];//0x4b;
-// cmd[4] = uid[2];//0x03;
-// cmd[5] = uid[3];//0x01;
-// cmd[6] = uid[4];//0x00;
-// cmd[7] = uid[5];//0x10;
-// cmd[8] = uid[6];//0x05;
- cmd[2] = 0x32;//
- cmd[3] = 0x4b;
- cmd[4] = 0x03;
- cmd[5] = 0x01;
- cmd[6] = 0x00;
- cmd[7] = 0x10;
- cmd[8] = 0x05; // infineon?
-
- cmd[9]= 0xe0; // always e0 (not exactly unique)
-
-// DbpIntegers(cmd[8],cmd[7],cmd[6]);
- // Now the CRC
- crc = Crc(cmd, 10); // the crc needs to be calculated over 10 bytes
- cmd[10] = crc & 0xff;
- cmd[11] = crc >> 8;
-
- CodeIso15693AsReader(cmd, sizeof(cmd));
-}
-
-