Card.YuXiangRC.CheckGasCard C# (CSharp) Метод

CheckGasCard() публичный Метод

判卡
public CheckGasCard ( Int16 com, Int32 baud ) : int
com System.Int16 串口号,0代表串口1
baud System.Int32
Результат int
        public int CheckGasCard(

              Int16 com,          //串口号,从0开始
              Int32 baud          //波特率
              )
        {
            int com1 = com;
            int type = 0;
            int ql = 0;
            int cs1 = 0;
            int a = 10;
            byte[] kh1 = new byte[8];
            Log.Debug("CheckGasCard(short com, int baud)=(" + com + "," + baud + ")");
            int i = Gold_Readcard(com1, baud, kh1, ref ql, ref cs1, ref type);
            Log.Debug("StaticCheckGasCard(com, baud)=" + i);
            //用读卡代替判卡 通过type判断是否是金卡民用 
            if (type == 1)
            {
                a = 0;
            }
            return a;
        }
        /// <summary>