eqpmnt Struct Reference
[Equipment related]


Data Fields

char name [NAME_LENGTH]
EQUIPMENT_INFO info
INT(* readout )(char *, INT)
INT(* cd )(INT cmd, PEQUIPMENT)
DEVICE_DRIVERdriver
void * event_descrip
void * cd_info
INT status
DWORD last_called
DWORD last_idle
DWORD poll_count
INT format
HNDLE buffer_handle
HNDLE hkey_variables
DWORD serial_number
DWORD subevent_number
DWORD odb_out
DWORD odb_in
DWORD bytes_sent
DWORD events_sent

Field Documentation

HNDLE eqpmnt::buffer_handle
 

MIDAS buffer handle

Definition at line 941 of file midas.h.

Referenced by interrupt_routine(), register_equipment(), scheduler(), send_event(), and tr_stop().

DWORD eqpmnt::bytes_sent
 

number of bytes sent

Definition at line 947 of file midas.h.

Referenced by interrupt_routine(), scan_fragment(), scheduler(), send_event(), source_scan(), and tr_stop().

INT(* eqpmnt::cd)(INT cmd, PEQUIPMENT)
 

Class driver routine

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

void* eqpmnt::cd_info
 

private data for class driver

Definition at line 935 of file midas.h.

DEVICE_DRIVER* eqpmnt::driver
 

Device driver list

Definition at line 933 of file midas.h.

Referenced by register_equipment().

void* eqpmnt::event_descrip
 

Init string for fixed events or bank list

Definition at line 934 of file midas.h.

Referenced by register_equipment().

DWORD eqpmnt::events_sent
 

number of events sent

Definition at line 948 of file midas.h.

Referenced by display(), interrupt_routine(), scan_fragment(), scheduler(), send_event(), source_scan(), and tr_stop().

INT eqpmnt::format
 

FORMAT_xxx

Definition at line 940 of file midas.h.

Referenced by load_fragment(), register_equipment(), and scheduler().

HNDLE eqpmnt::hkey_variables
 

Key to variables subtree in ODB

Definition at line 942 of file midas.h.

Referenced by register_equipment(), and scheduler().

EQUIPMENT_INFO eqpmnt::info
 

From above

Definition at line 930 of file midas.h.

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

DWORD eqpmnt::last_called
 

Last time event was read

Definition at line 937 of file midas.h.

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

DWORD eqpmnt::last_idle
 

Last time idle func was called

Definition at line 938 of file midas.h.

Referenced by scheduler().

char eqpmnt::name[NAME_LENGTH]
 

Equipment name

Definition at line 929 of file midas.h.

Referenced by display(), main(), register_equipment(), scheduler(), send_all_periodic_events(), send_event(), tr_start(), and tr_stop().

DWORD eqpmnt::odb_in
 

# updated ODB -> FE

Definition at line 946 of file midas.h.

Referenced by tr_start().

DWORD eqpmnt::odb_out
 

# updates FE -> ODB

Definition at line 945 of file midas.h.

Referenced by interrupt_routine(), scheduler(), send_event(), and tr_start().

DWORD eqpmnt::poll_count
 

Needed to poll 'period'

Definition at line 939 of file midas.h.

Referenced by register_equipment(), and scheduler().

INT(* eqpmnt::readout)(char *, INT)
 

Pointer to user readout routine

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

DWORD eqpmnt::serial_number
 

event serial number

Definition at line 943 of file midas.h.

Referenced by eb_user(), interrupt_routine(), scheduler(), send_event(), source_scan(), and tr_start().

EQUIPMENT_STATS eqpmnt::stats
 

Definition at line 949 of file midas.h.

Referenced by close_buffers(), display(), register_equipment(), scan_fragment(), scheduler(), send_event(), tr_start(), and tr_stop().

INT eqpmnt::status
 

One of FE_xxx

Definition at line 936 of file midas.h.

Referenced by display(), main(), register_equipment(), scheduler(), and send_all_periodic_events().

DWORD eqpmnt::subevent_number
 

subevent number

Definition at line 944 of file midas.h.

Referenced by scheduler(), and tr_start().


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