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