Public Types | Public Attributes | Static Public Attributes | List of all members
ptb::content::word::word_t Struct Reference

#include <CTB_content.h>

Public Types

typedef uint64_t ts_size_t
 
typedef uint64_t pad_size_t
 
typedef uint64_t word_type_t
 

Public Attributes

ts_size_t timestamp
 
pad_size_t payload: 61
 
word_type_t word_type: 3
 

Static Public Attributes

static size_t const size_bytes = 4*sizeof(uint32_t)
 
static size_t const size_u32 = 4*sizeof(uint32_t)/sizeof(uint32_t)
 
static size_t const n_bits_timestamp = 64
 
static size_t const n_bits_payload = 61
 
static size_t const n_bits_type = 3
 

Detailed Description

N. Barros - May 7, 2018 : Changed the structure of the parsing

Now all structures cast into 16 bytes, but declare different bit fields to interpret each frame in the context of its respective type

Also, to move into a format where the full timestamp is stored, the full timestamp is now placed in the 64 lsb, instead of the msb. Does complies with the memory alignment and simplifies the parsing of the structures

Definition at line 82 of file CTB_content.h.

Member Typedef Documentation

Definition at line 84 of file CTB_content.h.

Definition at line 83 of file CTB_content.h.

Definition at line 85 of file CTB_content.h.

Member Data Documentation

size_t const ptb::content::word::word_t::n_bits_payload = 61
static

Definition at line 95 of file CTB_content.h.

size_t const ptb::content::word::word_t::n_bits_timestamp = 64
static

Definition at line 94 of file CTB_content.h.

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

Definition at line 96 of file CTB_content.h.

pad_size_t ptb::content::word::word_t::payload

Definition at line 88 of file CTB_content.h.

size_t const ptb::content::word::word_t::size_bytes = 4*sizeof(uint32_t)
static

Definition at line 91 of file CTB_content.h.

size_t const ptb::content::word::word_t::size_u32 = 4*sizeof(uint32_t)/sizeof(uint32_t)
static

Definition at line 92 of file CTB_content.h.

ts_size_t ptb::content::word::word_t::timestamp

Definition at line 87 of file CTB_content.h.

word_type_t ptb::content::word::word_t::word_type

Definition at line 89 of file CTB_content.h.


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