示例#1
0
文件: uid.c 项目: hhcalder92/RFIDler
// show interpreted HEX value UID
BOOL interpret_uid(BYTE *response, BYTE *hex, BYTE tagtype)
{
    switch(tagtype)
    {
        case TAG_TYPE_NONE:
            strcpy(response, hex);
            return TRUE;
            
        case TAG_TYPE_ASK_RAW:
            return ask_raw_hex_to_uid(response, hex);

        case TAG_TYPE_AWID_26:
            return awid26_hex_to_uid(response, hex);

        case TAG_TYPE_EM4X02:
            return em4x02_hex_to_uid(response, hex);

        case TAG_TYPE_FDXB:
            return fdxb_hex_to_uid(response, hex);

        case TAG_TYPE_FSK1_RAW:
        case TAG_TYPE_FSK2_RAW:
            return fsk_raw_hex_to_uid(response, hex);

        case TAG_TYPE_HID_26:
            return hid26_hex_to_uid(response, hex);

        case TAG_TYPE_HITAG1:
            return hitag1_hex_to_uid(response, hex);

        case TAG_TYPE_HITAG2:
            return hitag2_hex_to_uid(response, hex);

        case TAG_TYPE_INDALA_64:
            return indala64_hex_to_uid(response, hex);

        case TAG_TYPE_INDALA_224:
            return indala224_hex_to_uid(response, hex);

        case TAG_TYPE_PSK1_RAW:
            return psk1_raw_hex_to_uid(response, hex);

        case TAG_TYPE_Q5:
        //case TAG_TYPE_T55X7:
            return q5_hex_to_uid(response, hex);

        case TAG_TYPE_UNIQUE:
            return unique_hex_to_uid(response, hex);

        default:
            break;
    }
    return FALSE;
}
示例#2
0
文件: q5.c 项目: natashenka/RFIDler
// convert raw 64 bit HEX UID to 10 digit human readable hex
BOOL q5_hex_to_uid(BYTE *response, BYTE *hex)
{
    // q5 is the same as em4x02
    return em4x02_hex_to_uid(response, hex);
}