Example #1
0
        /// <summary>
        /// 在固定的位置读出固定长度的数据
        /// </summary>
        private static short IC_Read_hex(int icdev, int offset, int len, StringBuilder Databuffer)
        {
            Int16 result = 0;

            result = Dcrf32.dc_authentication(icdev, pwd_mode, getSecNr(offset));    //校验第0套密码;
            if (result != 0)
            {
                return(result);
            }
            result = Dcrf32.dc_read_hex(icdev, offset, Databuffer);     //获取数据
            return(result);
        }