MIDAS
|
Go to the source code of this file.
Functions | |
INT | frontend_init () |
Frontend initialization. | |
INT | frontend_exit () |
Frontend exit. | |
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 | frontend_loop () |
Frontend loop. | |
INT | read_trigger_event (char *pevent, INT off) |
INT | read_scaler_event (char *pevent, INT off) |
Scaler event readout. | |
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) | |
Variables | |
char * | frontend_name = "feSerial" |
The frontend name (client name) as seen by other MIDAS clients. | |
char * | frontend_file_name = __FILE__ |
The frontend file name, don't change it. | |
BOOL | frontend_call_loop = FALSE |
frontend_loop is called periodically if this variable is TRUE | |
INT | display_period = 3000 |
a frontend status page is displayed with this frequency in ms | |
INT | max_event_size = 10000 |
maximum event size produced by this frontend | |
INT | max_event_size_frag = 5 * 1024 * 1024 |
maximum event size for fragmented events (EQ_FRAGMENTED) | |
INT | event_buffer_size = 10 * 10000 |
buffer size to hold events | |
void ** | info |
char | strin [256] |
HNDLE | hDB |
main ODB handle | |
HNDLE | hSet |
EQUIPMENT | equipment [] |
Main structure for midas equipment. | |
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 |
Definition at line 157 of file feserial.c.
End of Run.
Called every stop run transition. Set equipment status in ODB, stop acquisition on the modules.
[in] | run_number | Number of the run being ended |
[out] | error | Can be used to write a message string to midas.log |
Definition at line 166 of file feserial.c.
Frontend exit.
Runs at frontend shutdown. Disconnect hardware and set equipment status in ODB
Definition at line 149 of file feserial.c.
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 125 of file feserial.c.
Frontend loop.
If frontend_call_loop is true, this routine gets called when the frontend is idle or once between every event.
Definition at line 187 of file feserial.c.
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 224 of file feserial.c.
Pause Run.
Called every pause run transition.
[in] | run_number | Number of the run being ended |
[out] | error | Can be used to write a message string to midas.log |
Definition at line 173 of file feserial.c.
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 204 of file feserial.c.
Scaler event readout.
Placeholder.
Scaler event readout routine. Not used in this example.
[in] | pevent | Pointer to event buffer |
[in] | off | Caller info (unused here), see mfe.c |
Definition at line 295 of file ebfe.cxx.
Definition at line 241 of file feserial.c.
Resume Run.
Called every resume run transition.
[in] | run_number | Number of the run being ended |
[out] | error | Can be used to write a message string to midas.log |
Definition at line 180 of file feserial.c.
INT display_period = 3000 |
a frontend status page is displayed with this frequency in ms
Definition at line 37 of file feserial.c.
EQUIPMENT equipment[] |
Main structure for midas equipment.
Definition at line 68 of file feserial.c.
INT event_buffer_size = 10 * 10000 |
buffer size to hold events
Definition at line 46 of file feserial.c.
frontend_loop is called periodically if this variable is TRUE
Definition at line 34 of file feserial.c.
The frontend file name, don't change it.
Definition at line 31 of file feserial.c.
char* frontend_name = "feSerial" |
The frontend name (client name) as seen by other MIDAS clients.
Definition at line 29 of file feserial.c.
HNDLE hDB |
main ODB handle
Definition at line 49 of file feserial.c.
HNDLE hSet |
Definition at line 49 of file feserial.c.
void** info |
Definition at line 47 of file feserial.c.
INT max_event_size = 10000 |
maximum event size produced by this frontend
Definition at line 40 of file feserial.c.
INT max_event_size_frag = 5 * 1024 * 1024 |
maximum event size for fragmented events (EQ_FRAGMENTED)
Definition at line 43 of file feserial.c.
char strin[256] |
Definition at line 48 of file feserial.c.