pflib v3.0.0-rc1-29-g3a901ac
Pretty Fine HGCROC Interaction Library
All Classes Namespaces Files Functions Variables Typedefs Pages
pflib::Hcal Class Referenceabstract

representing a standard HCAL motherboard or a test system More...

#include <Hcal.h>

Inheritance diagram for pflib::Hcal:
[legend]
Collaboration diagram for pflib::Hcal:
[legend]

Public Member Functions

 Hcal (const std::vector< std::shared_ptr< I2C > > &roc_i2c)
 
int nrocs ()
 number of boards
 
ROC roc (int which, const std::string &roc_type_version="sipm_rocv3b")
 Get a ROC interface for the given HGCROC board.
 
virtual void hardResetROCs ()
 Get an I2C interface for the given HGCROC board's bias bus

 
uint32_t getFirmwareVersion ()
 Get the firmware version.
 
virtual void softResetROC (int which=-1)
 Generate a soft reset to a specific HGCROC board, -1 for all.
 
virtual GPIOgpio ()
 Get the GPIO object for debugging purposes.
 
virtual Elinkselinks ()=0
 get the Elinks object
 
virtual DAQdaq ()=0
 get the FastControl object
 

Protected Attributes

int nhgcroc_
 Number of HGCROC boards in this system.
 
std::unique_ptr< GPIOgpio_
 The GPIO interface.
 
std::vector< std::shared_ptr< I2C > > roc_i2c_
 The ROC I2C interfaces.
 

Detailed Description

representing a standard HCAL motherboard or a test system

Member Function Documentation

◆ daq()

virtual DAQ & pflib::Hcal::daq ( )
pure virtual

get the FastControl object

get the DAQ object

Implemented in pflib::HcalFiberless.

◆ elinks()

virtual Elinks & pflib::Hcal::elinks ( )
pure virtual

get the Elinks object

Implemented in pflib::HcalFiberless.

◆ hardResetROCs()

void pflib::Hcal::hardResetROCs ( )
virtual

Get an I2C interface for the given HGCROC board's bias bus

Generate a hard reset to all the HGCROC boards

Reimplemented in pflib::HcalFiberless.

◆ softResetROC()

void pflib::Hcal::softResetROC ( int which = -1)
virtual

Generate a soft reset to a specific HGCROC board, -1 for all.

Reimplemented in pflib::HcalFiberless.


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