pcsc-lite 1.9.9
Macros | Enumerations
pcscd.h File Reference

This keeps a list of defines for pcsc-lite. More...

Go to the source code of this file.

Macros

#define TIME_BEFORE_SUICIDE   60
 
#define SCARD_RESET   0x0001
 Card was reset.
 
#define SCARD_INSERTED   0x0002
 Card was inserted.
 
#define SCARD_REMOVED   0x0004
 Card was removed.
 
#define PCSCLITE_CONFIG_DIR   "/usr/local/etc/reader.conf.d"
 
#define PCSCLITE_IPC_DIR   USE_IPCDIR
 
#define PCSCLITE_RUN_PID   PCSCLITE_IPC_DIR "/pcscd.pid"
 
#define PCSCLITE_CSOCK_NAME   PCSCLITE_IPC_DIR "/pcscd.comm"
 
#define PCSCLITE_VERSION_NUMBER   "1.9.9"
 Current version.
 
#define PCSCLITE_STATUS_POLL_RATE   400000
 Status polling rate.
 
#define PCSCLITE_LOCK_POLL_RATE   100000
 Lock polling rate.
 
#define PCSC_MAX_CONTEXT_THREADS   200
 
#define PCSC_MAX_CONTEXT_CARD_HANDLES   200
 
#define PCSC_MAX_READER_HANDLES   200
 
#define PCSCLITE_POWER_OFF_GRACE_PERIOD   5*1000 /* 5 second */
 time to wait before powering down an unused card
 
#define PCSCLITE_STATUS_EVENT_TIMEOUT   10*60*1000 /* 10 minutes */
 normal timeout for pthCardEvent driver function when no card or card in use
 

Enumerations

enum  {
  POWER_STATE_UNPOWERED ,
  POWER_STATE_POWERED ,
  POWER_STATE_GRACE_PERIOD ,
  POWER_STATE_IN_USE
}
 Different values for struct ReaderContext powerState field. More...
 

Detailed Description

This keeps a list of defines for pcsc-lite.

Definition in file pcscd.h.

Macro Definition Documentation

◆ PCSC_MAX_CONTEXT_CARD_HANDLES

#define PCSC_MAX_CONTEXT_CARD_HANDLES   200

Definition at line 57 of file pcscd.h.

◆ PCSC_MAX_CONTEXT_THREADS

#define PCSC_MAX_CONTEXT_THREADS   200

Definition at line 56 of file pcscd.h.

◆ PCSC_MAX_READER_HANDLES

#define PCSC_MAX_READER_HANDLES   200

Definition at line 58 of file pcscd.h.

◆ PCSCLITE_CONFIG_DIR

#define PCSCLITE_CONFIG_DIR   "/usr/local/etc/reader.conf.d"

Definition at line 45 of file pcscd.h.

◆ PCSCLITE_CSOCK_NAME

#define PCSCLITE_CSOCK_NAME   PCSCLITE_IPC_DIR "/pcscd.comm"

Definition at line 50 of file pcscd.h.

◆ PCSCLITE_IPC_DIR

#define PCSCLITE_IPC_DIR   USE_IPCDIR

Definition at line 47 of file pcscd.h.

◆ PCSCLITE_LOCK_POLL_RATE

#define PCSCLITE_LOCK_POLL_RATE   100000

Lock polling rate.

Definition at line 54 of file pcscd.h.

◆ PCSCLITE_POWER_OFF_GRACE_PERIOD

#define PCSCLITE_POWER_OFF_GRACE_PERIOD   5*1000 /* 5 second */

time to wait before powering down an unused card

Definition at line 70 of file pcscd.h.

◆ PCSCLITE_RUN_PID

#define PCSCLITE_RUN_PID   PCSCLITE_IPC_DIR "/pcscd.pid"

Definition at line 48 of file pcscd.h.

◆ PCSCLITE_STATUS_EVENT_TIMEOUT

#define PCSCLITE_STATUS_EVENT_TIMEOUT   10*60*1000 /* 10 minutes */

normal timeout for pthCardEvent driver function when no card or card in use

Definition at line 74 of file pcscd.h.

◆ PCSCLITE_STATUS_POLL_RATE

#define PCSCLITE_STATUS_POLL_RATE   400000

Status polling rate.

Definition at line 53 of file pcscd.h.

◆ PCSCLITE_VERSION_NUMBER

#define PCSCLITE_VERSION_NUMBER   "1.9.9"

Current version.

Definition at line 52 of file pcscd.h.

◆ SCARD_INSERTED

#define SCARD_INSERTED   0x0002

Card was inserted.

Definition at line 42 of file pcscd.h.

◆ SCARD_REMOVED

#define SCARD_REMOVED   0x0004

Card was removed.

Definition at line 43 of file pcscd.h.

◆ SCARD_RESET

#define SCARD_RESET   0x0001

Card was reset.

Definition at line 41 of file pcscd.h.

◆ TIME_BEFORE_SUICIDE

#define TIME_BEFORE_SUICIDE   60

Definition at line 39 of file pcscd.h.

Enumeration Type Documentation

◆ anonymous enum

Different values for struct ReaderContext powerState field.

Enumerator
POWER_STATE_UNPOWERED 

auto power off

POWER_STATE_POWERED 

powered

POWER_STATE_GRACE_PERIOD 

card was in use

POWER_STATE_IN_USE 

card is used

Definition at line 61 of file pcscd.h.