Programming interface¶
The native programming interface between drasi and a readout is realised through a set of callback functions.
Caution
This section is under construction.
Readout callback setup¶
-
void
lwroc_readout_pre_setup_functions
()¶ Function defined by readout code. Should initialize
_lwroc_readout_functions
.
-
lwroc_readout_functions
¶ -
lwroc_init_func
init
¶
-
lwroc_init_func
Readout callback functions¶
-
void
lwroc_init_func
()¶ Callback function called on startup.
-
void
lwroc_uninit_func
(int start_no_stop)¶ Callback function called on shutdown.
Parameters: - start_no_stop – Heh?
-
void
lwroc_start_stop_loop_func
(int start)¶ Callback function called on start or stop.
Parameters: - start – Call is for start.
-
void
lwroc_idle_read_func
()¶ Callback function called when no trigger has been found (a few times).
-
void
lwroc_read_event_func
(uint64_t cycle, uint16_t trig)¶ Callback function called for each trigger.
Parameters: - cycle – Event counter.
- trig – Trigger number.
-
void
lwroc_untriggered_loop_func
(int *start_no_stop)¶ Callback function driving the readout.
-
void
lwroc_cmdline_usage
()¶ Callback function to print usage (help) info about command line options accepted by the readout
lwroc_parse_cmdline_arg
.
-
void
lwroc_parse_cmdline_arg
(const char *arg)¶ Callback function to parse a command line argument.
Parameters: - arg – Command line argument.
Returns: 1 if the argument was recognised and parsed.