lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
TPGen::ACRateSync Class Reference

Wait for the occurrence-th powerline-synchronized marker marker_id in the timeslots of timeslot_mask (per the code comment). More...

#include <user_sequence.hh>

Inherits TPGen::Instruction.

Public Member Functions

 ACRateSync (unsigned timeslot_mask, unsigned marker_id, unsigned occurrence)
 Store timeslot_mask, marker_id and occurrence.
 
 ~ACRateSync ()
 Does nothing; empty body.
 
Instruction::Type instr () const
 Return Instruction::AC.
 
- Public Member Functions inherited from TPGen::Instruction
virtual ~Instruction ()
 Does nothing; empty virtual destructor.
 

Public Attributes

unsigned timeslot_mask
 Timeslot mask; XpmSequenceEngine encodes 6 bits of it.
 
unsigned marker_id
 AC-rate marker number; XpmSequenceEngine encodes 4 bits of it.
 
unsigned occurrence
 Number of markers to wait for; XpmSequenceEngine encodes 12 bits of it.
 

Additional Inherited Members

- Public Types inherited from TPGen::Instruction
enum  Type {
  Fixed , AC , Branch , Check ,
  Request
}
 Instruction type returned by instr(). More...
 

Detailed Description

Wait for the occurrence-th powerline-synchronized marker marker_id in the timeslots of timeslot_mask (per the code comment).

Constructor & Destructor Documentation

◆ ACRateSync()

TPGen::ACRateSync::ACRateSync ( unsigned  timeslot_mask,
unsigned  marker_id,
unsigned  occurrence 
)

Store timeslot_mask, marker_id and occurrence.

◆ ~ACRateSync()

TPGen::ACRateSync::~ACRateSync ( )

Does nothing; empty body.

Member Function Documentation

◆ instr()

Instruction::Type TPGen::ACRateSync::instr ( ) const
virtual

Return Instruction::AC.

Implements TPGen::Instruction.

Member Data Documentation

◆ marker_id

unsigned TPGen::ACRateSync::marker_id

AC-rate marker number; XpmSequenceEngine encodes 4 bits of it.

◆ occurrence

unsigned TPGen::ACRateSync::occurrence

Number of markers to wait for; XpmSequenceEngine encodes 12 bits of it.

◆ timeslot_mask

unsigned TPGen::ACRateSync::timeslot_mask

Timeslot mask; XpmSequenceEngine encodes 6 bits of it.


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