Orion
high-rate readout
commander.hpp
1 
5 #pragma once
6 
7 #include <span>
8 
9 #include "itk/types.hpp"
10 
11 
12 namespace itk {
13 
18 class Commander {
19 public:
20 
22  virtual ~Commander() = default;
23 
26  virtual void write(uint16_t cmd) = 0;
27 
30  virtual void write(std::span<uint16_t> cmds) = 0;
31 
33  virtual void send() = 0;
34 
36 
39  virtual netio_tag_t get_fid() = 0;
40 
43  virtual void set_fid(netio_tag_t fid) = 0;
44 
45 }; // Commander
46 
47 } // itk
Commander interface to send 16 bit commands over e-link.
Definition: commander.hpp:18
virtual void set_fid(netio_tag_t fid)=0
Set FELIX id (fid).
virtual ~Commander()=default
Default destructor.
virtual void send()=0
Sends Commander buffer over the e-link.
virtual netio_tag_t get_fid()=0
Properties.
virtual void write(std::span< uint16_t > cmds)=0
Write 16 bit commands to the Commander buffer.
virtual void write(uint16_t cmd)=0
Write 16 bit command to the Commander buffer.
Common types and constants definitions.