Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
ptb::content::word::ch_status_t Struct Reference

#include <CTB_content.h>

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: 5
 
crt_size_t crt: 32
 
pds_size_t pds: 24
 
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 134 of file CTB_content.h.

Member Typedef Documentation

Definition at line 138 of file CTB_content.h.

Definition at line 137 of file CTB_content.h.

Definition at line 136 of file CTB_content.h.

Definition at line 135 of file CTB_content.h.

Definition at line 139 of file CTB_content.h.

Member Function Documentation

beam_size_t ptb::content::word::ch_status_t::get_beam ( ) const
inline

Definition at line 158 of file CTB_content.h.

158 {return (beam_hi << 4 | beam_lo);}
crt_size_t ptb::content::word::ch_status_t::get_crt ( ) const
inline

Definition at line 159 of file CTB_content.h.

159 {return (crt & 0xFFFFFFFF);}
pds_size_t ptb::content::word::ch_status_t::get_pds ( ) const
inline

Definition at line 160 of file CTB_content.h.

160 {return (pds & 0xFFFFFFF);}
bool ptb::content::word::ch_status_t::get_state_beam ( const uint16_t  channel)
inline

Definition at line 168 of file CTB_content.h.

168  {
169  return (((beam_hi << 4 | beam_lo) & (0x1 << channel)) != 0x0);
170  }
uint8_t channel
Definition: CRTFragment.hh:201
bool ptb::content::word::ch_status_t::get_state_crt ( const uint16_t  channel)
inline

Definition at line 162 of file CTB_content.h.

162  {
163  return ((crt & (0x1 << channel)) != 0x0);
164  }
uint8_t channel
Definition: CRTFragment.hh:201
bool ptb::content::word::ch_status_t::get_state_pds ( const uint16_t  channel)
inline

Definition at line 165 of file CTB_content.h.

165  {
166  return ((pds & (0x1 << channel)) != 0x0);
167  }
uint8_t channel
Definition: CRTFragment.hh:201

Member Data Documentation

beam_size_t ptb::content::word::ch_status_t::beam_hi

Definition at line 143 of file CTB_content.h.

beam_size_t ptb::content::word::ch_status_t::beam_lo

Definition at line 142 of file CTB_content.h.

crt_size_t ptb::content::word::ch_status_t::crt

Definition at line 144 of file CTB_content.h.

size_t const ptb::content::word::ch_status_t::n_bits_payload = 32
static

Definition at line 153 of file CTB_content.h.

size_t const ptb::content::word::ch_status_t::n_bits_timestamp = 60
static

Definition at line 152 of file CTB_content.h.

size_t const ptb::content::word::ch_status_t::n_bits_type = 3
static

Definition at line 154 of file CTB_content.h.

pds_size_t ptb::content::word::ch_status_t::pds

Definition at line 145 of file CTB_content.h.

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

Definition at line 149 of file CTB_content.h.

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

Definition at line 150 of file CTB_content.h.

ts_size_t ptb::content::word::ch_status_t::timestamp

Definition at line 141 of file CTB_content.h.

wtype_size_t ptb::content::word::ch_status_t::word_type

Definition at line 146 of file CTB_content.h.


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