MIDAS
Public Defines

Macros

#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_NONBLOCKING   (1<<1)
 
#define GET_RECENT   (1<<2)
 
#define TID_BYTE   1
 
#define TID_UINT8   1
 
#define TID_SBYTE   2
 
#define TID_INT8   2
 
#define TID_CHAR   3
 
#define TID_WORD   4
 
#define TID_UINT16   4
 
#define TID_SHORT   5
 
#define TID_INT16   5
 
#define TID_DWORD   6
 
#define TID_UINT32   6
 
#define TID_INT   7
 
#define TID_INT32   7
 
#define TID_BOOL   8
 
#define TID_FLOAT   9
 
#define TID_FLOAT32   9
 
#define TID_DOUBLE   10
 
#define TID_FLOAT64   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_INT64   17
 
#define TID_UINT64   18
 
#define TID_QWORD   18
 
#define TID_LAST   19
 
#define TR_SYNC   1
 
#define TR_ASYNC   2
 
#define TR_DETACH   4
 
#define TR_MTHREAD   8
 
#define BM_WAIT   0
 
#define BM_NO_WAIT   1
 
#define MODE_READ   (1<<0)
 
#define MODE_WRITE   (1<<1)
 
#define MODE_DELETE   (1<<2)
 
#define MODE_EXCLUSIVE   (1<<3)
 
#define MODE_ALLOC   (1<<6)
 
#define MODE_WATCH   (1<<7)
 
#define RPC_HNDLE_MSERVER   -1
 
#define RPC_HNDLE_CONNECT   -2
 
#define RPC_NO_REPLY   0x80000000l
 
#define WF_WATCH_ME   (1<<0) /* see cm_set_watchdog_flags */
 
#define WF_CALL_WD   (1<<1)
 
#define TR_START   (1<<0)
 
#define TR_STOP   (1<<1)
 
#define TR_PAUSE   (1<<2)
 
#define TR_RESUME   (1<<3)
 
#define TR_STARTABORT   (1<<4)
 
#define TR_DEFERRED   (1<<12)
 
#define EQ_PERIODIC   (1<<0)
 
#define EQ_POLLED   (1<<1)
 
#define EQ_INTERRUPT   (1<<2)
 
#define EQ_MULTITHREAD   (1<<3)
 
#define EQ_SLOW   (1<<4)
 
#define EQ_MANUAL_TRIG   (1<<5)
 
#define EQ_FRAGMENTED   (1<<6)
 
#define EQ_EB   (1<<7)
 
#define EQ_USER   (1<<8)
 
#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_NONTRANS   (RO_RUNNING|RO_STOPPED|RO_PAUSED)
 
#define RO_ALWAYS   (0xFF)
 
#define RO_ODB   (1<<8)
 
#define EVENTID_ALL   -1 /* any event id */
 
#define TRIGGER_ALL   -1 /* any type of trigger */
 
#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 MT_ERROR_STR   "ERROR"
 
#define MT_INFO_STR   "INFO"
 
#define MT_DEBUG_STR   "DEBUG"
 
#define MT_USER_STR   "USER"
 
#define MT_LOG_STR   "LOG"
 
#define MT_TALK_STR   "TALK"
 
#define MT_CALL_STR   "CALL"
 
#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__
 

Detailed Description

dox


dox dox


Macro Definition Documentation

◆ BM_NO_WAIT

#define BM_NO_WAIT   1

Definition at line 373 of file midas.h.

◆ BM_WAIT

#define BM_WAIT   0

Synchronous / Asynchronous flags

Definition at line 372 of file midas.h.

◆ EQ_EB

#define EQ_EB   (1<<7)

Event run through the event builder

Definition at line 428 of file midas.h.

◆ EQ_FRAGMENTED

#define EQ_FRAGMENTED   (1<<6)

Fragmented Event

Definition at line 427 of file midas.h.

◆ EQ_INTERRUPT

#define EQ_INTERRUPT   (1<<2)

Interrupt Event

Definition at line 423 of file midas.h.

◆ EQ_MANUAL_TRIG

#define EQ_MANUAL_TRIG   (1<<5)

Manual triggered Event

Definition at line 426 of file midas.h.

◆ EQ_MULTITHREAD

#define EQ_MULTITHREAD   (1<<3)

Multithread Event readout

Definition at line 424 of file midas.h.

◆ EQ_PERIODIC

#define EQ_PERIODIC   (1<<0)

