lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
Pds::Trg::HrEncoderTebData Struct Reference

TEB input record made by hrEncoderTebPrimitive.cc from the start of the encoder data payload. More...

#include <HrEncoderTebData.hh>

Public Member Functions

 HrEncoderTebData (uint8_t *payload)
 Copy the 32-bit position from payload bytes 0-3 and the counters from bytes 4, 5 and 6; m_reserved is not set.
 

Public Attributes

int32_t m_position
 Encoder position (payload bytes 0-3).
 
uint8_t m_encErrCnt
 Encoder error count (payload byte 4).
 
uint8_t m_missedTrigCnt
 Missed trigger count (payload byte 5).
 
uint8_t m_latches
 Latch byte (payload byte 6); the code comment says the upper 3 bits are the 3 latch bits.
 
uint8_t m_reserved
 Not set by the constructor; the code comment says it is actually 13 bits.
 

Detailed Description

TEB input record made by hrEncoderTebPrimitive.cc from the start of the encoder data payload.

Constructor & Destructor Documentation

◆ HrEncoderTebData()

Pds::Trg::HrEncoderTebData::HrEncoderTebData ( uint8_t *  payload)
inline

Copy the 32-bit position from payload bytes 0-3 and the counters from bytes 4, 5 and 6; m_reserved is not set.

Member Data Documentation

◆ m_encErrCnt

uint8_t Pds::Trg::HrEncoderTebData::m_encErrCnt

Encoder error count (payload byte 4).

◆ m_latches

uint8_t Pds::Trg::HrEncoderTebData::m_latches

Latch byte (payload byte 6); the code comment says the upper 3 bits are the 3 latch bits.

◆ m_missedTrigCnt

uint8_t Pds::Trg::HrEncoderTebData::m_missedTrigCnt

Missed trigger count (payload byte 5).

◆ m_position

int32_t Pds::Trg::HrEncoderTebData::m_position

Encoder position (payload bytes 0-3).

◆ m_reserved

uint8_t Pds::Trg::HrEncoderTebData::m_reserved

Not set by the constructor; the code comment says it is actually 13 bits.


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