diff options
| author | Avi Levkovich <avi@twine-s.com> | 2019-02-20 12:32:15 +0200 |
|---|---|---|
| committer | Avi Levkovich <avi@twine-s.com> | 2019-02-20 12:32:15 +0200 |
| commit | 1767535a1e6ecbdb05ffe62dda85c9fb78e6718f (patch) | |
| tree | c35b2595b65c2bb0a62993d80a6af93861be14fe /Software/Stubs Collection/stubs/read_f2_ctrl.cs | |
| parent | a576283d2a9288938796491582dd9f575f3ff571 (diff) | |
| download | Tango-1767535a1e6ecbdb05ffe62dda85c9fb78e6718f.tar.gz Tango-1767535a1e6ecbdb05ffe62dda85c9fb78e6718f.zip | |
upload stubs
Diffstat (limited to 'Software/Stubs Collection/stubs/read_f2_ctrl.cs')
| -rw-r--r-- | Software/Stubs Collection/stubs/read_f2_ctrl.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Software/Stubs Collection/stubs/read_f2_ctrl.cs b/Software/Stubs Collection/stubs/read_f2_ctrl.cs new file mode 100644 index 000000000..adeb17017 --- /dev/null +++ b/Software/Stubs Collection/stubs/read_f2_ctrl.cs @@ -0,0 +1,26 @@ +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; + +public void OnExecute(StubManager stubManager) +{ +// Request ---- +// UInt32 : Address + +// Response ---- +// UInt32 : Address +// UInt32 : Value +// String : Status +// UInt32 : StatusWord +var response = stubManager.Run<StubFpgaReadRegResponse>("StubFpgaReadRegRequest" ,0x60000400 | 0x0E2); +stubManager.WriteLineHex(response.Value,2); + +}
\ No newline at end of file |
