MIDAS
Loading...
Searching...
No Matches
mfe_link_test.cxx File Reference
#include <stdio.h>
#include "midas.h"
#include "mfe.h"
Include dependency graph for mfe_link_test.cxx:

Go to the source code of this file.

Functions

int frontend_init ()
 Frontend initialization.
 
int frontend_exit ()
 Frontend exit.
 
int begin_of_run (int runno, char *errstr)
 Begin of Run.
 
int end_of_run (int runno, char *errstr)
 End of Run.
 
int pause_run (int runno, char *errstr)
 Pause Run.
 
int resume_run (int runno, char *errstr)
 Resume Run.
 
int interrupt_configure (INT cmd, INT source, POINTER_T adr)
 
int frontend_loop ()
 Frontend loop.
 
int poll_event (INT source, INT count, BOOL test)
 

Variables

const charfrontend_name = "frontend_name"
 
const charfrontend_file_name = "frontend_file_name"
 
BOOL frontend_call_loop = 1
 
int event_buffer_size = 1000
 
int max_event_size = 1000
 
int max_event_size_frag = 1000
 
int display_period = 1000
 
BOOL equipment_common_overwrite = FALSE
 
EQUIPMENT equipment [1]
 

Function Documentation

◆ begin_of_run()

int begin_of_run ( int  runno,
char errstr 
)

Begin of Run.

Called every run start transition. Set equipment status in ODB, start acquisition on the modules.

Parameters
[in]run_numberNumber of the run being started
[out]errorCan be used to write a message string to midas.log

Definition at line 27 of file mfe_link_test.cxx.

27{ return 0; };

◆ end_of_run()

int end_of_run ( int  runno,
char errstr 
)

End of Run.

Called every stop run transition. Set equipment status in ODB, stop acquisition on the modules.

Parameters
[in]run_numberNumber of the run being ended
[out]errorCan be used to write a message string to midas.log

Definition at line 28 of file mfe_link_test.cxx.

28{ return 0; };

◆ frontend_exit()

int frontend_exit ( void  )

Frontend exit.

Runs at frontend shutdown. Disconnect hardware and set equipment status in ODB

Returns
Midas status code

Definition at line 26 of file mfe_link_test.cxx.

26{ return 0; };

◆ frontend_init()

int frontend_init ( void  )

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.

Returns
Midas status code

Definition at line 25 of file mfe_link_test.cxx.

25{ return 0; };

◆ frontend_loop()

int frontend_loop ( void  )

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 32 of file mfe_link_test.cxx.

32{ return 0; };

◆ interrupt_configure()

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

Definition at line 31 of file mfe_link_test.cxx.

31{ return 0; };

◆ pause_run()

int pause_run ( int  runno,
char errstr 
)

Pause Run.

Called every pause run transition.

Parameters
[in]run_numberNumber of the run being ended
[out]errorCan be used to write a message string to midas.log
Returns
Midas status code

Definition at line 29 of file mfe_link_test.cxx.

29{ return 0; };

◆ poll_event()

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

Definition at line 33 of file mfe_link_test.cxx.

33{ return 0; };

◆ resume_run()

int resume_run ( int  runno,
char errstr 
)

Resume Run.

Called every resume run transition.

Parameters
[in]run_numberNumber of the run being ended
[out]errorCan be used to write a message string to midas.log
Returns
Midas status code

Definition at line 30 of file mfe_link_test.cxx.

30{ return 0; };

Variable Documentation

◆ display_period

int display_period = 1000

Definition at line 22 of file mfe_link_test.cxx.

◆ equipment

EQUIPMENT equipment[1]

Definition at line 24 of file mfe_link_test.cxx.

◆ equipment_common_overwrite

BOOL equipment_common_overwrite = FALSE

Definition at line 23 of file mfe_link_test.cxx.

◆ event_buffer_size

int event_buffer_size = 1000

Definition at line 19 of file mfe_link_test.cxx.

◆ frontend_call_loop

BOOL frontend_call_loop = 1

Definition at line 18 of file mfe_link_test.cxx.

◆ frontend_file_name

const char* frontend_file_name = "frontend_file_name"

Definition at line 17 of file mfe_link_test.cxx.

◆ frontend_name

const char* frontend_name = "frontend_name"

Definition at line 16 of file mfe_link_test.cxx.

◆ max_event_size

int max_event_size = 1000

Definition at line 20 of file mfe_link_test.cxx.

◆ max_event_size_frag

int max_event_size_frag = 1000

Definition at line 21 of file mfe_link_test.cxx.