/// <summary>
 /// Creates an instance of an 16-bit register.
 /// </summary>
 /// <param name="n">Identifier for debugging</param>
 /// <param name="del">Delegate for talking to hardware</param>
 /// <param name="user">Pointer to specific data such as config</param>
 /// <param name="default_val">Default value for the register</param>
 public Register16(string n, Register16WriteDel del, object user, ushort default_val)
 {
     name          = n;
     HardwareWrite = del;
     user_data     = user;
     hardware_data = software_data = default_val;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates an instance of an 16-bit register.
 /// </summary>
 /// <param name="n">Identifier for debugging</param>
 /// <param name="del">Delegate for talking to hardware</param>
 /// <param name="user">Pointer to specific data such as config</param>
 /// <param name="default_val">Default value for the register</param>
 public Register16(string n, Register16WriteDel del, object user, ushort default_val)
 {
     name = n;
     HardwareWrite = del;
     user_data = user;
     hardware_data = software_data = default_val;
 }
        private Register16WriteDel HardwareWrite;       // function pointer for hardware writing

        #endregion

        #region Constructor

        /// <summary>
        /// Creates an instance of an 16-bit register.
        /// </summary>
        /// <param name="n">Identifier for debugging</param>
        /// <param name="del">Delegate for talking to hardware</param>
        /// <param name="user">Pointer to specific data such as config</param>
        public Register16(string n, Register16WriteDel del, object user)
        {
            name          = n;
            HardwareWrite = del;
            user_data     = user;
        }
Ejemplo n.º 4
0
        private object user_data; // used to pass specific data (config, etc)

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Creates an instance of an 16-bit register.
        /// </summary>
        /// <param name="n">Identifier for debugging</param>
        /// <param name="del">Delegate for talking to hardware</param>
        /// <param name="user">Pointer to specific data such as config</param>
        public Register16(string n, Register16WriteDel del, object user)
        {
            name = n;
            HardwareWrite = del;
            user_data = user;
        }