smartcard2 2.1.0.0
Smart Card 2 Device Settings

Settings for registers of Smart Card 2 Click driver. More...

Macros

#define SMARTCARD2_CMD_ICC_POWER_ON   0x62
 Smart Card 2 command pipe, bulk-out commands.
 
#define SMARTCARD2_CMD_ICC_POWER_OFF   0x63
 
#define SMARTCARD2_CMD_GET_SLOT_STATUS   0x65
 
#define SMARTCARD2_CMD_XFR_BLOCK   0x6F
 
#define SMARTCARD2_CMD_GET_PARAMETERS   0x6C
 
#define SMARTCARD2_CMD_RESET_PARAMETERS   0x6D
 
#define SMARTCARD2_CMD_SET_PARAMETERS   0x61
 
#define SMARTCARD2_CMD_ESCAPE   0x6B
 
#define SMARTCARD2_CMD_ICC_ESCAPE   0x6E
 
#define SMARTCARD2_CMD_T0_APDU   0x6A
 
#define SMARTCARD2_CMD_SECURE   0x69
 
#define SMARTCARD2_CMD_MECHANICAL   0x71
 
#define SMARTCARD2_CMD_ABORT   0x72
 
#define SMARTCARD2_CMD_SET_DATA_RATE_CLK_FREQ   0x73
 
#define SMARTCARD2_RSP_DATA_BLOCK   0x80
 Smart Card 2 response pipe, bulk-in messages.
 
#define SMARTCARD2_RSP_SLOT_STATUS   0x81
 
#define SMARTCARD2_RSP_PARAMETERS   0x82
 
#define SMARTCARD2_RSP_ESCAPE   0x83
 
#define SMARTCARD2_RSP_DATA_RATE_CLK_FREQ   0x84
 
#define SMARTCARD2_EVT_NOTIFY_SLOT_CHANGE   0x50
 Smart Card 2 interrupt-in messages.
 
#define SMARTCARD2_CARD_ABSENT   0x02
 
#define SMARTCARD2_CARD_PRESENT   0x03
 
#define SMARTCARD2_EVT_HARDWARE_ERROR   0x51
 
#define SMARTCARD2_OVERCURRENT   0x01
 
#define SMARTCARD2_SYNC   0x03
 Smart Card 2 ccid message settings.
 
#define SMARTCARD2_CTRL_ACK   0x06
 
#define SMARTCARD2_CTRL_NACK   0x15
 
#define SMARTCARD2_SHORT_APDU_MAX_SIZE   261
 
#define SMARTCARD2_MAX_BUF_SIZE   ( SMARTCARD2_SHORT_APDU_MAX_SIZE + 13 )
 
#define SMARTCARD2_TIMEOUT_MS   5000
 
#define SMARTCARD2_CLK_STATUS_RUNNING   0x00
 Smart Card 2 clock status bytes.
 
#define SMARTCARD2_CLK_STATUS_STATE_L   0x01
 
#define SMARTCARD2_CLK_STATUS_STATE_H   0x02
 
#define SMARTCARD2_POWER_SEL_AUTO   0x00
 Smart Card 2 power select bytes.
 
#define SMARTCARD2_POWER_SEL_5V   0x01
 
#define SMARTCARD2_POWER_SEL_3V   0x02
 
#define SMARTCARD2_POWER_SEL_1_8V   0x03
 
#define SMARTCARD2_ICC_ACTIVE   0
 Smart Card 2 ICC status setting.
 
#define SMARTCARD2_ICC_PRESENT   1
 
#define SMARTCARD2_ICC_ABSENT   2
 
#define SMARTCARD2_ICC_STATUS_MASK   0x03
 
#define SMARTCARD2_TX_DRV_BUFFER_SIZE   SMARTCARD2_MAX_BUF_SIZE
 Smart Card 2 driver buffer size.
 
#define SMARTCARD2_RX_DRV_BUFFER_SIZE   ( SMARTCARD2_MAX_BUF_SIZE * 2 )
 

Detailed Description

Settings for registers of Smart Card 2 Click driver.

Macro Definition Documentation

◆ SMARTCARD2_CARD_ABSENT

#define SMARTCARD2_CARD_ABSENT   0x02

◆ SMARTCARD2_CARD_PRESENT

#define SMARTCARD2_CARD_PRESENT   0x03

◆ SMARTCARD2_CLK_STATUS_RUNNING

#define SMARTCARD2_CLK_STATUS_RUNNING   0x00

Smart Card 2 clock status bytes.

Specified setting for clock status bytes of Smart Card 2 Click driver.

◆ SMARTCARD2_CLK_STATUS_STATE_H

#define SMARTCARD2_CLK_STATUS_STATE_H   0x02

◆ SMARTCARD2_CLK_STATUS_STATE_L

#define SMARTCARD2_CLK_STATUS_STATE_L   0x01

◆ SMARTCARD2_CMD_ABORT

#define SMARTCARD2_CMD_ABORT   0x72

◆ SMARTCARD2_CMD_ESCAPE

#define SMARTCARD2_CMD_ESCAPE   0x6B

◆ SMARTCARD2_CMD_GET_PARAMETERS

#define SMARTCARD2_CMD_GET_PARAMETERS   0x6C

◆ SMARTCARD2_CMD_GET_SLOT_STATUS

#define SMARTCARD2_CMD_GET_SLOT_STATUS   0x65

◆ SMARTCARD2_CMD_ICC_ESCAPE

#define SMARTCARD2_CMD_ICC_ESCAPE   0x6E

