#include "zsn603.h"
#include "demo_zsn603_entries.h"
void demo_zsn603_piccb_active_test_entry (zsn603_handle_t handle)
{
    unsigned char  ret = 0;
    unsigned char  info[12] = {0};
    
    //在使用B卡相关的函数前，需设置协议为B类卡
    ret = zsn603_set_ios_type (handle, ZSN603_ICC_ISO_TYPE_B);
    if(ret  !=  0 ){
        printf("ios set fail beacuse %0x2", ret);
        return;
    }
    //B卡请求接口函数  请求模式为 0x00  IDLE
    ret = zsn603_piccb_active(handle, 0x00, info);
    if(ret == 0){
        unsigned char i = 0;
        printf("CARD INFO  is :");
        for(i = 0; i < 12 ; i ++ ){
            printf("%02x ",  info[i]);
       }
        printf("\r\n");
    }else{
        printf("active fail beacuse error 0x%02x", ret);
    }
}
