mfe.c File Reference

Go to the source code of this file.


Define Documentation

#define DEFAULT_FE_TIMEOUT   60000
 

Definition at line 54 of file mfe.c.

Referenced by main().

#define EQUIPMENT_COMMON_STR   "\Event ID = WORD : 0\n\Trigger mask = WORD : 0\n\Buffer = STRING : [32] SYSTEM\n\Type = INT : 0\n\Source = INT : 0\n\Format = STRING : [8] FIXED\n\Enabled = BOOL : 0\n\Read on = INT : 0\n\Period = INT : 0\n\Event limit = DOUBLE : 0\n\Num subevents = DWORD : 0\n\Log history = INT : 0\n\Frontend host = STRING : [32] \n\Frontend name = STRING : [32] \n\Frontend file name = STRING : [256] \n\"
 

Definition at line 107 of file mfe.c.

Referenced by register_equipment().

#define EQUIPMENT_STATISTICS_STR   "\Events sent = DOUBLE : 0\n\Events per sec. = DOUBLE : 0\n\kBytes per sec. = DOUBLE : 0\n\"
 

Definition at line 125 of file mfe.c.

Referenced by register_equipment().

#define ODB_UPDATE_TIME   1000
 

Definition at line 52 of file mfe.c.

Referenced by scheduler().

#define SERVER_CACHE_SIZE   100000
 

Definition at line 50 of file mfe.c.

Referenced by register_equipment().


Function Documentation

INT begin_of_run INT  run_number,
char *  error
 

Definition at line 190 of file frontend.c.

void display BOOL  bInit  ) 
 

Definition at line 1024 of file mfe.c.

Referenced by main(), and scheduler().

INT end_of_run INT  run_number,
char *  error
 

Definition at line 199 of file frontend.c.

INT frontend_exit void   ) 
 

Definition at line 183 of file frontend.c.

Referenced by main().

INT frontend_init void   ) 
 

Definition at line 155 of file frontend.c.

Referenced by main().

INT frontend_loop void   ) 
 

Definition at line 220 of file frontend.c.

Referenced by scheduler().

INT get_frontend_index  ) 
 

Definition at line 1590 of file mfe.c.

INT interrupt_configure INT  cmd,
INT  source,
POINTER_T  adr
 

Definition at line 258 of file frontend.c.

Referenced by interrupt_enable(), main(), and register_equipment().

void interrupt_enable BOOL  flag  ) 
 

Definition at line 941 of file mfe.c.

Referenced by main(), scheduler(), tr_pause(), tr_resume(), tr_start(), and tr_stop().

void interrupt_routine void   ) 
 

Definition at line 955 of file mfe.c.

Referenced by register_equipment().

BOOL logger_root  ) 
 

Definition at line 1095 of file mfe.c.

Referenced by scheduler().

int main int  argc,
char *  argv[]
 

Definition at line 1600 of file mfe.c.

INT manual_trigger INT  index,
void *  prpc_param[]
 

Definition at line 267 of file mfe.c.

Referenced by register_equipment().

int message_print const char *  msg  ) 
 

Definition at line 1006 of file mfe.c.

Referenced by main().

INT pause_run INT  run_number,
char *  error
 

Definition at line 206 of file frontend.c.

INT poll_event INT  source,
INT  count,
BOOL  test
 

Definition at line 237 of file frontend.c.

Referenced by register_equipment(), and scheduler().

INT register_equipment void   ) 
 

Definition at line 275 of file mfe.c.

Referenced by main().

INT resume_run INT  run_number,
char *  error
 

Definition at line 213 of file frontend.c.

INT scheduler void   ) 
 

Definition at line 1122 of file mfe.c.

Referenced by main().

void send_all_periodic_events INT  transition  ) 
 

Definition at line 913 of file mfe.c.

Referenced by tr_pause(), tr_resume(), tr_start(), and tr_stop().

int send_event INT  index  ) 
 

Definition at line 720 of file mfe.c.

Referenced by scheduler(), and send_all_periodic_events().

INT tr_pause INT  rn,
char *  error
 

Definition at line 218 of file mfe.c.

Referenced by main().

INT tr_resume INT  rn,
char *  error
 

Definition at line 243 of file mfe.c.

Referenced by main().

INT tr_start INT  rn,
char *  error
 

Definition at line 135 of file mfe.c.

Referenced by main().

INT tr_stop INT  rn,
char *  error
 

Definition at line 169 of file mfe.c.

Referenced by main().

void update_odb EVENT_HEADER pevent,
HNDLE  hKey,
INT  format
 

Definition at line 572 of file mfe.c.

Referenced by scheduler(), and send_event().


Variable Documentation

DWORD actual_millitime
 

Definition at line 59 of file mfe.c.

Referenced by interrupt_routine(), scan_fragment(), and scheduler().

DWORD actual_time
 

Definition at line 58 of file mfe.c.

Referenced by scheduler().

DWORD auto_restart = 0
 

Definition at line 69 of file mfe.c.

Referenced by scheduler().

BOOL debug
 

Definition at line 68 of file mfe.c.

Referenced by main().

INT display_period
 

Definition at line 32 of file ebuser.c.

Referenced by scheduler().

EQUIPMENT equipment[]
 

Definition at line 59 of file ebuser.c.

