#ifndef _SCC_H_
#define _SCC_H_

#include <windows.h>
#include <tchar.h>
#include "rd0xAB.h"

#define CFG_FNAME       TEXT("scc.cfg")

#define CAP_STARTMSG    TEXT("SCC - Simple Card Console, V")
#define STB_STARTMSG    TEXT("(c) AnyRAM-ARD, 2004-2017.")

#define MAX_CCTYPE      14

#define IFLG_NOUID      1
#define IFLG_NODATA     2

#pragma pack(1)
typedef struct {
    BYTE    tp;
    BYTE    rw;
    BYTE    uidlen;
    BYTE    uid[10];
    BYTE    blk;
    BYTE    ak[6];
    BYTE    aktp;
    BYTE    data[16]; } SCC_SET;

typedef struct {
        BYTE    tp;
        WORD    atqa;
        BYTE    sak;
        TCHAR   txt[8]; } SCC_DSC;
#pragma pack()

#endif  // _SCC_H_
