In Files

Files

CTAPICore

The CTAPICore that interfaces with the shared library for your cardterminal. The following constants are defined in this module:

 CT
 CTBCS_CLA
 CTBCS_DATA_STATUS_CARD
 CTBCS_DATA_STATUS_CARD_CONNECT
 CTBCS_DATA_STATUS_NOCARD
 CTBCS_INS_EJECT
 CTBCS_INS_REQUEST
 CTBCS_INS_RESET
 CTBCS_INS_STATUS
 CTBCS_MIN_COMMAND_SIZE
 CTBCS_MIN_RESPONSE_SIZE
 CTBCS_P1_CT_KERNEL
 CTBCS_P1_DISPLAY
 CTBCS_P1_INTERFACE1
 CTBCS_P1_INTERFACE10
 CTBCS_P1_INTERFACE11
 CTBCS_P1_INTERFACE12
 CTBCS_P1_INTERFACE13
 CTBCS_P1_INTERFACE14
 CTBCS_P1_INTERFACE2
 CTBCS_P1_INTERFACE3
 CTBCS_P1_INTERFACE4
 CTBCS_P1_INTERFACE5
 CTBCS_P1_INTERFACE6
 CTBCS_P1_INTERFACE7
 CTBCS_P1_INTERFACE8
 CTBCS_P1_INTERFACE9
 CTBCS_P1_KEYPAD
 CTBCS_P2_REQUEST_GET_ATR
 CTBCS_P2_REQUEST_GET_HIST
 CTBCS_P2_REQUEST_NO_RESP
 CTBCS_P2_RESET_GET_ATR
 CTBCS_P2_RESET_GET_HIST
 CTBCS_P2_RESET_NO_RESP
 CTBCS_P2_STATUS_ICC
 CTBCS_P2_STATUS_MANUFACTURER
 CTBCS_SW1_COMMAND_NOT_ALLOWED
 CTBCS_SW1_EJECT_NOT_REMOVED
 CTBCS_SW1_EJECT_OK
 CTBCS_SW1_EJECT_REMOVED
 CTBCS_SW1_ICC_ERROR
 CTBCS_SW1_OK
 CTBCS_SW1_REQUEST_ASYNC_OK
 CTBCS_SW1_REQUEST_CARD_PRESENT
 CTBCS_SW1_REQUEST_ERROR
 CTBCS_SW1_REQUEST_NO_CARD
 CTBCS_SW1_REQUEST_SYNC_OK
 CTBCS_SW1_REQUEST_TIMER_ERROR
 CTBCS_SW1_RESET_ASYNC_OK
 CTBCS_SW1_RESET_CT_OK
 CTBCS_SW1_RESET_ERROR
 CTBCS_SW1_RESET_SYNC_OK
 CTBCS_SW1_WRONG_CLA
 CTBCS_SW1_WRONG_INS
 CTBCS_SW1_WRONG_LENGTH
 CTBCS_SW1_WRONG_PARAM
 CTBCS_SW2_COMMAND_NOT_ALLOWED
 CTBCS_SW2_EJECT_NOT_REMOVED
 CTBCS_SW2_EJECT_OK
 CTBCS_SW2_EJECT_REMOVED
 CTBCS_SW2_ICC_ERROR
 CTBCS_SW2_OK
 CTBCS_SW2_REQUEST_ASYNC_OK
 CTBCS_SW2_REQUEST_CARD_PRESENT
 CTBCS_SW2_REQUEST_ERROR
 CTBCS_SW2_REQUEST_NO_CARD

