Пример #1
0
        /// <summary>
        /// Gets the size of the table.
        /// </summary>
        /// <param name="table3043Info">The 3043 Core Dump Info sub table for the current device</param>
        /// <returns>The size of the table in bytes</returns>
        // Revision History
        // MM/DD/YY who Version Issue# Description
        // -------- --- ------- ------ ---------------------------------------
        // 03/03/10 RCG 2.40.23 N/A    Created

        private static ushort GetTableSize(OpenWayMFGTable3043Info table3043Info)
        {
            ushort usTableSize = 0;

            if (table3043Info != null)
            {
                usTableSize = (ushort)(12 * table3043Info.NumberOfMapItems);
            }

            return(usTableSize);
        }
Пример #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="psem">The PSEM communications object</param>
        /// <param name="table3043Info">The 3043 Core Dump Info sub table</param>
        // Revision History
        // MM/DD/YY who Version Issue# Description
        // -------- --- ------- ------ ---------------------------------------
        // 03/03/10 RCG 2.40.23 N/A    Created

        public OpenWayMFGTable3043Map(CPSEM psem, OpenWayMFGTable3043Info table3043Info)
            : base(psem, 3043, SUBTABLE_OFFSET, GetTableSize(table3043Info))
        {
            m_MapItems      = null;
            m_Table3043Info = table3043Info;
        }