Project
Loading...
Searching...
No Matches
o2::tpc::sac::dataDef Struct Reference

#include <SAC.h>

Public Member Functions

bool check () const
 

Public Attributes

uint32_t header = 0
 
union { 
 
   uint32_t   sizeFE = 0 
 
   struct { 
 
      uint32_t   feid: 8 
 front end ID (card number in rack): 1 - 9 More...
 
      uint32_t   pktSize: 24 
 total size of the packet in bytes, should always be 1024 More...
 
   }  
 
};  
 
uint32_t pktNumber = 0
 packet number of this front end card. Should always increase by 1
 
uint32_t timeStamp = 0
 time stamp
 
char dataWords [DataSize]
 ASCI encoded SAC data.
 
uint32_t crc32 = 0
 CRC32 checksum.
 
uint32_t trailer = 0
 trailer magic word, should always be TrailerWord
 

Static Public Attributes

static constexpr uint32_t HeaderWord = 0xdeadbeef
 
static constexpr uint32_t TrailerWord = 0xbeefdead
 
static constexpr uint32_t PacketSize = 1024
 
static constexpr uint32_t DataSize = 1000
 

Detailed Description

Definition at line 67 of file SAC.h.

Member Function Documentation

◆ check()

bool o2::tpc::sac::dataDef::check ( ) const
inline

Definition at line 89 of file SAC.h.

Member Data Documentation

◆ [union]

union { ... } o2::tpc::sac::dataDef

◆ crc32

uint32_t o2::tpc::sac::dataDef::crc32 = 0

CRC32 checksum.

Definition at line 86 of file SAC.h.

◆ DataSize

constexpr uint32_t o2::tpc::sac::dataDef::DataSize = 1000
staticconstexpr

Definition at line 71 of file SAC.h.

◆ dataWords

char o2::tpc::sac::dataDef::dataWords[DataSize]

ASCI encoded SAC data.

Definition at line 85 of file SAC.h.

◆ feid

uint32_t o2::tpc::sac::dataDef::feid

front end ID (card number in rack): 1 - 9

Definition at line 78 of file SAC.h.

◆ header

uint32_t o2::tpc::sac::dataDef::header = 0

header magic word, should always be HeaderWord

Definition at line 73 of file SAC.h.

◆ HeaderWord

constexpr uint32_t o2::tpc::sac::dataDef::HeaderWord = 0xdeadbeef
staticconstexpr

Definition at line 68 of file SAC.h.

◆ PacketSize

constexpr uint32_t o2::tpc::sac::dataDef::PacketSize = 1024
staticconstexpr

Definition at line 70 of file SAC.h.

◆ pktNumber

uint32_t o2::tpc::sac::dataDef::pktNumber = 0

packet number of this front end card. Should always increase by 1

Definition at line 83 of file SAC.h.

◆ pktSize

uint32_t o2::tpc::sac::dataDef::pktSize

total size of the packet in bytes, should always be 1024

Definition at line 79 of file SAC.h.

◆ sizeFE

uint32_t o2::tpc::sac::dataDef::sizeFE = 0

Definition at line 76 of file SAC.h.

◆ timeStamp

uint32_t o2::tpc::sac::dataDef::timeStamp = 0

time stamp

Definition at line 84 of file SAC.h.

◆ trailer

uint32_t o2::tpc::sac::dataDef::trailer = 0

trailer magic word, should always be TrailerWord

Definition at line 87 of file SAC.h.

◆ TrailerWord

constexpr uint32_t o2::tpc::sac::dataDef::TrailerWord = 0xbeefdead
staticconstexpr

Definition at line 69 of file SAC.h.


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