#include "zsn603.h"
#include "demo_zsn603_entries.h"
void demo_zsn603_picca_active_test_entry (zsn603_handle_t handle)
{
    unsigned char  ret     = 0;
    unsigned char  saq     = 0;
    unsigned char  len     = 0;
    unsigned char  atq[2]  = {0};
    unsigned char  uid[10] = {0};

    //A卡请求接口函数  请求模式为 0x26  IDLE
    ret = zsn603_picca_active(handle, 0x26, (uint16_t *)atq, &saq, &len, uid);
    if(ret == 0){
        unsigned char i = 0;
        printf("ATQ  is : %02x  %02x\r\n", atq[0], atq[1]);
        printf("SAQ  is : %02x \r\n", saq);
        printf("UID is :");
        for(i = 0; i < len ; i ++ ){
            printf("%02x ",  uid[i]);
        }
        printf("\r\n");
    }else{
        printf("active fail beacuse error 0x%02x", ret);
    }
}
