Esempio n. 1
0
 /// <summary>
 /// 设置P1P2(int类型,比如设置文件偏移量)
 /// </summary>
 public void SetP1P2(ushort value)
 {
     byte[] data = CPUCardHelper.IntConvertTo2Byte(value);
     P1 = data[0];
     P2 = data[1];
 }
Esempio n. 2
0
 /// <summary>
 /// 身份验证
 /// </summary>
 /// <param name="Key"></param>
 /// <returns></returns>
 public ApduMsg Auth(string Key)
 {
     return(Auth(CPUCardHelper.ConverToBytes(Key)));
 }
Esempio n. 3
0
 /// <summary>
 /// 发送十六进制字符串
 /// </summary>
 /// <param name="str"></param>
 /// <returns></returns>
 public byte[] SendStrCommand(string str)
 {
     return(carder.SendCommand(CPUCardHelper.ConverToBytes(str)));
 }
Esempio n. 4
0
 public void SetData(string hexValue)
 {
     Data = CPUCardHelper.ConverToBytes(hexValue);
 }