chg: 'sc reader' - hooked up atr.

This commit is contained in:
Chris 2018-07-05 16:32:10 +02:00
commit fca841122f
6 changed files with 174 additions and 83 deletions

View file

@ -98,6 +98,14 @@ typedef struct {
} state;
} nonces_t;
//-----------------------------------------------------------------------------
// ISO 7618 Smart Card
//-----------------------------------------------------------------------------
typedef struct {
uint8_t atr_len;
uint8_t atr[30];
} __attribute__((__packed__)) smart_card_atr_t;
//-----------------------------------------------------------------------------
// FeliCa
//-----------------------------------------------------------------------------

View file

@ -76,9 +76,10 @@ typedef struct{
#define CMD_INFO_FLASH_MEM 0x0125
// RDV40, Smart card operations
#define CMD_SMART_SEND 0x0140
#define CMD_SMART_RAW 0x0140
#define CMD_SMART_UPGRADE 0x0141
#define CMD_SMART_UPLOAD 0x0142
#define CMD_SMART_ATR 0x0143
// For low-frequency tags
#define CMD_READ_TI_TYPE 0x0202