Exemplo n.º 1
0
 /// <summary>
 /// Write a status register in the controller
 /// </summary>
 /// <param name="aStatus">The register to be written to. It is the <i>generic axis</i> register</param>
 /// <param name="aValue">The value to write in the register</param>
 protected void SetControllerStatus(Status aStatus, Int32 aValue)
 {
     Debug.Assert(StatusRegister.ContainsKey(aStatus));
     Controller.Registers theRegister = StatusRegister[aStatus];
     WriteInt(theRegister, aValue);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Write an integer to the sepcified register
 /// </summary>
 /// <param name="aRegister">The register to write to. It is the <i>axis specific</i> register</param>
 /// <param name="aValue">The value to write to aRegister</param>
 protected void WriteInt(Controller.Registers aRegister, Int32 aValue)
 {
     iController.Write(aRegister, aValue);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Read a status register from the controller
 /// </summary>
 /// <param name="aStatus">The register to be read. It is the <i>generic axis</i> register</param>
 /// <returns>The value of the register</returns>
 protected Int32 GetControllerStatus(Status aStatus)
 {
     Debug.Assert(StatusRegister.ContainsKey(aStatus));
     Controller.Registers theRegister = StatusRegister[aStatus];
     return(ReadInt(theRegister));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Get an integer from the sepcified register
 /// </summary>
 /// <param name="aRegister">The register to read. It is the <i>axis specific</i> register</param>
 /// <returns>The read integer</returns>
 protected Int32 ReadInt(Controller.Registers aRegister)
 {
     return(iController.Read(aRegister));
 }