#include <cstdio>
#include <cstring>
#include <history.h>
#include "midas.h"
#include "mfe.h"
#include "odbxx.h"
Go to the source code of this file.
|
void | set_max_event_size (int size) |
|
void | set_event_buffer_size (int size) |
|
void | install_poll_event (INT(*f)(INT, INT, BOOL)) |
|
INT | poll_event (__attribute__((unused)) INT source, __attribute__((unused)) INT count, __attribute__((unused)) BOOL test) |
|
INT | interrupt_configure (__attribute__((unused)) INT cmd, __attribute__((unused)) INT source, __attribute__((unused)) PTYPE adr) |
|
INT | set_cache_size (std::string buffer, int size) |
|
void | install_frontend_exit (INT(*f)()) |
|
INT | frontend_exit () |
| Frontend exit.
|
|
void | install_begin_of_run (INT(*f)()) |
|
INT | begin_of_run (__attribute__((unused)) INT rn, __attribute__((unused)) char *error) |
|
void | install_end_of_run (INT(*f)()) |
|
INT | end_of_run (__attribute__((unused)) INT rn, __attribute__((unused)) char *error) |
|
void | install_pause_run (INT(*f)()) |
|
INT | pause_run (__attribute__((unused)) INT rn, __attribute__((unused)) char *error) |
|
void | install_resume_run (INT(*f)()) |
|
INT | resume_run (__attribute__((unused)) INT rn, __attribute__((unused)) char *error) |
|
void | install_frontend_loop (INT(*f)()) |
|
INT | frontend_loop () |
| Frontend loop.
|
|
◆ begin_of_run()
◆ end_of_run()
◆ frontend_exit()
Frontend exit.
Runs at frontend shutdown. Disconnect hardware and set equipment status in ODB
- Returns
- Midas status code
Definition at line 100 of file mfed.cxx.
◆ frontend_loop()
Frontend loop.
If frontend_call_loop is true, this routine gets called when the frontend is idle or once between every event.
- Returns
- Midas status code
Definition at line 182 of file mfed.cxx.
183{
186 else
189}
INT ss_sleep(INT millisec)
◆ install_begin_of_run()
void install_begin_of_run |
( |
INT(*)() |
f | ) |
|
◆ install_end_of_run()
void install_end_of_run |
( |
INT(*)() |
f | ) |
|
◆ install_frontend_exit()
void install_frontend_exit |
( |
INT(*)() |
f | ) |
|
◆ install_frontend_loop()
void install_frontend_loop |
( |
INT(*)() |
f | ) |
|
◆ install_pause_run()
void install_pause_run |
( |
INT(*)() |
f | ) |
|
◆ install_poll_event()
Definition at line 55 of file mfed.cxx.
56{
58}
INT(* p_poll_event)(INT, INT, BOOL)
◆ install_resume_run()
void install_resume_run |
( |
INT(*)() |
f | ) |
|
◆ interrupt_configure()
◆ pause_run()
◆ poll_event()
◆ resume_run()
◆ set_cache_size()
INT set_cache_size |
( |
std::string |
buffer, |
|
|
int |
size |
|
) |
| |
Definition at line 74 of file mfed.cxx.
75{
78 return 0;
79 }
80
85 return 1;
86 }
87
88 return 0;
89}
INT bm_set_cache_size(INT buffer_handle, size_t read_size, size_t write_size)
INT cm_msg(INT message_type, const char *filename, INT line, const char *routine, const char *format,...)
#define MIN_WRITE_CACHE_SIZE
#define equipment(name, id, type, source, readon, period, readout, cd, driver)
◆ set_event_buffer_size()
void set_event_buffer_size |
( |
int |
size | ) |
|
◆ set_max_event_size()
void set_max_event_size |
( |
int |
size | ) |
|
◆ display_period
◆ event_buffer_size
INT event_buffer_size = 2 * 1024 * 1024 |
◆ frontend_call_loop
◆ max_event_size
INT max_event_size = 1024 * 1024 |
◆ max_event_size_frag
INT max_event_size_frag = 5 * 1024 * 1024 |
◆ p_begin_of_run
INT(* p_begin_of_run) () |
( |
| ) |
= NULL |
◆ p_end_of_run
◆ p_frontend_exit
INT(* p_frontend_exit) () |
( |
| ) |
= NULL |
◆ p_frontend_loop
INT(* p_frontend_loop) () |
( |
| ) |
= NULL |
◆ p_pause_run
◆ p_poll_event
◆ p_resume_run