Equipment types Periodic Event

Definition at line 421 of file midas.h.

◆ EQ_POLLED

#define EQ_POLLED   (1<<1)

Polling Event

Definition at line 422 of file midas.h.

◆ EQ_SLOW

#define EQ_SLOW   (1<<4)

Slow Control Event

Definition at line 425 of file midas.h.

◆ EQ_USER

#define EQ_USER   (1<<8)

Polling handled in user part

Definition at line 429 of file midas.h.

◆ EVENTID_ALL

#define EVENTID_ALL   -1 /* any event id */

Definition at line 543 of file midas.h.

◆ FORMAT_ASCII

#define FORMAT_ASCII   3

ASCII format

Definition at line 320 of file midas.h.

◆ FORMAT_DUMP

#define FORMAT_DUMP   5

Dump (detailed ASCII) format

Definition at line 322 of file midas.h.

◆ FORMAT_FIXED

#define FORMAT_FIXED   4

Fixed length binary records

Definition at line 321 of file midas.h.

◆ FORMAT_HBOOK

#define FORMAT_HBOOK   6

CERN hbook (rz) format

Definition at line 323 of file midas.h.

◆ FORMAT_MIDAS

#define FORMAT_MIDAS   1

Data format MIDAS banks

Definition at line 318 of file midas.h.

◆ FORMAT_ROOT

#define FORMAT_ROOT   7

CERN ROOT format

Definition at line 324 of file midas.h.

◆ FORMAT_YBOS

#define FORMAT_YBOS   2

YBOS banks

Definition at line 319 of file midas.h.

◆ GET_ALL

#define GET_ALL   (1<<0)

Event Sampling type get all events (consume)

Definition at line 328 of file midas.h.

◆ GET_NONBLOCKING

#define GET_NONBLOCKING   (1<<1)

get as much as possible without blocking producer

Definition at line 329 of file midas.h.

◆ GET_RECENT

#define GET_RECENT   (1<<2)

get recent event (not older than 1 s)

Definition at line 330 of file midas.h.

◆ MCALL

#define MCALL   MT_CALL, __FILE__, __LINE__

info message for telephone call

Definition at line 571 of file midas.h.

◆ MDEBUG

#define MDEBUG   MT_DEBUG, __FILE__, __LINE__

Definition at line 567 of file midas.h.

◆ MERROR

#define MERROR   MT_ERROR, __FILE__, __LINE__

Definition at line 565 of file midas.h.

◆ MINFO

#define MINFO   MT_INFO, __FILE__, __LINE__

Definition at line 566 of file midas.h.

◆ MLOG

#define MLOG   MT_LOG, __FILE__, __LINE__

info message which is only logged

Definition at line 569 of file midas.h.

◆ MODE_ALLOC

#define MODE_ALLOC   (1<<6)

Definition at line 381 of file midas.h.

◆ MODE_DELETE

#define MODE_DELETE   (1<<2)

Definition at line 379 of file midas.h.

◆ MODE_EXCLUSIVE

#define MODE_EXCLUSIVE   (1<<3)

Definition at line 380 of file midas.h.

◆ MODE_READ

#define MODE_READ   (1<<0)

Access modes

Definition at line 377 of file midas.h.

◆ MODE_WATCH

#define MODE_WATCH   (1<<7)

Definition at line 382 of file midas.h.

◆ MODE_WRITE

#define MODE_WRITE   (1<<1)

Definition at line 378 of file midas.h.

◆ MT_ALL

#define MT_ALL   0xFF

Definition at line 555 of file midas.h.

◆ MT_CALL

#define MT_CALL   (1<<6)

Definition at line 554 of file midas.h.

◆ MT_CALL_STR

#define MT_CALL_STR   "CALL"

Definition at line 563 of file midas.h.

◆ MT_DEBUG

#define MT_DEBUG   (1<<2)

Definition at line 550 of file midas.h.

◆ MT_DEBUG_STR

#define MT_DEBUG_STR   "DEBUG"

Definition at line 559 of file midas.h.

◆ MT_ERROR

#define MT_ERROR   (1<<0)

System message types

Definition at line 548 of file midas.h.

◆ MT_ERROR_STR

#define MT_ERROR_STR   "ERROR"

Definition at line 557 of file midas.h.

◆ MT_INFO

#define MT_INFO   (1<<1)

Definition at line 549 of file midas.h.

