blob: b5c64664989c7ca895cc78cfc871184050fb28d1 (
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
31
|
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;
/*HEAD CARD I/O
Slave address 0x40 / 0x42 / 0x44 / 0x46
-------------------------
| Byte | WR | RD | CFG |
-------------------------
| Low | 02 | 00 | 06 |
| High | 03 | 01 | 07 |
-------------------------
Example (42 Slave Address, 03 Write High Byte, D8 Set value (NA on read))
stubManager.Run<ProgressResponse>("ProgressRequest" ,0x0EAD, 0x4203D8);
*/
public void OnExecute(StubManager stubManager)
{
//Head LS
var response7 = stubManager.Run<ProgressResponse>("ProgressRequest" ,0x0EAD, 0x460100);
stubManager.WriteLineHex(response7.Progress,2);
}
|