|
DDAS Format 2.1.0
A self-contained, lightweight format library and unpacker for DDAS data
|
Define bit masks to extract data from specific locations of Pixie data. Bit masks are inclusive: Bits [3:0] means mask bits 3, 2, 1, 0. Shift offsets are provided for masks where the offset is not obvious from the mask name. More...
#include <cstdint>

Go to the source code of this file.
Variables | |
| constexpr uint32_t | ddasfmt::LOWER_16_BIT_MASK = 0x0000FFFF |
| Bits [15:0]. | |
| constexpr uint32_t | ddasfmt::BIT_28_TO_16_MASK = 0x1FFF0000 |
| Bits [28:16]. | |
| constexpr uint32_t | ddasfmt::BIT_29_TO_16_MASK = 0x3FFF0000 |
| Bits [29:16]. | |
| constexpr uint32_t | ddasfmt::BIT_30_TO_16_MASK = 0x7FFF0000 |
| Bits [30:16]. | |
| constexpr uint32_t | ddasfmt::BIT_30_TO_29_MASK = 0x60000000 |
| Bits [30:29]. | |
| constexpr uint32_t | ddasfmt::BIT_31_TO_29_MASK = 0xE0000000 |
| Bits [31:29]. | |
| constexpr uint32_t | ddasfmt::BIT_30_MASK = 0x40000000 |
| Bit 30. | |
| constexpr uint32_t | ddasfmt::BIT_31_MASK = 0x80000000 |
| Bit 31. | |
| constexpr uint32_t | ddasfmt::UPPER_16_BIT_MASK = 0xFFFF0000 |
| Bits [31:16]. | |
| constexpr uint32_t | ddasfmt::ADC_RESOLUTION_MASK = 0x00FF0000 |
| Bits [23:16]. | |
| constexpr uint32_t | ddasfmt::HW_REVISION_MASK = 0xFF000000 |
| Bits [31:24]. | |
| constexpr uint32_t | ddasfmt::ADC_RESOLUTION_SHIFT = 16 |
| ADC resolution offset. | |
| constexpr uint32_t | ddasfmt::HW_REVISION_SHIFT = 24 |
| HW revision offset. | |
| constexpr uint32_t | ddasfmt::CHANNEL_ID_MASK = 0x0000000F |
| Bits [3:0]. | |
| constexpr uint32_t | ddasfmt::SLOT_ID_MASK = 0x000000F0 |
| Bits [7:4]. | |
| constexpr uint32_t | ddasfmt::CRATE_ID_MASK = 0x00000F00 |
| Bits [11:8]. | |
| constexpr uint32_t | ddasfmt::HEADER_LENGTH_MASK = 0x0001F000 |
| Bits [16:12]. | |
| constexpr uint32_t | ddasfmt::CHANNEL_LENGTH_MASK = 0x7FFE0000 |
| Bits [30:17]. | |
| constexpr uint32_t | ddasfmt::FINISH_CODE_MASK = BIT_31_MASK |
| Bit 31. | |
| constexpr uint32_t | ddasfmt::SLOT_ID_SHIFT = 4 |
| Slot ID offset. | |
| constexpr uint32_t | ddasfmt::CRATE_ID_SHIFT = 8 |
| Crate ID offset. | |
| constexpr uint32_t | ddasfmt::HEADER_LENGTH_SHIFT = 12 |
| Header length offset. | |
| constexpr uint32_t | ddasfmt::CHANNEL_LENGTH_SHIFT = 17 |
| Chan. length offset. | |
| constexpr uint32_t | ddasfmt::FINISH_CODE_SHIFT = 31 |
| Finish code offset. | |
| constexpr uint32_t | ddasfmt::OUT_OF_RANGE_SHIFT = 31 |
| ADC overflow offset. | |
| constexpr uint32_t | ddasfmt::CHANNEL_ID_MASK_REV_H |
| Bits [5:0]: Channel ID in Rev H. More... | |
| constexpr uint32_t | ddasfmt::SLOT_ID_MASK_REV_H |
| Bits [9:6]: Slot ID in Rev H. More... | |
| constexpr uint32_t | ddasfmt::CRATE_ID_MASK_REV_H |
| Bits [11:10]: Crate ID in Rev H. More... | |
| constexpr uint32_t | ddasfmt::SLOT_ID_SHIFT_REV_H = 6 |
| Slot ID offset in Rev H. | |
| constexpr uint32_t | ddasfmt::CRATE_ID_SHIFT_REV_H = 10 |
| Crate ID offset in Rev H. | |
| constexpr uint32_t | ddasfmt::SIZE_OF_RAW_EVENT = 4 |
| 32-bit words event header. | |
| constexpr uint32_t | ddasfmt::SIZE_OF_EXT_TS = 2 |
| Words for external TS. | |
| constexpr uint32_t | ddasfmt::SIZE_OF_ENE_SUMS = 4 |
| Words for energy sums. | |
| constexpr uint32_t | ddasfmt::SIZE_OF_QDC_SUMS = 8 |
| Words for QDC sums. | |
Define bit masks to extract data from specific locations of Pixie data. Bit masks are inclusive: Bits [3:0] means mask bits 3, 2, 1, 0. Shift offsets are provided for masks where the offset is not obvious from the mask name.
|
constexpr |
Bits [5:0]: Channel ID in Rev H.
|
constexpr |
Bits [11:10]: Crate ID in Rev H.
|
constexpr |
Bits [9:6]: Slot ID in Rev H.