Low-Energy Muon (LEM) Experiment  0.5.2
lemplug_scfe.cxx File Reference
#include <cstdio>
#include "midas.h"
#include "mfe.h"
#include "msystem.h"
#include "lem_generic.h"
#include "lemplug.h"
#include "bus/null.h"
Include dependency graph for lemplug_scfe.cxx:

Go to the source code of this file.

Functions

INT poll_event (INT source, INT count, BOOL test)
 
INT interrupt_configure (INT cmd, INT source, POINTER_T adr)
 
INT frontend_init ()
 
INT frontend_exit ()
 
INT frontend_loop ()
 
INT begin_of_run (INT run_number, char *error)
 
INT end_of_run (INT run_number, char *error)
 
INT pause_run (INT run_number, char *error)
 
INT resume_run (INT run_number, char *error)
 

Variables

const char * frontend_name = "lemPlug"
 
const char * frontend_file_name = __FILE__
 
BOOL frontend_call_loop = FALSE
 
INT display_period = 1000
 
INT max_event_size = 10000
 
INT max_event_size_frag = 5*1024*1024
 
INT event_buffer_size = 10*10000
 
DEVICE_DRIVER lemplug_driver []
 
BOOL equipment_common_overwrite = FALSE
 
EQUIPMENT equipment []
 

Function Documentation

INT begin_of_run ( INT  run_number,
char *  error 
)

Definition at line 120 of file lemplug_scfe.cxx.

INT end_of_run ( INT  run_number,
char *  error 
)

Definition at line 127 of file lemplug_scfe.cxx.

INT frontend_exit ( )

Definition at line 106 of file lemplug_scfe.cxx.

INT frontend_init ( )

Definition at line 93 of file lemplug_scfe.cxx.

INT frontend_loop ( )

Definition at line 113 of file lemplug_scfe.cxx.

INT interrupt_configure ( INT  cmd,
INT  source,
POINTER_T  adr 
)

Definition at line 89 of file lemplug_scfe.cxx.

INT pause_run ( INT  run_number,
char *  error 
)

Definition at line 134 of file lemplug_scfe.cxx.

INT poll_event ( INT  source,
INT  count,
BOOL  test 
)

Definition at line 88 of file lemplug_scfe.cxx.

INT resume_run ( INT  run_number,
char *  error 
)

Definition at line 141 of file lemplug_scfe.cxx.

Variable Documentation

INT display_period = 1000

Definition at line 30 of file lemplug_scfe.cxx.

EQUIPMENT equipment[]
Initial value:
= {
{ "lemplug",
{61, 0,
"SYSTEM",
EQ_SLOW,
0,
"FIXED",
TRUE,
RO_RUNNING |
RO_TRANSITIONS,
5000,
0,
0,
1,
"", "", "",},
cd_gen_read,
cd_gen,
NULL,
},
{ "" }
}
DEVICE_DRIVER lemplug_driver[]

Definition at line 61 of file lemplug_scfe.cxx.

BOOL equipment_common_overwrite = FALSE

equipment_common_overwrite:

  • If that flag is TRUE, then the contents of the "equipment" structure is copied to the ODB on each start of the front-end.
  • If the flag is FALSE, then the ODB values are kept on the start of the front-end

Definition at line 59 of file lemplug_scfe.cxx.

INT event_buffer_size = 10*10000

Definition at line 39 of file lemplug_scfe.cxx.

BOOL frontend_call_loop = FALSE

Definition at line 27 of file lemplug_scfe.cxx.

const char* frontend_file_name = __FILE__

Definition at line 24 of file lemplug_scfe.cxx.

const char* frontend_name = "lemPlug"

Definition at line 22 of file lemplug_scfe.cxx.

DEVICE_DRIVER lemplug_driver[]
Initial value:
= {
{ "lemplug", lemplug, 8, null, DF_PRIO_DEVICE},
{ "lemplug2", lemplug, 8, null, DF_PRIO_DEVICE},
{ "" }
}
INT lemplug(INT cmd,...)

Definition at line 45 of file lemplug_scfe.cxx.

INT max_event_size = 10000

Definition at line 33 of file lemplug_scfe.cxx.

INT max_event_size_frag = 5*1024*1024

Definition at line 36 of file lemplug_scfe.cxx.