midas.h File Reference


Detailed Description

The main include file

Definition in file midas.h.

Go to the source code of this file.

Data Structures

struct  EVENT_HEADER
struct  EVENT_REQUEST
struct  BUFFER_CLIENT
struct  BUFFER_HEADER
struct  BUFFER
struct  KEY
struct  KEYLIST
struct  BUS_DRIVER
struct  DEVICE_DRIVER
struct  EQUIPMENT_INFO
struct  EQUIPMENT_STATS
struct  eqpmnt
struct  BANK_HEADER
struct  BANK
struct  BANK32
struct  TAG
struct  BANK_LIST
struct  ANA_MODULE
struct  AR_INFO
struct  AR_STATS
struct  ANALYZE_REQUEST
struct  ANA_TEST
struct  HIST_RECORD
struct  DEF_RECORD
struct  INDEX_RECORD
struct  HISTORY
struct  RUNINFO
struct  PROGRAM_INFO
struct  ALARM_CLASS
struct  ALARM

Defines

#define TAPE_BUFFER_SIZE   0x8000
#define NET_TCP_SIZE   0xFFFF
#define OPT_TCP_SIZE   8192
#define NET_UDP_SIZE   8192
#define EVENT_BUFFER_SIZE   0x100000
#define EVENT_BUFFER_NAME   "SYSTEM"
#define MAX_EVENT_SIZE   0x80000
#define DEFAULT_EVENT_BUFFER_SIZE   0x200000;
#define DEFAULT_ODB_SIZE   0x100000
#define NAME_LENGTH   32
#define HOST_NAME_LENGTH   256
#define MAX_CLIENTS   64
#define MAX_EVENT_REQUESTS   10
#define MAX_OPEN_RECORDS   256
#define MAX_ODB_PATH   256
#define MAX_EXPERIMENT   32
#define BANKLIST_MAX   64
#define STRING_BANKLIST_MAX   BANKLIST_MAX * 4
#define DEFAULT_RPC_TIMEOUT   10000
#define DEFAULT_WATCHDOG_TIMEOUT   10000
#define STATE_STOPPED   1
#define STATE_PAUSED   2
#define STATE_RUNNING   3
#define FORMAT_MIDAS   1
#define FORMAT_YBOS   2
#define FORMAT_ASCII   3
#define FORMAT_FIXED   4
#define FORMAT_DUMP   5
#define FORMAT_HBOOK   6
#define FORMAT_ROOT   7
#define GET_ALL   (1<<0)
#define GET_SOME   (1<<1)
#define GET_FARM   (1<<2)
#define TID_BYTE   1
#define TID_SBYTE   2
#define TID_CHAR   3
#define TID_WORD   4
#define TID_SHORT   5
#define TID_DWORD   6
#define TID_INT   7
#define TID_BOOL   8
#define TID_FLOAT   9
#define TID_DOUBLE   10
#define TID_BITFIELD   11
#define TID_STRING   12
#define TID_ARRAY   13
#define TID_STRUCT   14
#define TID_KEY   15
#define TID_LINK   16
#define TID_LAST   17
#define SYNC   0
#define MODE_READ   (1<<0)
#define RPC_OTIMEOUT   1
#define WF_WATCH_ME   (1<<0)
#define TR_START   (1<<0)
#define TR_STOP   (1<<1)
#define TR_PAUSE   (1<<2)
#define TR_RESUME   (1<<3)
#define EQ_PERIODIC   (1<<0)
#define EQ_POLLED   (1<<1)
#define EQ_INTERRUPT   (1<<2)
#define EQ_SLOW   (1<<3)
#define EQ_MANUAL_TRIG   (1<<4)
#define EQ_FRAGMENTED   (1<<5)
#define EQ_EB   (1<<6)
#define RO_RUNNING   (1<<0)
#define RO_STOPPED   (1<<1)
#define RO_PAUSED   (1<<2)
#define RO_BOR   (1<<3)
#define RO_EOR   (1<<4)
#define RO_PAUSE   (1<<5)
#define RO_RESUME   (1<<6)
#define RO_TRANSITIONS   (RO_BOR|RO_EOR|RO_PAUSE|RO_RESUME)
#define RO_ALWAYS   (0xFF)
#define RO_ODB   (1<<8)
#define CH_BS   8
#define LAM_SOURCE(c, s)   (c<<24 | ((s) & 0xFFFFFF))
#define LAM_STATION(s)   (1<<(s-1))
#define LAM_SOURCE_CRATE(c)   (c>>24)
#define LAM_SOURCE_STATION(s)   ((s) & 0xFFFFFF)
#define CNAF   0x1
#define MAX(a, b)   (((a) > (b)) ? (a) : (b))
#define MIN(a, b)   (((a) < (b)) ? (a) : (b))
#define ALIGN8(x)   (((x)+7) & ~7)
#define VALIGN(adr, align)   (((POINTER_T) (adr)+align-1) & ~(align-1))
#define MT_ERROR   (1<<0)
#define MT_INFO   (1<<1)
#define MT_DEBUG   (1<<2)
#define MT_USER   (1<<3)
#define MT_LOG   (1<<4)
#define MT_TALK   (1<<5)
#define MT_CALL   (1<<6)
#define MT_ALL   0xFF
#define MERROR   MT_ERROR, __FILE__, __LINE__
#define MINFO   MT_INFO, __FILE__, __LINE__
#define MDEBUG   MT_DEBUG, __FILE__, __LINE__
#define MUSER   MT_USER, __FILE__, __LINE__
#define MLOG   MT_LOG, __FILE__, __LINE__
#define MTALK   MT_TALK, __FILE__, __LINE__
#define MCALL   MT_CALL, __FILE__, __LINE__
#define SUCCESS   1
#define CM_SUCCESS   1
#define CM_SET_ERROR   102
#define CM_NO_CLIENT   103
#define CM_DB_ERROR   104
#define CM_UNDEF_EXP   105
#define CM_VERSION_MISMATCH   106
#define CM_SHUTDOWN   107
#define CM_WRONG_PASSWORD   108
#define CM_UNDEF_ENVIRON   109
#define CM_DEFERRED_TRANSITION   110
#define CM_TRANSITION_IN_PROGRESS   111
#define CM_TIMEOUT   112
#define CM_INVALID_TRANSITION   113
#define CM_TOO_MANY_REQUESTS   114
#define BM_SUCCESS   1
#define BM_CREATED   202
#define BM_NO_MEMORY   203
#define BM_INVALID_NAME   204
#define BM_INVALID_HANDLE   205
#define BM_NO_SLOT   206
#define BM_NO_MUTEX   207
#define BM_NOT_FOUND   208
#define BM_ASYNC_RETURN   209
#define BM_TRUNCATED   210
#define BM_MULTIPLE_HOSTS   211
#define BM_MEMSIZE_MISMATCH   212
#define BM_CONFLICT   213
#define BM_EXIT   214
#define BM_INVALID_PARAM   215
#define BM_MORE_EVENTS   216
#define BM_INVALID_MIXING   217
#define BM_NO_SHM   218
#define DB_SUCCESS   1
#define DB_CREATED   302
#define DB_NO_MEMORY   303
#define DB_INVALID_NAME   304
#define DB_INVALID_HANDLE   305
#define DB_NO_SLOT   306
#define DB_NO_MUTEX   307
#define DB_MEMSIZE_MISMATCH   308
#define DB_INVALID_PARAM   309
#define DB_FULL   310
#define DB_KEY_EXIST   311
#define DB_NO_KEY   312
#define DB_KEY_CREATED   313
#define DB_TRUNCATED   314
#define DB_TYPE_MISMATCH   315
#define DB_NO_MORE_SUBKEYS   316
#define DB_FILE_ERROR   317
#define DB_NO_ACCESS   318
#define DB_STRUCT_SIZE_MISMATCH   319
#define DB_OPEN_RECORD   320
#define DB_OUT_OF_RANGE   321
#define DB_INVALID_LINK   322
#define DB_CORRUPTED   323
#define DB_STRUCT_MISMATCH   324
#define DB_TIMEOUT   325
#define DB_VERSION_MISMATCH   326
#define SS_SUCCESS   1
#define SS_CREATED   402
#define SS_NO_MEMORY   403
#define SS_INVALID_NAME   404
#define SS_INVALID_HANDLE   405
#define SS_INVALID_ADDRESS   406
#define SS_FILE_ERROR   407
#define SS_NO_MUTEX   408
#define SS_NO_PROCESS   409
#define SS_NO_THREAD   410
#define SS_SOCKET_ERROR   411
#define SS_TIMEOUT   412
#define SS_SERVER_RECV   413
#define SS_CLIENT_RECV   414
#define SS_ABORT   415
#define SS_EXIT   416
#define SS_NO_TAPE   417
#define SS_DEV_BUSY   418
#define SS_IO_ERROR   419
#define SS_TAPE_ERROR   420
#define SS_NO_DRIVER   421
#define SS_END_OF_TAPE   422
#define SS_END_OF_FILE   423
#define SS_FILE_EXISTS   424
#define SS_NO_SPACE   425
#define SS_INVALID_FORMAT   426
#define SS_NO_ROOT   427
#define RPC_SUCCESS   1
#define RPC_ABORT   SS_ABORT
#define RPC_NO_CONNECTION   502
#define RPC_NET_ERROR   503
#define RPC_TIMEOUT   504
#define RPC_EXCEED_BUFFER   505
#define RPC_NOT_REGISTERED   506
#define RPC_CONNCLOSED   507
#define RPC_INVALID_ID   508
#define RPC_SHUTDOWN   509
#define RPC_NO_MEMORY   510
#define RPC_DOUBLE_DEFINED   511
#define FE_SUCCESS   1
#define FE_ERR_ODB   602
#define FE_ERR_HW   603
#define FE_ERR_DISABLED   604
#define FE_ERR_DRIVER   605
#define HS_SUCCESS   1
#define HS_FILE_ERROR   702
#define HS_NO_MEMORY   703
#define HS_TRUNCATED   704
#define HS_WRONG_INDEX   705
#define HS_UNDEFINED_EVENT   706
#define HS_UNDEFINED_VAR   707
#define FTP_SUCCESS   1
#define FTP_NET_ERROR   802
#define FTP_FILE_ERROR   803
#define FTP_RESPONSE_ERROR   804
#define FTP_INVALID_ARG   805
#define EL_SUCCESS   1
#define EL_FILE_ERROR   902
#define EL_NO_MESSAGE   903
#define EL_TRUNCATED   904
#define EL_FIRST_MSG   905
#define EL_LAST_MSG   906
#define AL_SUCCESS   1
#define AL_INVALID_NAME   1002
#define AL_ERROR_ODB   1003
#define AL_RESET   1004
#define CMD_INIT   (1<<0)
#define CMD_WRITE   100
#define CMD_INTERRUPT_ENABLE   100
#define BD_GETS(s, z, p, t)   info->bd(CMD_GETS, info->bd_info, s, z, p, t)
#define ANA_CONTINUE   1
#define TRIGGER_MASK(e)   ((((EVENT_HEADER *) e)-1)->trigger_mask)
#define EVENT_ID(e)   ((((EVENT_HEADER *) e)-1)->event_id)
#define SERIAL_NUMBER(e)   ((((EVENT_HEADER *) e)-1)->serial_number)
#define TIME_STAMP(e)   ((((EVENT_HEADER *) e)-1)->time_stamp)
#define EVENTID_BOR   ((short int) 0x8000)
#define EVENTID_EOR   ((short int) 0x8001)
#define EVENTID_MESSAGE   ((short int) 0x8002)
#define EVENTID_FRAG1   ((unsigned short) 0xC000)
#define MIDAS_MAGIC   0x494d
#define DF_INPUT   (1<<0)
#define DF_OUTPUT   (1<<1)
#define DF_PRIO_DEVICE   (1<<2)
#define DF_READ_ONLY   (1<<3)
#define BANK_FORMAT_VERSION   1
#define BANK_FORMAT_32BIT   (1<<4)
#define AT_INTERNAL   1
#define AT_PROGRAM   2
#define AT_EVALUATED   3
#define AT_PERIODIC   4
#define AT_LAST   4


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