CTBCS_SW2_REQUEST_SYNC_OK CTBCS_SW2_REQUEST_TIMER_ERROR CTBCS_SW2_RESET_ASYNC_OK CTBCS_SW2_RESET_CT_OK CTBCS_SW2_RESET_ERROR CTBCS_SW2_RESET_SYNC_OK CTBCS_SW2_WRONG_CLA CTBCS_SW2_WRONG_INS CTBCS_SW2_WRONG_LENGTH CTBCS_SW2_WRONG_PARAM ERR_CT ERR_HTSI ERR_INVALID ERR_MEMORY ERR_TRANS HOST HTSIError ICC1 ICC10 ICC11 ICC12 ICC13 ICC14 ICC2 ICC3 ICC4 ICC5 ICC6 ICC7 ICC8 ICC9 MAX_APDULEN OK PORT_COM1 PORT_COM2 PORT_COM3 PORT_COM4 PORT_LPT1 PORT_LPT2 PORT_Modem PORT_Printer

Constants

CTBCS_MIN_COMMAND_SIZE
(Not documented)
CTBCS_MIN_RESPONSE_SIZE
(Not documented)
CTBCS_CLA
(Not documented)
CTBCS_INS_RESET
(Not documented)
CTBCS_INS_REQUEST
(Not documented)
CTBCS_INS_STATUS
(Not documented)
CTBCS_INS_EJECT
(Not documented)
CTBCS_P1_CT_KERNEL
(Not documented)
CTBCS_P1_INTERFACE1
(Not documented)
CTBCS_P1_INTERFACE2
(Not documented)
CTBCS_P1_INTERFACE3
(Not documented)
CTBCS_P1_INTERFACE4
(Not documented)
CTBCS_P1_INTERFACE5
(Not documented)
CTBCS_P1_INTERFACE6
(Not documented)
CTBCS_P1_INTERFACE7
(Not documented)
CTBCS_P1_INTERFACE8
(Not documented)
CTBCS_P1_INTERFACE9
(Not documented)
CTBCS_P1_INTERFACE10
(Not documented)
CTBCS_P1_INTERFACE11
(Not documented)
CTBCS_P1_INTERFACE12
(Not documented)
CTBCS_P1_INTERFACE13
(Not documented)
CTBCS_P1_INTERFACE14
(Not documented)
CTBCS_P1_DISPLAY
(Not documented)
CTBCS_P1_KEYPAD
(Not documented)
CTBCS_P2_RESET_NO_RESP
(Not documented)
CTBCS_P2_RESET_GET_ATR
(Not documented)
CTBCS_P2_RESET_GET_HIST
(Not documented)
CTBCS_P2_REQUEST_NO_RESP
(Not documented)
CTBCS_P2_REQUEST_GET_ATR
(Not documented)
CTBCS_P2_REQUEST_GET_HIST
(Not documented)
CTBCS_P2_STATUS_MANUFACTURER
(Not documented)
CTBCS_P2_STATUS_ICC
(Not documented)
CTBCS_SW1_OK
(Not documented)
CTBCS_SW2_OK
(Not documented)
CTBCS_SW1_WRONG_LENGTH
(Not documented)
CTBCS_SW2_WRONG_LENGTH
(Not documented)
CTBCS_SW1_COMMAND_NOT_ALLOWED
(Not documented)
CTBCS_SW2_COMMAND_NOT_ALLOWED
(Not documented)
CTBCS_SW1_WRONG_PARAM
(Not documented)
CTBCS_SW2_WRONG_PARAM
(Not documented)
CTBCS_SW1_WRONG_INS
(Not documented)
CTBCS_SW2_WRONG_INS
(Not documented)
CTBCS_SW1_WRONG_CLA
(Not documented)
CTBCS_SW2_WRONG_CLA
(Not documented)
CTBCS_SW1_ICC_ERROR
(Not documented)
CTBCS_SW2_ICC_ERROR
(Not documented)
CTBCS_SW1_RESET_CT_OK
(Not documented)
CTBCS_SW2_RESET_CT_OK
(Not documented)
CTBCS_SW1_RESET_SYNC_OK
(Not documented)
CTBCS_SW2_RESET_SYNC_OK
(Not documented)
CTBCS_SW1_RESET_ASYNC_OK
(Not documented)
CTBCS_SW2_RESET_ASYNC_OK
(Not documented)
CTBCS_SW1_RESET_ERROR
(Not documented)
CTBCS_SW2_RESET_ERROR
(Not documented)
CTBCS_SW1_REQUEST_SYNC_OK
(Not documented)
CTBCS_SW2_REQUEST_SYNC_OK
(Not documented)
CTBCS_SW1_REQUEST_ASYNC_OK
(Not documented)
CTBCS_SW2_REQUEST_ASYNC_OK
(Not documented)
CTBCS_SW1_REQUEST_NO_CARD
(Not documented)
CTBCS_SW2_REQUEST_NO_CARD
(Not documented)
CTBCS_SW1_REQUEST_CARD_PRESENT
(Not documented)
CTBCS_SW2_REQUEST_CARD_PRESENT
(Not documented)
CTBCS_SW1_REQUEST_ERROR
(Not documented)
CTBCS_SW2_REQUEST_ERROR
(Not documented)
CTBCS_SW1_REQUEST_TIMER_ERROR
(Not documented)
CTBCS_SW2_REQUEST_TIMER_ERROR
(Not documented)
CTBCS_SW1_EJECT_OK
(Not documented)
CTBCS_SW2_EJECT_OK
(Not documented)
CTBCS_SW1_EJECT_REMOVED
(Not documented)
CTBCS_SW2_EJECT_REMOVED
(Not documented)
CTBCS_SW1_EJECT_NOT_REMOVED
(Not documented)
CTBCS_SW2_EJECT_NOT_REMOVED
(Not documented)
CTBCS_DATA_STATUS_NOCARD
(Not documented)
CTBCS_DATA_STATUS_CARD
(Not documented)
CTBCS_DATA_STATUS_CARD_CONNECT
(Not documented)
MAX_APDULEN
(Not documented)
OK
(Not documented)
ERR_INVALID
(Not documented)
ERR_CT
(Not documented)
ERR_TRANS
(Not documented)
ERR_MEMORY
(Not documented)
ERR_HTSI
(Not documented)
PORT_COM1
(Not documented)
PORT_COM2
(Not documented)
PORT_COM3
(Not documented)
PORT_COM4
(Not documented)
PORT_Printer
(Not documented)
PORT_Modem
(Not documented)
PORT_LPT1
(Not documented)
PORT_LPT2
(Not documented)
CT
(Not documented)
HOST
(Not documented)
ICC1
(Not documented)
ICC2
(Not documented)
ICC3
(Not documented)
ICC4
(Not documented)
ICC5
(Not documented)
ICC6
(Not documented)
ICC7
(Not documented)
ICC8
(Not documented)
ICC9
(Not documented)
ICC10
(Not documented)
ICC11
(Not documented)
ICC12
(Not documented)
ICC13
(Not documented)
ICC14
(Not documented)

Public Class Methods

ct_close(...) click to toggle source

A wrapper function for the CT API CT_close(ctn) function. It takes a cardterminal number as the only argument. See ctapi(3) for more information.

static VALUE
ctapi_ct_close(int argc, VALUE *argv, VALUE self) 
ct_data(...) click to toggle source

A wrapper function for the CT API CT_data function. This one is much nicer than the original CT_data because is has fewer arguments: ct_data(ctn, dad, sad, cmd) where ctn is the cardterminal number, dad is the destination address number, sad is the source address number and cmd is the command as a String. See ctapi(3) for more information.

static VALUE
ctapi_ct_data(int argc, VALUE *argv, VALUE self) 
ct_init(...) click to toggle source

A wrapper function for the CT API CT_init(ctn, pn) function. The first argument is a cardterminal number, the second argument is an identifier for the interface as a portnumber. See ctapi(3) for more information.

static VALUE
ctapi_ct_init(int argc, VALUE *argv, VALUE self) 

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.