Module Smartcard::PCSC
In: ext/smartcard_pcsc/pcsc_card.c

:Document-method: acknowledge_events! call-seq:

     acknowledge_events!() --> self

Mass-assigns current_state to event_state for each reader state element. Useful to acknowledge all the status changed communicated after a call to Smartcard::PCSC::Context#get_status_change (and thus prepare for a new call).

Classes and Modules

Class Smartcard::PCSC::Card
Class Smartcard::PCSC::Context
Class Smartcard::PCSC::Exception
Class Smartcard::PCSC::IoRequest
Class Smartcard::PCSC::PcscException
Class Smartcard::PCSC::ReaderStates

Constants

MAX_ATR_SIZE = MAX_ATR_SIZE   Maximum ATR size.
SCARD_S_SUCCESS = SCARD_S_SUCCESS   All is good.
SCARD_F_INTERNAL_ERROR = SCARD_F_INTERNAL_ERROR   An internal consistency check failed.
SCARD_E_CANCELLED = SCARD_E_CANCELLED   The action was cancelled by an SCardCancel request.
SCARD_E_INVALID_HANDLE = SCARD_E_INVALID_HANDLE   The supplied handle was invalid.
SCARD_E_INVALID_PARAMETER = MAX_ATR_SIZE   One or more of the supplied parameters could not be properly interpreted.
SCARD_E_INVALID_TARGET = SCARD_E_INVALID_TARGET   Registry startup information is missing or invalid.
SCARD_E_NO_MEMORY = SCARD_E_NO_MEMORY   Not enough memory available to complete this command.
SCARD_F_WAITED_TOO_LONG = SCARD_F_WAITED_TOO_LONG   An internal consistency timer has expired.
SCARD_E_INSUFFICIENT_BUFFER = SCARD_E_INSUFFICIENT_BUFFER   The data buffer to receive returned data is too small for the returned data.
SCARD_E_UNKNOWN_READER = SCARD_E_UNKNOWN_READER   The specified reader name is not recognized.
SCARD_E_SHARING_VIOLATION = SCARD_E_SHARING_VIOLATION   The user-specified timeout value has expired.
SCARD_E_NO_SMARTCARD = SCARD_E_NO_SMARTCARD   The smart card cannot be accessed because of other connections outstanding.
SCARD_E_TIMEOUT = SCARD_E_TIMEOUT   The operation requires a Smart Card, but no Smart Card is currently in the device.
SCARD_E_UNKNOWN_CARD = SCARD_E_UNKNOWN_CARD   The specified smart card name is not recognized.
SCARD_E_CANT_DISPOSE = SCARD_E_CANT_DISPOSE   The system could not dispose of the media in the requested manner.
SCARD_E_PROTO_MISMATCH = SCARD_E_PROTO_MISMATCH   The requested protocols are incompatible with the protocol currently in use with the smart card.
SCARD_E_NOT_READY = SCARD_E_NOT_READY   The reader or smart card is not ready to accept commands.
SCARD_E_INVALID_VALUE = SCARD_E_INVALID_VALUE   One or more of the supplied parameters values could not be properly interpreted.
SCARD_E_SYSTEM_CANCELLED = SCARD_E_SYSTEM_CANCELLED   The action was cancelled by the system, presumably to log off or shut down.
SCARD_F_COMM_ERROR = SCARD_F_COMM_ERROR   An internal communications error has been detected.
SCARD_F_UNKNOWN_ERROR = SCARD_F_UNKNOWN_ERROR   An internal error has been detected, but the source is unknown.
SCARD_E_INVALID_ATR = SCARD_E_INVALID_ATR   An ATR obtained from the registry is not a valid ATR string.
SCARD_E_NOT_TRANSACTED = SCARD_E_NOT_TRANSACTED   An attempt was made to end a non-existent transaction.
SCARD_E_READER_UNAVAILABLE = SCARD_E_READER_UNAVAILABLE   The specified reader is not currently available for use.
SCARD_W_UNSUPPORTED_CARD = SCARD_W_UNSUPPORTED_CARD   The reader cannot communicate with the card, due to ATR string configuration conflicts.
SCARD_W_UNRESPONSIVE_CARD = SCARD_W_UNRESPONSIVE_CARD   The smart card is not responding to a reset.
SCARD_W_UNPOWERED_CARD = SCARD_W_UNPOWERED_CARD   Power has been removed from the smart card, so that further communication is not possible.
SCARD_W_RESET_CARD = SCARD_W_RESET_CARD   The smart card has been reset, so any shared state information is invalid.
SCARD_W_REMOVED_CARD = SCARD_W_REMOVED_CARD   The smart card has been removed, so further communication is not possible.
SCARD_E_PCI_TOO_SMALL = SCARD_E_PCI_TOO_SMALL   The PCI Receive buffer was too small.
SCARD_E_READER_UNSUPPORTED = SCARD_E_READER_UNSUPPORTED   The reader driver does not meet minimal requirements for support.
SCARD_E_DUPLICATE_READER = SCARD_E_DUPLICATE_READER   The reader driver did not produce a unique reader name.
SCARD_E_CARD_UNSUPPORTED = SCARD_E_CARD_UNSUPPORTED   The smart card does not meet minimal requirements for support.
SCARD_E_NO_SERVICE = SCARD_E_NO_SERVICE   The Smart card resource manager is not running.
SCARD_E_SERVICE_STOPPED = SCARD_E_SERVICE_STOPPED   The Smart card resource manager has shut down.
SCARD_E_NO_READERS_AVAILABLE = SCARD_E_NO_READERS_AVAILABLE   Cannot find a smart card reader.
SCOPE_USER = SCARD_SCOPE_USER   Scope in user space.
SCOPE_TERMINAL = SCARD_SCOPE_TERMINAL   Scope in terminal.
SCOPE_SYSTEM = SCARD_SCOPE_SYSTEM   Scope in system.
STATE_UNAWARE = SCARD_STATE_UNAWARE   App wants status.
STATE_IGNORE = SCARD_STATE_IGNORE   Ignore this reader.
STATE_CHANGED = SCARD_STATE_CHANGED   State has changed.
STATE_UNKNOWN = SCARD_STATE_UNKNOWN   Reader unknown.
STATE_UNAVAILABLE = SCARD_STATE_UNAVAILABLE   Status unavailable.
STATE_EMPTY = SCARD_STATE_EMPTY   Card removed.
STATE_PRESENT = SCARD_STATE_PRESENT   Card inserted.
STATE_ATRMATCH = SCARD_STATE_ATRMATCH   ATR matches card.
STATE_EXCLUSIVE = SCARD_STATE_EXCLUSIVE   Exclusive Mode.
STATE_INUSE = SCARD_STATE_INUSE   Shared Mode.
STATE_MUTE = SCARD_STATE_MUTE   Unresponsive card.
STATE_UNPOWERED = SCARD_STATE_UNPOWERED   Unpowered card.
INFINITE_TIMEOUT = INFINITE   Infinite timeout.
STATUS_ABSENT = SCARD_UNKNOWNU   Card is absent.
STATUS_PRESENT = SCARD_PRESENT   Card is present.
STATUS_SWALLOWED = SCARD_SWALLOWED   Card not powered.
STATUS_POWERED = SCARD_POWERED   Card is powered.
STATUS_NEGOTIABLE = SCARD_NEGOTIABLE   Ready for PTS.
STATUS_SPECIFIC = SCARD_SPECIFIC   PTS has been set.
PROTOCOL_UNSET = SCARD_PROTOCOL_UNSET   Protocol not set.
PROTOCOL_T0 = SCARD_PROTOCOL_T0   T=0 active protocol.
PROTOCOL_T1 = SCARD_PROTOCOL_T1   T=1 active protocol.
PROTOCOL_RAW = SCARD_PROTOCOL_RAW   Raw active protocol.
PROTOCOL_T15 = SCARD_PROTOCOL_T15   T=15 protocol.
PROTOCOL_ANY = SCARD_PROTOCOL_ANY   IFD determines protocol.
SHARE_EXCLUSIVE = SCARD_SHARE_EXCLUSIVE   Exclusive mode only.
SHARE_SHARED = SCARD_SHARE_SHARED   Shared mode only.
SHARE_DIRECT = SCARD_SHARE_DIRECT   Raw mode only.
DISPOSITION_LEAVE = SCARD_LEAVE_CARD   Do nothing on close.
DISPOSITION_RESET = SCARD_RESET_CARD   Reset on close.
DISPOSITION_UNPOWER = SCARD_UNPOWER_CARD   Power down on close.
DISPOSITION_EJECT = SCARD_EJECT_CARD   Eject on close.
INITIALIZATION_LEAVE = SCARD_LEAVE_CARD   Do nothing.
INITIALIZATION_RESET = SCARD_RESET_CARD   Reset the card (warm reset).
INITIALIZATION_UNPOWER = SCARD_UNPOWER_CARD   Power down the card (cold reset).
INITIALIZATION_EJECT = SCARD_EJECT_CARD   Eject the card.
ATTR_ATR_STRING = SCARD_ATTR_ATR_STRING   ATR of the card.
ATTR_VENDOR_IFD_VERSION = SCARD_ATTR_VENDOR_IFD_VERSION   Vendor-supplied interface driver version.
ATTR_VENDOR_NAME = SCARD_ATTR_VENDOR_NAME   Name of the interface driver version.
ATTR_MAXINPUT = SCARD_ATTR_MAXINPUT   Maximum size of an APDU supported by the reader.
IOREQUEST_T0 = SCARD_PCI_T0   IoRequest for transmitting using the T=0 protocol.
IOREQUEST_T1 = SCARD_PCI_T1   IoRequest for transmitting using the T=1 protocol.
IOREQUEST_RAW = SCARD_PCI_RAW   IoRequest for transmitting using the RAW protocol.

[Validate]