DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::ctbmodules::content::word::ch_status_t Struct Reference

#include <CTBPacketContent.hpp>

Public Types

typedef uint64_t ts_size_t
typedef uint64_t pds_size_t
typedef uint64_t crt_size_t
typedef uint64_t beam_size_t
typedef uint64_t wtype_size_t

Public Member Functions

beam_size_t get_beam () const
crt_size_t get_crt () const
pds_size_t get_pds () const
bool get_state_crt (const uint16_t channel)
bool get_state_pds (const uint16_t channel)
bool get_state_beam (const uint16_t channel)

Public Attributes

ts_size_t timestamp: 60
beam_size_t beam_lo: 4
beam_size_t beam_hi: 12
crt_size_t crt: 32
pds_size_t pds: 17
wtype_size_t word_type: 3

Static Public Attributes

static size_t const size_bytes = 2 * sizeof(uint64_t)
static size_t const size_u32 = size_bytes / sizeof(uint32_t)
static size_t const n_bits_timestamp = 60
static size_t const n_bits_payload = 32
static size_t const n_bits_type = 3

Detailed Description

Definition at line 132 of file CTBPacketContent.hpp.

Member Typedef Documentation

◆ beam_size_t

◆ crt_size_t

◆ pds_size_t

◆ ts_size_t

◆ wtype_size_t

Member Function Documentation

◆ get_beam()

beam_size_t dunedaq::ctbmodules::content::word::ch_status_t::get_beam ( ) const
inline

◆ get_crt()

crt_size_t dunedaq::ctbmodules::content::word::ch_status_t::get_crt ( ) const
inline

Definition at line 153 of file CTBPacketContent.hpp.

153{ return (crt & 0xFFFFFFFF); }

◆ get_pds()

pds_size_t dunedaq::ctbmodules::content::word::ch_status_t::get_pds ( ) const
inline

Definition at line 154 of file CTBPacketContent.hpp.

154{ return (pds & 0x1FFFF); }

◆ get_state_beam()

bool dunedaq::ctbmodules::content::word::ch_status_t::get_state_beam ( const uint16_t channel)
inline

Definition at line 160 of file CTBPacketContent.hpp.

160{ return (((beam_hi << 4 | beam_lo) & (0x1 << channel)) != 0x0); }

◆ get_state_crt()

bool dunedaq::ctbmodules::content::word::ch_status_t::get_state_crt ( const uint16_t channel)
inline

Definition at line 156 of file CTBPacketContent.hpp.

156{ return ((crt & (0x1 << channel)) != 0x0); }

◆ get_state_pds()

bool dunedaq::ctbmodules::content::word::ch_status_t::get_state_pds ( const uint16_t channel)
inline

Definition at line 158 of file CTBPacketContent.hpp.

158{ return ((pds & (0x1 << channel)) != 0x0); }

Member Data Documentation

◆ beam_hi

beam_size_t dunedaq::ctbmodules::content::word::ch_status_t::beam_hi

Definition at line 141 of file CTBPacketContent.hpp.

◆ beam_lo

beam_size_t dunedaq::ctbmodules::content::word::ch_status_t::beam_lo

Definition at line 140 of file CTBPacketContent.hpp.

◆ crt

crt_size_t dunedaq::ctbmodules::content::word::ch_status_t::crt

Definition at line 142 of file CTBPacketContent.hpp.

◆ n_bits_payload

size_t const dunedaq::ctbmodules::content::word::ch_status_t::n_bits_payload = 32
static

Definition at line 148 of file CTBPacketContent.hpp.

◆ n_bits_timestamp

size_t const dunedaq::ctbmodules::content::word::ch_status_t::n_bits_timestamp = 60
static

Definition at line 147 of file CTBPacketContent.hpp.

◆ n_bits_type

size_t const dunedaq::ctbmodules::content::word::ch_status_t::n_bits_type = 3
static

Definition at line 149 of file CTBPacketContent.hpp.

◆ pds

pds_size_t dunedaq::ctbmodules::content::word::ch_status_t::pds

Definition at line 143 of file CTBPacketContent.hpp.

◆ size_bytes

size_t const dunedaq::ctbmodules::content::word::ch_status_t::size_bytes = 2 * sizeof(uint64_t)
static

Definition at line 145 of file CTBPacketContent.hpp.

◆ size_u32

size_t const dunedaq::ctbmodules::content::word::ch_status_t::size_u32 = size_bytes / sizeof(uint32_t)
static

Definition at line 146 of file CTBPacketContent.hpp.

◆ timestamp

ts_size_t dunedaq::ctbmodules::content::word::ch_status_t::timestamp

Definition at line 139 of file CTBPacketContent.hpp.

◆ word_type

wtype_size_t dunedaq::ctbmodules::content::word::ch_status_t::word_type

Definition at line 144 of file CTBPacketContent.hpp.


The documentation for this struct was generated from the following file: