public CardDeviceInfo GetDeviceInfo() { var info = new StringBuilder(); CardDllImport.GetDeviceInfo(_handle, info); return(new CardDeviceInfo(info.ToString())); }
public string ReadUid() { var uid = new StringBuilder(); CardDllImport.IsoGetUid14443a(_handle, uid); if (uid.Length > 0) { uid.Remove(8, uid.Length - 8); } return(uid.ToString()); }
public bool OpenDevice() { var handle = CardDllImport.UsbHidOpen(0x6298, 0x3212); if (handle > 0) { _handle = handle; return(true); } return(false); }
public void Beep(byte time) { CardDllImport.Beep(_handle, time); }
public void CloseDevice() { CardDllImport.UsbHidClose(ref _handle); }