Beispiel #1
0
        /// <summary>
        ///     二维位置比较参数
        /// </summary>
        /// <param name="nCardNum"></param>
        /// <param name="chn">通道号 0:HSIO1 ; 通道号 1: HSIO2</param>
        /// <param name="pPrm">参数</param>
        /// <returns></returns>
        public override short D2DCompareSetPrm(short nCardNum, short chn, ref object pPrm)
        {
            short nRtn   = 0;
            var   newPrm = (STRUCT_DD_COMPARE_PRM)pPrm;
            var   gprm   = new CMc.T2_D_COMPARE_PRM
            {
                m_encx       = newPrm.m_nEncx,
                m_ency       = newPrm.m_nEncy,
                m_source     = newPrm.m_nSource,
                m_outputType = newPrm.m_nOutputType,
                m_startLevel = newPrm.m_nStartLevel,
                m_time       = newPrm.m_nTime,
                m_maxerr     = newPrm.m_nMaxerr,
                m_threshold  = newPrm.m_nThreshold
            };

            nRtn |= CMc.GT_2DCompareSetPrm(nCardNum, chn, ref gprm);
            return(nRtn);
        }