Example #1
0
        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);
            }
        }
Example #2
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);
     }
 }
Example #3
0
 public void Halt()
 {
     API_RF.rf_halt();
 }
Example #4
0
 public void Beep(int time)
 {
     API_RF.rf_beep(time);
 }