Low-Energy Muon (LEM) Experiment  0.5.1
scs900_scfe.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "midas.h"
#include "class/multi.h"
#include "scs900.h"
#include "scs400.h"
#include "bus/null.h"
Include dependency graph for scs900_scfe.c:

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[], PTYPE 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

char * frontend_name = "SCS900 SC"
 The frontend name (client name) as seen by other MIDAS clients. More...
 
char * frontend_file_name = __FILE__
 The frontend file name, don't change it. More...
 
BOOL frontend_call_loop = TRUE
 frontend_loop is called periodically if this variable is TRUE More...
 
INT display_period = 1000
 a frontend status page is displayed with this frequency in ms More...
 
INT max_event_size = 10000
 maximum event size produced by this frontend More...
 
INT max_event_size_frag = 5*1024*1024
 maximum event size for fragmented events (EQ_FRAGMENTED) More...
 
INT event_buffer_size = 10*10000
 buffer size to hold events More...
 
DEVICE_DRIVER scs900_driver []
 device driver list for the SCS900 ADC/DAC modules More...
 
DEVICE_DRIVER scs400_driver []
 device driver list for the SCS400 thermo coupler module More...
 
EQUIPMENT equipment []
 equipment structure for the mfe.c More...
 

Function Documentation

INT begin_of_run ( INT  run_number,
char *  error 
)

Called by the mfe at the begin of the run. Here it is only a dummy.

Definition at line 182 of file scs900_scfe.c.

INT end_of_run ( INT  run_number,
char *  error 
)

Called by the mfe at the end of the run. Here it is only a dummy.

Definition at line 192 of file scs900_scfe.c.

INT frontend_exit ( )

Called by the mfe at exiting stage. Here it is only a dummy.

Definition at line 162 of file scs900_scfe.c.

INT frontend_init ( )

Called by the master frontend (mfe) at initializing stage. Here it is only a dummy.

Definition at line 146 of file scs900_scfe.c.

INT frontend_loop ( )

Called by the mfe in the main loop. Here it is only a dummy.

Definition at line 172 of file scs900_scfe.c.

INT interrupt_configure ( INT  cmd,
INT  source[],
PTYPE  adr 
)

Definition at line 139 of file scs900_scfe.c.

INT pause_run ( INT  run_number,
char *  error 
)

Called by the mfe when the run is paused. Here it is only a dummy.

Definition at line 202 of file scs900_scfe.c.

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

Definition at line 138 of file scs900_scfe.c.

INT resume_run ( INT  run_number,
char *  error 
)

Called by the mfe when the run is resumed. Here it is only a dummy.

Definition at line 212 of file scs900_scfe.c.

Variable Documentation

INT display_period = 1000

a frontend status page is displayed with this frequency in ms

Definition at line 34 of file scs900_scfe.c.

EQUIPMENT equipment[]

equipment structure for the mfe.c

Definition at line 89 of file scs900_scfe.c.

INT event_buffer_size = 10*10000

buffer size to hold events

Definition at line 43 of file scs900_scfe.c.

BOOL frontend_call_loop = TRUE

frontend_loop is called periodically if this variable is TRUE

Definition at line 31 of file scs900_scfe.c.

char* frontend_file_name = __FILE__

The frontend file name, don't change it.

Definition at line 28 of file scs900_scfe.c.

char* frontend_name = "SCS900 SC"

The frontend name (client name) as seen by other MIDAS clients.

Definition at line 26 of file scs900_scfe.c.

INT max_event_size = 10000

maximum event size produced by this frontend

Definition at line 37 of file scs900_scfe.c.

INT max_event_size_frag = 5*1024*1024

maximum event size for fragmented events (EQ_FRAGMENTED)

Definition at line 40 of file scs900_scfe.c.

DEVICE_DRIVER scs400_driver[]
Initial value:
= {
{ "SCS400IN", scs400_in, 24, null, DF_INPUT },
{ "SCS400OUT", scs400_out, 33, null, DF_OUTPUT },
{ "" }
}
INT scs400_out(INT cmd,...)
Definition: scs400.c:655
INT scs400_in(INT cmd,...)
Definition: scs400.c:604

device driver list for the SCS400 thermo coupler module

Definition at line 81 of file scs900_scfe.c.

DEVICE_DRIVER scs900_driver[]
Initial value:
= {
{ "SCS900_1_ADC", scs900_in, 8, null, DF_INPUT },
{ "SCS900_1_DAC", scs900_out, 8, null, DF_OUTPUT },
{ "SCS900_2_ADC", scs900_in, 8, null, DF_INPUT },
{ "SCS900_2_DAC", scs900_out, 8, null, DF_OUTPUT },
{ "SCS900_3_ADC", scs900_in, 8, null, DF_INPUT },
{ "SCS900_3_DAC", scs900_out, 8, null, DF_OUTPUT },
{ "SCS900_4_ADC", scs900_in, 8, null, DF_INPUT },
{ "SCS900_4_DAC", scs900_out, 8, null, DF_OUTPUT },
{ "" }
}
INT scs900_in(INT cmd,...)
Definition: scs900.c:475
INT scs900_out(INT cmd,...)
Definition: scs900.c:527

device driver list for the SCS900 ADC/DAC modules

Definition at line 61 of file scs900_scfe.c.