pflib v3.15.1-5-ge6391b0
Pretty Fine HGCROC Interaction Library
Loading...
Searching...
No Matches
pflib::bittware::BWFastControl Class Reference

Representation of FastControl controller. More...

#include <bittware_FastControl.h>

Inheritance diagram for pflib::bittware::BWFastControl:
[legend]
Collaboration diagram for pflib::bittware::BWFastControl:
[legend]

Public Member Functions

 BWFastControl (const char *dev)
 
virtual std::map< std::string, uint32_t > getCmdCounters ()
 Get the counters for all the different fast control commands.
 
virtual void resetCounters ()
 clear the counters
 
virtual void sendL1A ()
 send a single L1A
 
virtual void sendROR ()
 send a single ROR
 
virtual void setL1AperROR (int n)
 set the number of L1A per ROR
 
virtual int getL1AperROR ()
 get the number of L1A per ROR
 
virtual void linkreset_rocs ()
 send a link reset
 
virtual void linkreset_econs ()
 send a link reset to the ECONs
 
virtual void bufferclear ()
 send a buffer clear
 
virtual void orbit_count_reset ()
 send a orbit count reset
 
virtual void chargepulse ()
 send a single calib pulse
 
virtual void ledpulse ()
 send a single calib pulse
 
virtual void clear_run ()
 reset counters for a new run
 
virtual void fc_setup_calib (int charge_to_l1a, bool enable_follow_l1a) override
 calib pulse setup
 
virtual void fc_get_setup_calib (int &charge_to_l1a, bool &enable_follow_l1a) override
 calib pulse setup (charge to l1a time)
 
virtual void fc_setup_led (int charge_to_l1a)
 led pulse setup
 
virtual int fc_get_setup_led ()
 led pulse setup (charge to l1a time)
 
virtual void fc_setup_link_reset (int bx)
 setup the link reset timing
 
virtual void fc_get_setup_link_reset (int &bx)
 setup the link reset timing
 
virtual void fc_enables_read (bool &all_l1a, bool &ext_l1a)
 check the enables for various trigger sources
 
virtual void fc_enables (bool all_l1a, bool ext_l1a)
 set the enables for various trigger sources
 
virtual void fc_link_read (bool &link_ready, bool &override_link_ready) override
 check the FC link status and whether external RORs are accepted even when the link is down
 
virtual void fc_override_link_ready (bool override_link_ready) override
 accept external RORs even when the FC link is down
 
virtual bool fc_get_masks (int &linkreset, int &l1a, int &calib, int &resets) override
 read the per-link FC command masks (diagnostic), bit i = optical link i
 
virtual void fc_set_masks (int linkreset, int l1a, int calib, int resets) override
 set the per-link FC command masks; a masked link does not get LINK_RESETs / L1As+PREL1As / CALPULSEs / EBR+CHIPSYNC+ECR+OCR, BCR always goes through
 
- Public Member Functions inherited from pflib::FastControl
virtual void standard_setup ()
 Do standard setup for FastControl interface e.g.
 
virtual void fc_setup_orbit_blinker (bool enable, int bx)
 setup the orbit blinker L1A
 
virtual void fc_get_orbit_blinker (bool &enable, int &bx)
 get the orbit blinker's settings
 
virtual void read_counters (int &spill_count, int &header_occ, int &event_count, int &vetoed_counter)
 read counters from the FC side
 
virtual int fc_timer_setup_read ()
 get the period in us for the timer trigger
 
virtual void fc_timer_setup (int usdelay)
 set the period in us for the timer trigger
 

Private Attributes

AxiLite axi_
 
AxiLite quad_
 
bool has_masks_
 

Detailed Description

Representation of FastControl controller.

Member Function Documentation

◆ bufferclear()

void pflib::bittware::BWFastControl::bufferclear ( )
virtual

send a buffer clear

Implements pflib::FastControl.

◆ chargepulse()

void pflib::bittware::BWFastControl::chargepulse ( )
virtual

send a single calib pulse

Implements pflib::FastControl.

◆ clear_run()

void pflib::bittware::BWFastControl::clear_run ( )
virtual

reset counters for a new run

Reimplemented from pflib::FastControl.

◆ fc_enables()

void pflib::bittware::BWFastControl::fc_enables ( bool all_l1a,
bool ext_l1a )
virtual

set the enables for various trigger sources

Reimplemented from pflib::FastControl.

◆ fc_enables_read()

void pflib::bittware::BWFastControl::fc_enables_read ( bool & all_l1a,
bool & ext_l1a )
virtual

check the enables for various trigger sources