◆ MT_INFO_STR

#define MT_INFO_STR   "INFO"

Definition at line 558 of file midas.h.

◆ MT_LOG

#define MT_LOG   (1<<4)

Definition at line 552 of file midas.h.

◆ MT_LOG_STR

#define MT_LOG_STR   "LOG"

Definition at line 561 of file midas.h.

◆ MT_TALK

#define MT_TALK   (1<<5)

Definition at line 553 of file midas.h.

◆ MT_TALK_STR

#define MT_TALK_STR   "TALK"

Definition at line 562 of file midas.h.

◆ MT_USER

#define MT_USER   (1<<3)

Definition at line 551 of file midas.h.

◆ MT_USER_STR

#define MT_USER_STR   "USER"

Definition at line 560 of file midas.h.

◆ MTALK

#define MTALK   MT_TALK, __FILE__, __LINE__

info message for speech system

Definition at line 570 of file midas.h.

◆ MUSER

#define MUSER   MT_USER, __FILE__, __LINE__

produced by interactive user

Definition at line 568 of file midas.h.

◆ RO_ALWAYS

#define RO_ALWAYS   (0xFF)

Always and during transitions

Definition at line 443 of file midas.h.

◆ RO_BOR

#define RO_BOR   (1<<3)

At the Begin of run

Definition at line 436 of file midas.h.

◆ RO_EOR

#define RO_EOR   (1<<4)

At the End of run

Definition at line 437 of file midas.h.

◆ RO_NONTRANS

#define RO_NONTRANS   (RO_RUNNING|RO_STOPPED|RO_PAUSED)

Always except on tranistion

Definition at line 442 of file midas.h.

◆ RO_ODB

#define RO_ODB   (1<<8)

Copy event data to ODB

Definition at line 445 of file midas.h.

◆ RO_PAUSE

#define RO_PAUSE   (1<<5)

Before pausing the run

Definition at line 438 of file midas.h.

◆ RO_PAUSED

#define RO_PAUSED   (1<<2)

???

Definition at line 435 of file midas.h.

◆ RO_RESUME

#define RO_RESUME   (1<<6)

Before resuming the run

Definition at line 439 of file midas.h.

◆ RO_RUNNING

#define RO_RUNNING   (1<<0)

Read - On flags While running

Definition at line 433 of file midas.h.

◆ RO_STOPPED

#define RO_STOPPED   (1<<1)

Before stopping the run

Definition at line 434 of file midas.h.

◆ RO_TRANSITIONS

#define RO_TRANSITIONS   (RO_BOR|RO_EOR|RO_PAUSE|RO_RESUME)

At all transitions

Definition at line 441 of file midas.h.

◆ RPC_HNDLE_CONNECT

#define RPC_HNDLE_CONNECT   -2

Definition at line 401 of file midas.h.

◆ RPC_HNDLE_MSERVER

#define RPC_HNDLE_MSERVER   -1

RPC options

Definition at line 400 of file midas.h.

◆ RPC_NO_REPLY

#define RPC_NO_REPLY   0x80000000l

Definition at line 403 of file midas.h.

◆ STATE_PAUSED

#define STATE_PAUSED   2

MIDAS run paused

Definition at line 313 of file midas.h.

◆ STATE_RUNNING

#define STATE_RUNNING   3

MIDAS run running

Definition at line 314 of file midas.h.

◆ STATE_STOPPED

#define STATE_STOPPED   1

System states MIDAS run stopped

Definition at line 312 of file midas.h.

◆ TID_ARRAY

#define TID_ARRAY   13

array with unknown contents

Definition at line 354 of file midas.h.

◆ TID_BITFIELD

#define TID_BITFIELD   11

32 Bits Bitfield 0 111... (32)

Definition at line 352 of file midas.h.

◆ TID_BOOL

#define TID_BOOL   8

four bytes bool 0 1

Definition at line 347 of file midas.h.

◆ TID_BYTE

#define TID_BYTE   1

MIDAS Data Type Definitions min max
DEPRECATED, use TID_UINT8 instead

Definition at line 334 of file midas.h.

◆ TID_CHAR

#define TID_CHAR   3

single character 0 255

Definition at line 338 of file midas.h.

◆ TID_DOUBLE

#define TID_DOUBLE   10

8 Byte float format

Definition at line 350 of file midas.h.

◆ TID_DWORD

#define TID_DWORD   6

