NANO102/112 BSP V3.03.003
The Board Support Package for Nano102/112 Series
Modules | Macros
Smartcard Library Exported Constants
Collaboration diagram for Smartcard Library Exported Constants:

Modules

 Smartcard Library Exported Structs
 

Macros

#define SCLIB_MAX_ATR_LEN   32
 Max ATR length. ISO-7816 8.2.1. More...
 
#define SCLIB_MIN_ATR_LEN   2
 Min ATR length, TS and T0. More...
 
#define SCLIB_PROTOCOL_UNDEFINED   0x00000000
 There is no active protocol. More...
 
#define SCLIB_PROTOCOL_T0   0x00000001
 T=0 is the active protocol. More...
 
#define SCLIB_PROTOCOL_T1   0x00000002
 T=1 is the active protocol. More...
 
#define SCLIB_SUCCESS   0x00000000
 Command successful without error. More...
 
#define SCLIB_ERR_CARD_REMOVED   0x00000001
 Smartcard removed. More...
 
#define SCLIB_ERR_OVER_RUN   0x00000002
 Rx FIFO over run. More...
 
#define SCLIB_ERR_PARITY_ERROR   0x00000003
 Tx/Rx parity error. More...
 
#define SCLIB_ERR_NO_STOP   0x00000004
 Stop bit not found. More...
 
#define SCLIB_ERR_SILENT_BYTE   0x00000005
 I/O pin stay at low for longer than 1 character time. More...
 
#define SCLIB_ERR_CMD   0x00000006
 Command error. More...
 
#define SCLIB_ERR_UNSUPPORTEDCARD   0x00000007
 Unsupported card. More...
 
#define SCLIB_ERR_READ   0x00000008
 Read error. More...
 
#define SCLIB_ERR_WRITE   0x00000009
 Write error. More...
 
#define SCLIB_ERR_TIME0OUT   0x0000000A
 Smartcard timer 0 timeout. More...
 
#define SCLIB_ERR_TIME1OUT   0x0000000B
 Smartcard timer 1 timeout. More...
 
#define SCLIB_ERR_TIME2OUT   0x0000000C
 Smartcard timer 2 timeout. More...
 
#define SCLIB_ERR_AUTOCONVENTION   0x0000000D
 Smartcard is neither direct nor inverse convention. More...
 
#define SCLIB_ERR_CLOCK   0x0000000E
 Smartcard clock frequency is not between 1MHz and 5 MHz. More...
 
#define SCLIB_ERR_BGTIMEOUT   0x0000000E
 BGT time error. More...
 
#define SCLIB_ERR_ATR_UNRECOGNIZED   0x00001001
 Unrecognised ATR. More...
 
#define SCLIB_ERR_ATR_INVALID_PARAM   0x00001002
 ATR parsing interface bytes error. More...
 
#define SCLIB_ERR_ATR_INVALID_TCK   0x00001003
 TCK check byte error. More...
 
#define SCLIB_ERR_PPS   0x00001004
 PPS echange error. More...
 
#define SCLIB_ERR_T1_PARITY   0x00002001
 T=1 Parity Error Notice. More...
 
#define SCLIB_ERR_T1_ICC   0x00002002
 ICC communication error. More...
 
#define SCLIB_ERR_T1_PROTOCOL   0x00002003
 T=1 Protocol Error. More...
 
#define SCLIB_ERR_T1_ABORT_RECEIVED   0x00002004
 Received ABORT request. More...
 
#define SCLIB_ERR_T1_RESYNCH_RECEIVED   0x00002005
 Received RESYNCH request. More...
 
#define SCLIB_ERR_T1_VPP_ERROR_RECEIVED   0x00002006
 Received VPP error. More...
 
#define SCLIB_ERR_T1_WTXRES_RECEIVED   0x00002007
 Received BWT extension request. More...
 
#define SCLIB_ERR_T1_IFSRES_RECEIVED   0x00002008
 Received max IFS offer. More...
 
#define SCLIB_ERR_T1_ABORTRES_RECEIVED   0x00002009
 Received ABORT response. More...
 
