public uint GetCode(byte sing) { int ret; uint snr = 0; TracingHelper.Info("send reader cardId"); ret = API_RF.rf_card(sing, ref snr); TracingHelper.Info("recive sn=" + snr); if (ret == 0) { return(snr); } else { return(0); } }
public void GetCode(byte sing, object context, Action <Exception, uint, object> callBack) { try { int ret; uint snr = 0; ret = API_RF.rf_card(sing, ref snr); if (ret == 0) { callBack(null, snr, context); } else { callBack(null, 0, context); } } catch (Exception ex) { callBack(ex, 0, context); } }
public void Halt() { API_RF.rf_halt(); }
public void Beep(int time) { API_RF.rf_beep(time); }