Referenced by close_buffers(), display(), load_fragment(), main(), register_equipment(), scan_fragment(), scheduler(), send_all_periodic_events(), send_event(), source_scan(), tr_start(), and tr_stop().

INT event_buffer_size
 

Definition at line 41 of file ebuser.c.

Referenced by main().

char exp_name[NAME_LENGTH]
 

Definition at line 62 of file mfe.c.

Referenced by cm_connect_experiment(), cm_connect_experiment1(), cm_get_environment(), cm_list_experiments(), cm_select_experiment(), and main().

INT fe_stop = 0
 

Definition at line 67 of file mfe.c.

BOOL frontend_call_loop
 

Definition at line 36 of file frontend.c.

char* frontend_file_name
 

Definition at line 26 of file ebuser.c.

Referenced by register_equipment().

INT frontend_index = -1
 

Definition at line 71 of file mfe.c.

Referenced by main(), and register_equipment().

char* frontend_name
 

Definition at line 23 of file ebuser.c.

Referenced by main().

char full_frontend_name[256]
 

Definition at line 63 of file mfe.c.

Referenced by display(), load_fragment(), main(), register_equipment(), scan_fragment(), source_scan(), tr_start(), and tr_stop().

HNDLE hDB
 

Definition at line 73 of file mfe.c.

Referenced by al_trigger_alarm(), ana_end_of_run(), analyzer_init(), cm_check_client(), cm_connect_client(), cm_connect_experiment1(), cm_delete_client_info(), cm_deregister_transition(), cm_disconnect_experiment(), cm_exist(), cm_get_client_info(), cm_get_experiment_database(), cm_get_watchdog_info(), cm_msg_log(), cm_msg_log1(), cm_msg_retrieve(), cm_register_deferred_transition(), cm_register_transition(), cm_set_client_info(), cm_set_transition_sequence(), cm_set_watchdog_params(), cm_shutdown(), cm_transition(), db_check_record(), db_close_database(), db_close_record(), db_copy(), db_copy_xml(), db_create_key(), db_create_link(), db_create_record(), db_delete_key(), db_delete_key1(), db_enum_key(), db_find_key(), db_get_data(), db_get_data_index(), db_get_key(), db_get_key_info(), db_get_key_time(), db_get_record(), db_get_record_size(), db_get_value(), db_load(), db_lock_database(), db_open_database(), db_open_record(), db_paste(), db_paste_node(), db_paste_xml(), db_protect_database(), db_save(), db_save_struct(), db_save_xml(), db_save_xml_key(), db_send_changed_records(), db_set_data(), db_set_data_index(), db_set_record(), db_set_value(), db_unlock_database(), db_update_record(), el_submit(), load_fragment(), logger_root(), main(), register_equipment(), scheduler(), tr_start(), and update_odb().

char host_name[HOST_NAME_LENGTH]
 

Definition at line 61 of file mfe.c.

Referenced by cm_connect_client(), cm_connect_experiment(), cm_connect_experiment1(), cm_get_environment(), cm_list_experiments(), cm_select_experiment(), cm_set_client_info(), cm_transition(), display(), and main().

BOOL interrupt_enabled
 

Definition at line 939 of file mfe.c.

Referenced by interrupt_enable().

EQUIPMENT* interrupt_eq = NULL
 

Definition at line 94 of file mfe.c.

Referenced by interrupt_routine(), main(), register_equipment(), and scheduler().

EVENT_HEADER* interrupt_odb_buffer
 

Definition at line 95 of file mfe.c.

Referenced by interrupt_routine(), main(), register_equipment(), and scheduler().

BOOL interrupt_odb_buffer_valid
 

Definition at line 96 of file mfe.c.

Referenced by interrupt_routine(), and scheduler().

INT manual_trigger_event_id = 0
 

Definition at line 70 of file mfe.c.

Referenced by manual_trigger(), and scheduler().

INT max_bytes_per_sec
 

Definition at line 65 of file mfe.c.

Referenced by scheduler().

INT max_event_size
 

Definition at line 35 of file ebuser.c.

Referenced by load_fragment(), main(), scheduler(), send_event(), and source_booking().

INT max_event_size_frag
 

Definition at line 38 of file ebuser.c.

Referenced by main(), and send_event().

INT optimize = 0
 

Definition at line 66 of file mfe.c.

INT run_number
 

Definition at line 57 of file mfe.c.

Referenced by close_buffers(), cm_transition(), display(), el_submit(), register_equipment(), scheduler(), tr_pause(), tr_resume(), tr_start(), and tr_stop().

INT run_state
 

Definition at line 56 of file mfe.c.

Referenced by close_buffers(), display(), handFlush(), main(), register_equipment(), scheduler(), tr_pause(), tr_resume(), tr_start(), and tr_stop().

BOOL slowcont_eq = FALSE
 

Definition at line 97 of file mfe.c.

Referenced by register_equipment().


Midas DOC Version 1.9.5 ---- PSI Stefan Ritt ----
Contributions: Pierre-Andre Amaudruz - Sergio Ballestrero - Suzannah Daviel - Doxygen - Peter Green - Qing Gu - Greg Hackman - Gertjan Hofman - Paul Knowles - Rudi Meier - Glenn Moloney - Dave Morris - John M O'Donnell - Konstantin Olchanski - Renee Poutissou - Tamsen Schurman - Andreas Suter - Jan M.Wouters - Piotr Adam Zolnierczuk