コード例 #1
0
ファイル: AxisControl.cs プロジェクト: JoostZ/vixencontrol
 /// <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);
 }
コード例 #2
0
ファイル: AxisControl.cs プロジェクト: JoostZ/vixencontrol
 /// <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);
 }
コード例 #3
0
ファイル: AxisControl.cs プロジェクト: JoostZ/vixencontrol
 /// <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));
 }
コード例 #4
0
ファイル: AxisControl.cs プロジェクト: JoostZ/vixencontrol
 /// <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));
 }