#define SCLIB_ERR_T1_CHECKSUM   0x0000200A
 T=1 block check sum error. More...
 
#define SCLIB_ERR_T0_PROTOCOL   0x00003003
 T=0 Protocol Error. More...
 
#define SCLIB_ERR_DEACTIVE   0x0000F001
 Smartcard is de-active. More...
 
#define SCLIB_ERR_CARDBUSY   0x0000F002
 Smartcard is busy, previous transmission is not complete yet. More...
 

Detailed Description

Macro Definition Documentation

◆ SCLIB_ERR_ATR_INVALID_PARAM

#define SCLIB_ERR_ATR_INVALID_PARAM   0x00001002

ATR parsing interface bytes error.

Definition at line 62 of file sclib.h.

◆ SCLIB_ERR_ATR_INVALID_TCK

#define SCLIB_ERR_ATR_INVALID_TCK   0x00001003

TCK check byte error.

Definition at line 63 of file sclib.h.

◆ SCLIB_ERR_ATR_UNRECOGNIZED

#define SCLIB_ERR_ATR_UNRECOGNIZED   0x00001001

Unrecognised ATR.

Definition at line 61 of file sclib.h.

◆ SCLIB_ERR_AUTOCONVENTION

#define SCLIB_ERR_AUTOCONVENTION   0x0000000D

Smartcard is neither direct nor inverse convention.

Definition at line 57 of file sclib.h.

◆ SCLIB_ERR_BGTIMEOUT

#define SCLIB_ERR_BGTIMEOUT   0x0000000E

BGT time error.

Definition at line 59 of file sclib.h.

◆ SCLIB_ERR_CARD_REMOVED

#define SCLIB_ERR_CARD_REMOVED   0x00000001

Smartcard removed.

Definition at line 45 of file sclib.h.

◆ SCLIB_ERR_CARDBUSY

#define SCLIB_ERR_CARDBUSY   0x0000F002

Smartcard is busy, previous transmission is not complete yet.

Definition at line 82 of file sclib.h.

◆ SCLIB_ERR_CLOCK

#define SCLIB_ERR_CLOCK   0x0000000E

Smartcard clock frequency is not between 1MHz and 5 MHz.

Definition at line 58 of file sclib.h.

◆ SCLIB_ERR_CMD

#define SCLIB_ERR_CMD   0x00000006

Command error.

Definition at line 50 of file sclib.h.

◆ SCLIB_ERR_DEACTIVE

#define SCLIB_ERR_DEACTIVE   0x0000F001

Smartcard is de-active.

Definition at line 81 of file sclib.h.

◆ SCLIB_ERR_NO_STOP

#define SCLIB_ERR_NO_STOP   0x00000004

Stop bit not found.

Definition at line 48 of file sclib.h.

◆ SCLIB_ERR_OVER_RUN

#define SCLIB_ERR_OVER_RUN   0x00000002

Rx FIFO over run.

Definition at line 46 of file sclib.h.

◆ SCLIB_ERR_PARITY_ERROR

#define SCLIB_ERR_PARITY_ERROR   0x00000003

Tx/Rx parity error.

Definition at line 47 of file sclib.h.

◆ SCLIB_ERR_PPS

#define SCLIB_ERR_PPS   0x00001004

PPS echange error.

Definition at line 64 of file sclib.h.

◆ SCLIB_ERR_READ

#define SCLIB_ERR_READ   0x00000008

Read error.

Definition at line 52 of file sclib.h.

◆ SCLIB_ERR_SILENT_BYTE

#define SCLIB_ERR_SILENT_BYTE   0x00000005

I/O pin stay at low for longer than 1 character time.

Definition at line 49 of file sclib.h.

◆ SCLIB_ERR_T0_PROTOCOL

#define SCLIB_ERR_T0_PROTOCOL   0x00003003

T=0 Protocol Error.

Definition at line 78 of file sclib.h.

◆ SCLIB_ERR_T1_ABORT_RECEIVED

#define SCLIB_ERR_T1_ABORT_RECEIVED   0x00002004

Received ABORT request.

