BOOL frontend_call_loop
frontend_loop is called periodically if this variable is TRUE
void install_begin_of_run(INT(*f)())
const char * frontend_file_name
The frontend file name, don't change it.
void set_rate_period(int ms)
char exp_name[NAME_LENGTH]
INT max_event_size
maximum event size produced by this frontend
int get_rate_period(void)
void readout_enable(bool flag)
void set_max_event_size(int size)
INT frontend_exit(void)
Frontend exit.
INT get_frontend_index(void)
bool is_readout_thread_enabled(void)
INT event_buffer_size
buffer size to hold events
void register_cnaf_callback(int debug)
INT max_event_size_frag
maximum event size for fragmented events (EQ_FRAGMENTED)
void signal_readout_thread_active(int index, int flag)
void stop_readout_threads(void)
INT interrupt_configure(INT cmd, INT source, POINTER_T adr)
Interrupt configuration (not implemented)
EQUIPMENT * multithread_eq
INT set_odb_equipment_common(EQUIPMENT eq[], const char *name)
int is_readout_thread_active(void)
BOOL equipment_common_overwrite
void mfe_get_args(int *argc, char ***argv)
INT frontend_init(void)
Frontend initialization.
INT manual_trigger_event_id
void install_resume_run(INT(*f)())
void mfe_error(const char *error)
void install_pause_run(INT(*f)())
INT poll_event(INT source, INT count, BOOL test)
Polling routine for events.
char full_frontend_name[256]
INT manual_trigger(INT idx, void *prpc_param[])
EQUIPMENT equipment[]
Main structure for midas equipment.
void install_frontend_exit(INT(*f)())
const char * frontend_name
The frontend name (client name) as seen by other MIDAS clients.
volatile int stop_all_threads
INT display_period
a frontend status page is displayed with this frequency in ms
void mfe_set_error(void(*dispatcher)(const char *))
void mfe_error_check(void)
BOOL lockout_readout_thread
INT begin_of_run(INT run_number, char *error)
Begin of Run.
void install_end_of_run(INT(*f)())
INT frontend_loop(void)
Frontend loop.
INT create_event_rb(int i)
int set_equipment_status(const char *name, const char *eq_status, const char *status_class)
void install_poll_event(INT(*f)(INT, INT, BOOL))
void install_frontend_loop(INT(*f)())
INT end_of_run(INT run_number, char *error)
End of Run.
bool readout_enabled(void)
char host_name[HOST_NAME_LENGTH]
TH1X EXPRT * h1_book(const char *name, const char *title, int bins, double min, double max)