| M480 BSP V3.05.001 The Board Support Package for M480 Series

Macros
Smartcard Library Exported Constants
Library » Smartcard Library

## Macros
#define | SCLIB_MAX_ATR_LEN
#define | SCLIB_MIN_ATR_LEN
#define | SCLIB_PROTOCOL_UNDEFINED
#define | SCLIB_PROTOCOL_T0
#define | SCLIB_PROTOCOL_T1
#define | SCLIB_SUCCESS
#define | SCLIB_ERR_CARD_REMOVED
#define | SCLIB_ERR_OVER_RUN
#define | SCLIB_ERR_PARITY_ERROR
#define | SCLIB_ERR_NO_STOP
#define | SCLIB_ERR_SILENT_BYTE
#define | SCLIB_ERR_READ
#define | SCLIB_ERR_WRITE
#define | SCLIB_ERR_TIME0OUT
#define | SCLIB_ERR_TIME1OUT
#define | SCLIB_ERR_TIME2OUT
#define | SCLIB_ERR_AUTOCONVENTION
#define | SCLIB_ERR_CLOCK
#define | SCLIB_ERR_ATR_UNRECOGNIZED
#define | SCLIB_ERR_ATR_INVALID_PARAM
#define | SCLIB_ERR_ATR_INVALID_TCK
#define | SCLIB_ERR_PPS
#define | SCLIB_ERR_T1_PROTOCOL
#define | SCLIB_ERR_T1_ABORT_RECEIVED
#define | SCLIB_ERR_T1_RESYNCH_RECEIVED
#define | SCLIB_ERR_T1_VPP_ERROR_RECEIVED
#define | SCLIB_ERR_T1_WTXRES_RECEIVED
#define | SCLIB_ERR_T1_IFSRES_RECEIVED
#define | SCLIB_ERR_T1_ABORTRES_RECEIVED
#define | SCLIB_ERR_T1_CHECKSUM
#define | SCLIB_ERR_T0_PROTOCOL
#define | SCLIB_ERR_DEACTIVE
#define | SCLIB_ERR_CARDBUSY

## Detailed Description

## Macro Definition Documentation

## ◆ SCLIB_ERR_ATR_INVALID_PARAM

#define SCLIB_ERR_ATR_INVALID_PARAM

ATR parsing interface bytes error

Definition at line 59 of file sclib.h.

## ◆ SCLIB_ERR_ATR_INVALID_TCK

#define SCLIB_ERR_ATR_INVALID_TCK

TCK check byte error

Definition at line 60 of file sclib.h.

## ◆ SCLIB_ERR_ATR_UNRECOGNIZED

#define SCLIB_ERR_ATR_UNRECOGNIZED

Unrecognized ATR

Definition at line 58 of file sclib.h.

## ◆ SCLIB_ERR_AUTOCONVENTION

#define SCLIB_ERR_AUTOCONVENTION

Smartcard is neither direct nor inverse convention

Definition at line 54 of file sclib.h.

## ◆ SCLIB_ERR_CARD_REMOVED

#define SCLIB_ERR_CARD_REMOVED

Smartcard removed

Definition at line 42 of file sclib.h.

## ◆ SCLIB_ERR_CARDBUSY

#define SCLIB_ERR_CARDBUSY

Smartcard is busy, previous transmission is not complete yet

Definition at line 79 of file sclib.h.

## ◆ SCLIB_ERR_CLOCK

#define SCLIB_ERR_CLOCK

Smartcard clock frequency is not between 1MHz and 5 MHz

Definition at line 55 of file sclib.h.

## ◆ SCLIB_ERR_DEACTIVE

#define SCLIB_ERR_DEACTIVE

Smartcard is deactivate

Definition at line 78 of file sclib.h.

## ◆ SCLIB_ERR_NO_STOP

#define SCLIB_ERR_NO_STOP

Stop bit not found

Definition at line 45 of file sclib.h.

## ◆ SCLIB_ERR_OVER_RUN

#define SCLIB_ERR_OVER_RUN

Rx FIFO over run

Definition at line 43 of file sclib.h.

## ◆ SCLIB_ERR_PARITY_ERROR

#define SCLIB_ERR_PARITY_ERROR

