SpringCard PC/SC Helpers for .NET  18.10.10
High-level access to a few current cards and to advanced coupler features
SpringCard.PCSC.CardEmulation.CardEmulBase Class Referenceabstract
Inheritance diagram for SpringCard.PCSC.CardEmulation.CardEmulBase:
SpringCard.PCSC.CardEmulation.CardEmul7816 SpringCard.PCSC.CardEmulation.CardEmulDesfireEV0

Public Member Functions

delegate void ErrorCallback ()
 
delegate void StatusChangedCallback ()
 
delegate void CommandReceivedCallback (CardBuffer Command)
 
delegate void ResponseReadyCallback (CardBuffer Response)
 
bool Running ()
 
void Stop ()
 
bool Start (string reader)
 
bool GetEvent (ref byte evtcode, ref byte evtflags)
 
bool WaitEvent (ref byte evtcode, ref byte evtflags, ushort timeout_ms)
 
CardBuffer Process (CardBuffer inBuffer)
 

Public Attributes

const byte NFC_EVENT_SELECT = 0x01
 
const byte NFC_EVENT_C_APDU_READY = 0x02
 
const byte NFC_EVENT_R_APDU_DONE = 0x03
 
const byte NFC_EVENT_DESELECT = 0x04
 
ErrorCallback OnError = null
 
StatusChangedCallback OnCardSelected = null
 
StatusChangedCallback OnCardDeselected = null
 
CommandReceivedCallback OnCommandReceived = null
 
ResponseReadyCallback OnResponseReady = null
 
ushort EventTimeoutMs = 450
 
ushort MaxIdleEventCount = 100
 

Protected Member Functions

virtual CardBuffer OnFrame (CardBuffer cmd)
 
abstract RAPDU OnApdu (CAPDU capdu)
 
abstract void OnCardSelect ()
 
abstract void OnCardDeselect ()
 

Protected Attributes

bool IsFirstCommand = true
 
bool UseApdus = true
 

The documentation for this class was generated from the following file: