aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Stubs Collection/stubs/screw_LS.cs
blob: cff60fd8ffc8c424b5d4c448731312b057acb045 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Text;
using System.Linq;
using System.Drawing;
using System.Diagnostics;
using System.Windows.Forms;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Tango.PMR.Stubs;
using Tango.Stubs;

    
const Int32 FPGA1 =  0x60000000;

const UInt32 F1_LS_SCREW_LEFT  = 0x02;
const UInt32 F1_LS_SCREW_RIGHT = 0x01;
	
const Int32 F1_GPI_LS3_D = 0x40;
Int32 loop = 1;

public void OnExecute(StubManager stubManager)
{
	while(loop == 1)
	{
	 var response = stubManager.Run<StubFpgaReadRegResponse>("StubFpgaReadRegRequest" , FPGA1 + F1_GPI_LS3_D);
	 Thread.Sleep(1000);
	 stubManager.WriteLineHex(response.Value,4);
	}
}