◆ SMARTCARD2_CMD_ICC_POWER_OFF

#define SMARTCARD2_CMD_ICC_POWER_OFF   0x63

◆ SMARTCARD2_CMD_ICC_POWER_ON

#define SMARTCARD2_CMD_ICC_POWER_ON   0x62

Smart Card 2 command pipe, bulk-out commands.

Specified setting for command pipe, bulk-out commands of Smart Card 2 Click driver.

◆ SMARTCARD2_CMD_MECHANICAL

#define SMARTCARD2_CMD_MECHANICAL   0x71

◆ SMARTCARD2_CMD_RESET_PARAMETERS

#define SMARTCARD2_CMD_RESET_PARAMETERS   0x6D

◆ SMARTCARD2_CMD_SECURE

#define SMARTCARD2_CMD_SECURE   0x69

◆ SMARTCARD2_CMD_SET_DATA_RATE_CLK_FREQ

#define SMARTCARD2_CMD_SET_DATA_RATE_CLK_FREQ   0x73

◆ SMARTCARD2_CMD_SET_PARAMETERS

#define SMARTCARD2_CMD_SET_PARAMETERS   0x61

◆ SMARTCARD2_CMD_T0_APDU

#define SMARTCARD2_CMD_T0_APDU   0x6A

◆ SMARTCARD2_CMD_XFR_BLOCK

#define SMARTCARD2_CMD_XFR_BLOCK   0x6F

◆ SMARTCARD2_CTRL_ACK

#define SMARTCARD2_CTRL_ACK   0x06

◆ SMARTCARD2_CTRL_NACK

#define SMARTCARD2_CTRL_NACK   0x15

◆ SMARTCARD2_EVT_HARDWARE_ERROR

#define SMARTCARD2_EVT_HARDWARE_ERROR   0x51

◆ SMARTCARD2_EVT_NOTIFY_SLOT_CHANGE

#define SMARTCARD2_EVT_NOTIFY_SLOT_CHANGE   0x50

Smart Card 2 interrupt-in messages.

Specified setting for interrupt-in messages of Smart Card 2 Click driver.

◆ SMARTCARD2_ICC_ABSENT

#define SMARTCARD2_ICC_ABSENT   2

◆ SMARTCARD2_ICC_ACTIVE

#define SMARTCARD2_ICC_ACTIVE   0

Smart Card 2 ICC status setting.

Specified setting for ICC status of Smart Card 2 Click driver.

◆ SMARTCARD2_ICC_PRESENT

#define SMARTCARD2_ICC_PRESENT   1

◆ SMARTCARD2_ICC_STATUS_MASK

#define SMARTCARD2_ICC_STATUS_MASK   0x03

◆ SMARTCARD2_MAX_BUF_SIZE

#define SMARTCARD2_MAX_BUF_SIZE   ( SMARTCARD2_SHORT_APDU_MAX_SIZE + 13 )

◆ SMARTCARD2_OVERCURRENT

#define SMARTCARD2_OVERCURRENT   0x01

◆ SMARTCARD2_POWER_SEL_1_8V

#define SMARTCARD2_POWER_SEL_1_8V   0x03

◆ SMARTCARD2_POWER_SEL_3V

#define SMARTCARD2_POWER_SEL_3V   0x02

◆ SMARTCARD2_POWER_SEL_5V

#define SMARTCARD2_POWER_SEL_5V   0x01

◆ SMARTCARD2_POWER_SEL_AUTO

#define SMARTCARD2_POWER_SEL_AUTO   0x00

Smart Card 2 power select bytes.

Specified setting for power select bytes of Smart Card 2 Click driver.

◆ SMARTCARD2_RSP_DATA_BLOCK

#define SMARTCARD2_RSP_DATA_BLOCK   0x80

Smart Card 2 response pipe, bulk-in messages.

Specified setting for response pipe, bulk-in messages of Smart Card 2 Click driver.

◆ SMARTCARD2_RSP_DATA_RATE_CLK_FREQ

#define SMARTCARD2_RSP_DATA_RATE_CLK_FREQ   0x84

◆ SMARTCARD2_RSP_ESCAPE

#define SMARTCARD2_RSP_ESCAPE   0x83

◆ SMARTCARD2_RSP_PARAMETERS

#define SMARTCARD2_RSP_PARAMETERS   0x82

◆ SMARTCARD2_RSP_SLOT_STATUS

#define SMARTCARD2_RSP_SLOT_STATUS   0x81

◆ SMARTCARD2_RX_DRV_BUFFER_SIZE

#define SMARTCARD2_RX_DRV_BUFFER_SIZE   ( SMARTCARD2_MAX_BUF_SIZE * 2 )

◆ SMARTCARD2_SHORT_APDU_MAX_SIZE

#define SMARTCARD2_SHORT_APDU_MAX_SIZE   261

◆ SMARTCARD2_SYNC

#define SMARTCARD2_SYNC   0x03

Smart Card 2 ccid message settings.

Specified setting for ccid message of Smart Card 2 Click driver.

◆ SMARTCARD2_TIMEOUT_MS

#define SMARTCARD2_TIMEOUT_MS   5000

◆ SMARTCARD2_TX_DRV_BUFFER_SIZE

#define SMARTCARD2_TX_DRV_BUFFER_SIZE   SMARTCARD2_MAX_BUF_SIZE

Smart Card 2 driver buffer size.

Specified size of driver ring buffer.

Note
Increase buffer size if needed.