Tx/Rx parity error

Definition at line 44 of file sclib.h.

## ◆ SCLIB_ERR_PPS

#define SCLIB_ERR_PPS

PPS error

Definition at line 61 of file sclib.h.

## ◆ SCLIB_ERR_READ

#define SCLIB_ERR_READ

Smartcard read error

Definition at line 49 of file sclib.h.

## ◆ SCLIB_ERR_SILENT_BYTE

#define SCLIB_ERR_SILENT_BYTE

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

Definition at line 46 of file sclib.h.

## ◆ SCLIB_ERR_T0_PROTOCOL

#define SCLIB_ERR_T0_PROTOCOL

T=0 Protocol Error

Definition at line 75 of file sclib.h.

## ◆ SCLIB_ERR_T1_ABORT_RECEIVED

#define SCLIB_ERR_T1_ABORT_RECEIVED

Received ABORT request

Definition at line 66 of file sclib.h.

## ◆ SCLIB_ERR_T1_ABORTRES_RECEIVED

#define SCLIB_ERR_T1_ABORTRES_RECEIVED

Received ABORT response

Definition at line 71 of file sclib.h.

## ◆ SCLIB_ERR_T1_CHECKSUM

#define SCLIB_ERR_T1_CHECKSUM

T=1 block check sum error

Definition at line 72 of file sclib.h.

## ◆ SCLIB_ERR_T1_IFSRES_RECEIVED

#define SCLIB_ERR_T1_IFSRES_RECEIVED

Received max IFS offer

Definition at line 70 of file sclib.h.

## ◆ SCLIB_ERR_T1_PROTOCOL

#define SCLIB_ERR_T1_PROTOCOL

T=1 Protocol Error

Definition at line 65 of file sclib.h.

## ◆ SCLIB_ERR_T1_RESYNCH_RECEIVED

#define SCLIB_ERR_T1_RESYNCH_RECEIVED

Received RESYNCH request

Definition at line 67 of file sclib.h.

## ◆ SCLIB_ERR_T1_VPP_ERROR_RECEIVED

#define SCLIB_ERR_T1_VPP_ERROR_RECEIVED

Received VPP error

Definition at line 68 of file sclib.h.

## ◆ SCLIB_ERR_T1_WTXRES_RECEIVED

#define SCLIB_ERR_T1_WTXRES_RECEIVED

Received BWT extension request

Definition at line 69 of file sclib.h.

## ◆ SCLIB_ERR_TIME0OUT

#define SCLIB_ERR_TIME0OUT

Smartcard timer 0 timeout

Definition at line 51 of file sclib.h.

## ◆ SCLIB_ERR_TIME1OUT

#define SCLIB_ERR_TIME1OUT

Smartcard timer 1 timeout

Definition at line 52 of file sclib.h.

## ◆ SCLIB_ERR_TIME2OUT

#define SCLIB_ERR_TIME2OUT

Smartcard timer 2 timeout

Definition at line 53 of file sclib.h.

## ◆ SCLIB_ERR_WRITE

#define SCLIB_ERR_WRITE

Smartcard write error

Definition at line 50 of file sclib.h.

## ◆ SCLIB_MAX_ATR_LEN

#define SCLIB_MAX_ATR_LEN

Max ATR length. ISO-7816 8.2.1

Definition at line 32 of file sclib.h.

## ◆ SCLIB_MIN_ATR_LEN

#define SCLIB_MIN_ATR_LEN

Min ATR length, TS and T0

Definition at line 33 of file sclib.h.

## ◆ SCLIB_PROTOCOL_T0

#define SCLIB_PROTOCOL_T0

T=0 is the active protocol.

Definition at line 37 of file sclib.h.

## ◆ SCLIB_PROTOCOL_T1

#define SCLIB_PROTOCOL_T1

T=1 is the active protocol.

Definition at line 38 of file sclib.h.

## ◆ SCLIB_PROTOCOL_UNDEFINED

#define SCLIB_PROTOCOL_UNDEFINED

There is no active protocol.

Definition at line 36 of file sclib.h.

## ◆ SCLIB_SUCCESS

#define SCLIB_SUCCESS

Command successful without error

Definition at line 40 of file sclib.h.