Definition at line 69 of file sclib.h.

◆ SCLIB_ERR_T1_ABORTRES_RECEIVED

#define SCLIB_ERR_T1_ABORTRES_RECEIVED   0x00002009

Received ABORT response.

Definition at line 74 of file sclib.h.

◆ SCLIB_ERR_T1_CHECKSUM

#define SCLIB_ERR_T1_CHECKSUM   0x0000200A

T=1 block check sum error.

Definition at line 75 of file sclib.h.

◆ SCLIB_ERR_T1_ICC

#define SCLIB_ERR_T1_ICC   0x00002002

ICC communication error.

Definition at line 67 of file sclib.h.

◆ SCLIB_ERR_T1_IFSRES_RECEIVED

#define SCLIB_ERR_T1_IFSRES_RECEIVED   0x00002008

Received max IFS offer.

Definition at line 73 of file sclib.h.

◆ SCLIB_ERR_T1_PARITY

#define SCLIB_ERR_T1_PARITY   0x00002001

T=1 Parity Error Notice.

Definition at line 66 of file sclib.h.

◆ SCLIB_ERR_T1_PROTOCOL

#define SCLIB_ERR_T1_PROTOCOL   0x00002003

T=1 Protocol Error.

Definition at line 68 of file sclib.h.

◆ SCLIB_ERR_T1_RESYNCH_RECEIVED

#define SCLIB_ERR_T1_RESYNCH_RECEIVED   0x00002005

Received RESYNCH request.

Definition at line 70 of file sclib.h.

◆ SCLIB_ERR_T1_VPP_ERROR_RECEIVED

#define SCLIB_ERR_T1_VPP_ERROR_RECEIVED   0x00002006

Received VPP error.

Definition at line 71 of file sclib.h.

◆ SCLIB_ERR_T1_WTXRES_RECEIVED

#define SCLIB_ERR_T1_WTXRES_RECEIVED   0x00002007

Received BWT extension request.

Definition at line 72 of file sclib.h.

◆ SCLIB_ERR_TIME0OUT

#define SCLIB_ERR_TIME0OUT   0x0000000A

Smartcard timer 0 timeout.

Definition at line 54 of file sclib.h.

◆ SCLIB_ERR_TIME1OUT

#define SCLIB_ERR_TIME1OUT   0x0000000B

Smartcard timer 1 timeout.

Definition at line 55 of file sclib.h.

◆ SCLIB_ERR_TIME2OUT

#define SCLIB_ERR_TIME2OUT   0x0000000C

Smartcard timer 2 timeout.

Definition at line 56 of file sclib.h.

◆ SCLIB_ERR_UNSUPPORTEDCARD

#define SCLIB_ERR_UNSUPPORTEDCARD   0x00000007

Unsupported card.

Definition at line 51 of file sclib.h.

◆ SCLIB_ERR_WRITE

#define SCLIB_ERR_WRITE   0x00000009

Write error.

Definition at line 53 of file sclib.h.

◆ SCLIB_MAX_ATR_LEN

#define SCLIB_MAX_ATR_LEN   32

Max ATR length. ISO-7816 8.2.1.

Definition at line 35 of file sclib.h.

◆ SCLIB_MIN_ATR_LEN

#define SCLIB_MIN_ATR_LEN   2

Min ATR length, TS and T0.

Definition at line 36 of file sclib.h.

◆ SCLIB_PROTOCOL_T0

#define SCLIB_PROTOCOL_T0   0x00000001

T=0 is the active protocol.

Definition at line 40 of file sclib.h.

◆ SCLIB_PROTOCOL_T1

#define SCLIB_PROTOCOL_T1   0x00000002

T=1 is the active protocol.

Definition at line 41 of file sclib.h.

◆ SCLIB_PROTOCOL_UNDEFINED

#define SCLIB_PROTOCOL_UNDEFINED   0x00000000

There is no active protocol.

Definition at line 39 of file sclib.h.

◆ SCLIB_SUCCESS

#define SCLIB_SUCCESS   0x00000000

Command successful without error.

Definition at line 43 of file sclib.h.