|
MIDAS
|
#include "midas.h"

Go to the source code of this file.
Functions | |
| INT | frontend_init (void) |
| Frontend initialization. | |
| INT | frontend_exit (void) |
| Frontend exit. | |
| INT | frontend_loop (void) |
| Frontend loop. | |
| INT | begin_of_run (INT run_number, char *error) |
| Begin of Run. | |
| INT | end_of_run (INT run_number, char *error) |
| End of Run. | |
| INT | pause_run (INT run_number, char *error) |
| Pause Run. | |
| INT | resume_run (INT run_number, char *error) |
| Resume Run. | |
| INT | poll_event (INT source, INT count, BOOL test) |
| Polling routine for events. | |
| INT | interrupt_configure (INT cmd, INT source, POINTER_T adr) |
| Interrupt configuration (not implemented) | |
| void | set_max_event_size (int size) |
| void | install_frontend_loop (INT(*f)()) |
| void | install_frontend_exit (INT(*f)()) |
| void | install_begin_of_run (INT(*f)()) |
| void | install_end_of_run (INT(*f)()) |
| void | install_pause_run (INT(*f)()) |
| void | install_resume_run (INT(*f)()) |
| void | install_poll_event (INT(*f)(INT, INT, BOOL)) |
| INT | set_write_cache_size (std::string buffer, int size) |
| void | mfe_error_check (void) |
| void | readout_enable (bool flag) |
| bool | readout_enabled (void) |
| void | display (BOOL bInit) |
| void | rotate_wheel (void) |
| BOOL | logger_root (void) |
| void | set_rate_period (int ms) |
| int | get_rate_period (void) |
| INT | manual_trigger (INT idx, void *prpc_param[]) |
| INT | get_frontend_index (void) |
| void | mfe_get_args (int *argc, char ***argv) |
| void | register_cnaf_callback (int debug) |
| void | mfe_error (const char *error) |
| void | mfe_set_error (void(*dispatcher)(const char *)) |
| int | set_equipment_status (const char *name, const char *eq_status, const char *status_class) |
| INT | create_event_rb (int i) |
| INT | get_event_rbh (int i) |
| void | stop_readout_threads (void) |
| bool | is_readout_thread_enabled (void) |
| int | is_readout_thread_active (void) |
| void | signal_readout_thread_active (int index, int flag) |
| INT | set_odb_equipment_common (EQUIPMENT eq[], const char *name) |
Begin of Run.
Called every run start transition. Set equipment status in ODB, start acquisition on the modules.
| [in] | run_number | Number of the run being started |
| [out] | error | Can be used to write a message string to midas.log |
| INT create_event_rb | ( | int | i | ) |
|
extern |
Definition at line 1365 of file mfe.cxx.

|
extern |
|
extern |
Frontend initialization.
Runs once at application startup. We initialize the hardware and optical interfaces and set the equipment status in ODB. We also lock the frontend to once physical cpu core.
Definition at line 143 of file midas_macro.h.

|
extern |
| INT get_event_rbh | ( | int | i | ) |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
Interrupt configuration (not implemented)
Routine for interrupt configuration if equipment is set in EQ_INTERRUPT mode. Not implemented right now, returns SUCCESS.
| [in] | cmd | Command for interrupt events (see midas.h) |
| [in] | source | Equipment index number |
| [in] | adr | Interrupt routine (see mfe.c) |
Definition at line 513 of file feccusb.cxx.


| int is_readout_thread_active | ( | void | ) |
| bool is_readout_thread_enabled | ( | void | ) |
|
extern |
Definition at line 1497 of file mfe.cxx.


| void mfe_error | ( | const char * | error | ) |
|
extern |
| void mfe_get_args | ( | int * | argc, |
| char *** | argv | ||
| ) |
| void mfe_set_error | ( | void(*)(const char *) | dispatcher | ) |
Definition at line 2381 of file mfe.cxx.


Polling routine for events.
| [in] | source | Event source (LAM/IRQ) |
| [in] | count | Loop count for event polling timeout |
| [in] | test | flag used to time the polling |
Definition at line 388 of file feudp.cxx.


|
extern |
Definition at line 1079 of file mfe.cxx.


|
extern |
| void register_cnaf_callback | ( | int | debug | ) |
Definition at line 122 of file cnaf_callback.cxx.
|
extern |
Definition at line 1482 of file mfe.cxx.


| int set_equipment_status | ( | const char * | name, |
| const char * | eq_status, | ||
| const char * | status_class | ||
| ) |
Definition at line 863 of file mfe.cxx.


|
extern |
|
extern |
|
extern |
Definition at line 74 of file mfed.cxx.


| void signal_readout_thread_active | ( | int | index, |
| int | flag | ||
| ) |
| void stop_readout_threads | ( | void | ) |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |