Macros

From MidasWiki
Revision as of 11:34, 1 November 2013 by Suz (talk | contribs) (Created page with "==Introduction== The following MACROS have been provided in the MIDAS package. ==Byte Swap Macros== Thes macros are provided for big/little endian byte-swapping * WORD_SWAP...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

The following MACROS have been provided in the MIDAS package.

Byte Swap Macros

Thes macros are provided for big/little endian byte-swapping

  • WORD_SWAP
  • DWORD_SWAP
  • QWORD_SWAP

These macros are used by bk_swap();

CAMAC Macros

Midas provides Macros for CAMAC LAM manipulation

  • LAM_SOURCE
  • LAM_STATION
  • LAM_SOURCE_CRATE
  • LAM_SOURCE_STATION

Event Header Macros

  • TRIGGER_MASK
  • EVENT_ID
  • SERIAL_NUMBER
  • TIME_STAMP

See MIDAS Event Header Macros.