DEPRECATED, use TID_UINT32 instead

Definition at line 343 of file midas.h.

◆ TID_FLOAT

#define TID_FLOAT   9

4 Byte float format

Definition at line 348 of file midas.h.

◆ TID_FLOAT32

#define TID_FLOAT32   9

4 Byte float format

Definition at line 349 of file midas.h.

◆ TID_FLOAT64

#define TID_FLOAT64   10

8 Byte float format

Definition at line 351 of file midas.h.

◆ TID_INT

#define TID_INT   7

DEPRECATED, use TID_INT32 instead

Definition at line 345 of file midas.h.

◆ TID_INT16

#define TID_INT16   5

signed word -32768 32767

Definition at line 342 of file midas.h.

◆ TID_INT32

#define TID_INT32   7

signed dword -2^31 2^31-1

Definition at line 346 of file midas.h.

◆ TID_INT64

#define TID_INT64   17

8 bytes int -2^63 2^63-1

Definition at line 358 of file midas.h.

◆ TID_INT8

#define TID_INT8   2

signed byte -128 127

Definition at line 337 of file midas.h.

◆ TID_KEY

#define TID_KEY   15

key in online database

Definition at line 356 of file midas.h.

◆ TID_LAST

#define TID_LAST   19

end of TID list indicator

Definition at line 361 of file midas.h.

◆ TID_LINK

#define TID_LINK   16

link in online database

Definition at line 357 of file midas.h.

◆ TID_QWORD

#define TID_QWORD   18

8 bytes unsigned int 0 2^64-1

Definition at line 360 of file midas.h.

◆ TID_SBYTE

#define TID_SBYTE   2

DEPRECATED, use TID_INT8 instead

Definition at line 336 of file midas.h.

◆ TID_SHORT

#define TID_SHORT   5

DEPRECATED, use TID_INT16 instead

Definition at line 341 of file midas.h.

◆ TID_STRING

#define TID_STRING   12

zero terminated string

Definition at line 353 of file midas.h.

◆ TID_STRUCT

#define TID_STRUCT   14

structure with fixed length

Definition at line 355 of file midas.h.

◆ TID_UINT16

#define TID_UINT16   4

two bytes 0 65535

Definition at line 340 of file midas.h.

◆ TID_UINT32

#define TID_UINT32   6

four bytes 0 2^32-1

Definition at line 344 of file midas.h.

◆ TID_UINT64

#define TID_UINT64   18

8 bytes unsigned int 0 2^64-1

Definition at line 359 of file midas.h.

◆ TID_UINT8

#define TID_UINT8   1

unsigned byte 0 255

Definition at line 335 of file midas.h.

◆ TID_WORD

#define TID_WORD   4

DEPRECATED, use TID_UINT16 instead

Definition at line 339 of file midas.h.

◆ TR_ASYNC

#define TR_ASYNC   2

Definition at line 366 of file midas.h.

◆ TR_DEFERRED

#define TR_DEFERRED   (1<<12)

Definition at line 417 of file midas.h.

◆ TR_DETACH

#define TR_DETACH   4

Definition at line 367 of file midas.h.

◆ TR_MTHREAD

#define TR_MTHREAD   8

Definition at line 368 of file midas.h.

◆ TR_PAUSE

#define TR_PAUSE   (1<<2)

Pause transition

Definition at line 414 of file midas.h.

◆ TR_RESUME

#define TR_RESUME   (1<<3)

Resume transition

Definition at line 415 of file midas.h.

◆ TR_START

#define TR_START   (1<<0)

Transitions values Start transition

Definition at line 412 of file midas.h.

◆ TR_STARTABORT

#define TR_STARTABORT   (1<<4)

Start aborted transition

Definition at line 416 of file midas.h.

◆ TR_STOP

#define TR_STOP   (1<<1)

Stop transition

Definition at line 413 of file midas.h.

◆ TR_SYNC

#define TR_SYNC   1

Transition flags

Definition at line 365 of file midas.h.

◆ TRIGGER_ALL

#define TRIGGER_ALL   -1 /* any type of trigger */

Definition at line 544 of file midas.h.

◆ WF_CALL_WD

#define WF_CALL_WD   (1<<1)

Definition at line 408 of file midas.h.

◆ WF_WATCH_ME

#define WF_WATCH_ME   (1<<0) /* see cm_set_watchdog_flags */

Watchdog flags

Definition at line 407 of file midas.h.