Reimplemented from pflib::FastControl.

◆ fc_get_masks()

bool pflib::bittware::BWFastControl::fc_get_masks ( int & linkreset,
int & l1a,
int & calib,
int & resets )
overridevirtual

read the per-link FC command masks (diagnostic), bit i = optical link i

Returns
false if the firmware has no masks

Reimplemented from pflib::FastControl.

◆ fc_get_setup_calib()

void pflib::bittware::BWFastControl::fc_get_setup_calib ( int & charge_to_l1a,
bool & enable_follow_l1a )
overridevirtual

calib pulse setup (charge to l1a time)

Reimplemented from pflib::FastControl.

◆ fc_get_setup_led()

int pflib::bittware::BWFastControl::fc_get_setup_led ( )
virtual

led pulse setup (charge to l1a time)

Reimplemented from pflib::FastControl.

◆ fc_get_setup_link_reset()

void pflib::bittware::BWFastControl::fc_get_setup_link_reset ( int & bx)
virtual

setup the link reset timing

Reimplemented from pflib::FastControl.

◆ fc_link_read()

void pflib::bittware::BWFastControl::fc_link_read ( bool & link_ready,
bool & override_link_ready )
overridevirtual

check the FC link status and whether external RORs are accepted even when the link is down

Reimplemented from pflib::FastControl.

◆ fc_override_link_ready()

void pflib::bittware::BWFastControl::fc_override_link_ready ( bool override_link_ready)
overridevirtual

accept external RORs even when the FC link is down

Reimplemented from pflib::FastControl.

◆ fc_set_masks()

void pflib::bittware::BWFastControl::fc_set_masks ( int linkreset,
int l1a,
int calib,
int resets )
overridevirtual

set the per-link FC command masks; a masked link does not get LINK_RESETs / L1As+PREL1As / CALPULSEs / EBR+CHIPSYNC+ECR+OCR, BCR always goes through

Reimplemented from pflib::FastControl.

◆ fc_setup_calib()

void pflib::bittware::BWFastControl::fc_setup_calib ( int charge_to_l1a,
bool enable_follow_l1a )
overridevirtual

calib pulse setup

Parameters
[in]charge_to_l1anumber of bx separating the charge command from the following L1A command
[in]enable_follow_l1awhether to enable a following L1A command (true) or not (false)

You probably want to enable the following L1A command if you are doing chip-tuning. Disabling it is only helpful if you are testing the ability for some other infrastructure to make the trigger descision.

Reimplemented from pflib::FastControl.

◆ fc_setup_led()

void pflib::bittware::BWFastControl::fc_setup_led ( int charge_to_l1a)
virtual

led pulse setup

Reimplemented from pflib::FastControl.

◆ fc_setup_link_reset()

void pflib::bittware::BWFastControl::fc_setup_link_reset ( int bx)
virtual

setup the link reset timing

Reimplemented from pflib::FastControl.

◆ getCmdCounters()

std::map< std::string, uint32_t > pflib::bittware::BWFastControl::getCmdCounters ( )
virtual

Get the counters for all the different fast control commands.

Implements pflib::FastControl.

◆ getL1AperROR()

int pflib::bittware::BWFastControl::getL1AperROR ( )
virtual

get the number of L1A per ROR

Implements pflib::FastControl.

◆ ledpulse()

void pflib::bittware::BWFastControl::ledpulse ( )
virtual

send a single calib pulse

Implements pflib::FastControl.

◆ linkreset_econs()

void pflib::bittware::BWFastControl::linkreset_econs ( )
virtual

send a link reset to the ECONs

Reimplemented from pflib::FastControl.

◆ linkreset_rocs()

void pflib::bittware::BWFastControl::linkreset_rocs ( )
virtual

send a link reset

Implements pflib::FastControl.

◆ orbit_count_reset()

void pflib::bittware::BWFastControl::orbit_count_reset ( )
virtual

send a orbit count reset

Implements pflib::FastControl.

◆ resetCounters()

void pflib::bittware::BWFastControl::resetCounters ( )
virtual

clear the counters

Reimplemented from pflib::FastControl.

◆ sendL1A()

void pflib::bittware::BWFastControl::sendL1A ( )
virtual

send a single L1A

Implements pflib::FastControl.

◆ sendROR()

void pflib::bittware::BWFastControl::sendROR ( )
virtual

send a single ROR

Implements pflib::FastControl.

◆ setL1AperROR()

void pflib::bittware::BWFastControl::setL1AperROR ( int n)
virtual

set the number of L1A per ROR

Implements pflib::FastControl.


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