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.CardEmulDesfireEV0 Class Reference

Description of PiccEmulDesfireEV0. More...

Inheritance diagram for SpringCard.PCSC.CardEmulation.CardEmulDesfireEV0:
SpringCard.PCSC.CardEmulation.CardEmulBase

Public Member Functions

byte FormatPICC (CardBuffer DataIn, ref CardBuffer DataOut)
 
byte GetVersion (CardBuffer DataIn, ref CardBuffer DataOut)
 
bool SelectApplication (uint Aid)
 
bool DeleteApplication (uint Aid)
 
byte GetKeyVersion (CardBuffer DataIn, ref CardBuffer DataOut)
 
byte GetKeySettings (CardBuffer DataIn, ref CardBuffer DataOut)
 
byte ChangeKey (CardBuffer DataIn, ref CardBuffer DataOut)
 
byte ChangeKeySettings (CardBuffer DataIn, ref CardBuffer DataOut)
 
byte ReadData (CardBuffer DataIn, ref CardBuffer DataOut)
 
byte WriteData (CardBuffer DataIn, ref CardBuffer DataOut)
 
byte ReadRecords (CardBuffer DataIn, ref CardBuffer DataOut)
 
byte WriteRecord (CardBuffer DataIn, ref CardBuffer DataOut)
 
byte ClearRecordFile (CardBuffer DataIn, ref CardBuffer DataOut)
 
byte GetValue (CardBuffer DataIn, ref CardBuffer DataOut)
 
byte Debit (CardBuffer DataIn, ref CardBuffer DataOut)
 
byte Credit (CardBuffer DataIn, ref CardBuffer DataOut)
 
byte LimitedCredit (CardBuffer DataIn, ref CardBuffer DataOut)
 
byte CommitTransaction (CardBuffer DataIn, ref CardBuffer DataOut)
 
byte AbortTransaction (CardBuffer DataIn, ref CardBuffer DataOut)
 
byte Authenticate (CardBuffer DataIn, ref CardBuffer DataOut)
 
bool CheckIn (CardBuffer DataIn, uint minLen, uint maxLen)
 
bool CheckIn (CardBuffer DataIn, uint Len)
 
long Get4 (byte[] buf, uint offset)
 
long Get4 (byte[] buf)
 
uint Get3 (byte[] buf, uint offset)
 
uint Get3 (byte[] buf)
 
ushort Get2 (byte[] buf, uint offset)
 
ushort Get2 (byte[] buf)
 
void Set4 (ref byte[] buf, uint offset, long val)
 
void Set3 (ref byte[] buf, uint offset, uint val)
 
void Set2 (ref byte[] buf, uint offset, ushort val)
 
bool SaveToXML (string FileName)
 
bool LoadFromXML (string FileName)
 
- Public Member Functions inherited from SpringCard.PCSC.CardEmulation.CardEmulBase
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 OPERATION_OK = 0x00
 
const byte INTERNAL_ERROR = 0xFF
 
const byte NO_CHANGES = 0x0C
 
const byte OUT_OF_EEPROM_ERROR = 0x0E
 
const byte ILLEGAL_COMMAND_CODE = 0x1C
 
const byte INTEGRITY_ERROR = 0x1E
 
const byte NO_SUCH_KEY = 0x40
 
const byte LENGTH_ERROR = 0x7E
 
const byte PERMISSION_DENIED = 0x9D
 
const byte PARAMETER_ERROR = 0x9E
 
const byte APPLICATION_NOT_FOUND = 0xA0
 
const byte APPL_INTEGRITY_ERROR = 0xA1
 
const byte AUTHENTICATION_CORRECT = 0xAC
 
const byte AUTHENTICATION_ERROR = 0xAE
 
const byte ADDITIONAL_FRAME = 0xAF
 
const byte BOUNDARY_ERROR = 0xBE
 
const byte CARD_INTEGRITY_ERROR = 0xC1
 
const byte COMMAND_ABORTED = 0xCA
 
const byte CARD_DISABLED_ERROR = 0xCD
 
const byte COUNT_ERROR = 0xCE
 
const byte DUPLICATE_ERROR = 0xDE
 
const byte FILE_NOT_FOUND = 0xF0
 
const byte FILE_INTEGRITY_ERROR = 0xF1
 
const byte EEPROM_ERROR = 0xEE
 
const byte COMM_MODE_PLAIN = 0x00
 
const byte COMM_MODE_MACED = 0x01
 
const byte COMM_MODE_CIPHER = 0x03
 
const byte ROOT_KEY_ALLOW_CHANGE_SETTINGS = 0x08
 
const byte ROOT_KEY_FREE_CREATE_DELETE = 0x04
 
const byte ROOT_KEY_FREE_DIRECTORY = 0x02
 
const byte ROOT_KEY_ALLOW_CHANGE_KEY = 0x01
 
- Public Attributes inherited from SpringCard.PCSC.CardEmulation.CardEmulBase
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

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

Additional Inherited Members

- Protected Attributes inherited from SpringCard.PCSC.CardEmulation.CardEmulBase
bool IsFirstCommand = true
 
bool UseApdus = true
 

Detailed Description

Description of PiccEmulDesfireEV0.


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