pxar
 All Classes Namespaces Functions Variables Typedefs Friends
Public Member Functions | Friends | List of all members
pxar::dut Class Reference

Public Member Functions

 dut ()
 
void info ()
 
size_t getNEnabledPixels (uint8_t rocid)
 
size_t getNEnabledPixels ()
 
size_t getNMaskedPixels (uint8_t rocid)
 
size_t getNMaskedPixels ()
 
size_t getNEnabledTbms ()
 
size_t getNTbms ()
 
std::string getTbmType ()
 
size_t getNEnabledRocs ()
 
size_t getNRocs ()
 
std::string getRocType ()
 
std::vector< pixelConfiggetEnabledPixels (size_t rocid)
 
std::vector< pixelConfiggetEnabledPixels ()
 
std::vector< pixelConfiggetMaskedPixels (size_t rocid)
 
std::vector< pixelConfiggetMaskedPixels ()
 
std::vector< rocConfiggetEnabledRocs ()
 
std::vector< uint8_t > getEnabledRocIDs ()
 
std::vector< uint8_t > getEnabledRocI2Caddr ()
 
std::vector< uint8_t > getRocI2Caddr ()
 
std::vector< tbmConfiggetEnabledTbms ()
 
bool getPixelEnabled (uint8_t column, uint8_t row)
 
bool getAllPixelEnable ()
 
bool getModuleEnable ()
 
pixelConfig getPixelConfig (size_t rocid, uint8_t column, uint8_t row)
 
uint8_t getDAC (size_t rocId, std::string dacName)
 
std::vector< std::pair
< std::string, uint8_t > > 
getDACs (size_t rocId)
 
std::vector< std::pair
< std::string, uint8_t > > 
getTbmDACs (size_t tbmId)
 
void printDACs (size_t rocId)
 
void setROCEnable (size_t rocId, bool enable)
 
void setTBMEnable (size_t tbmId, bool enable)
 
void testPixel (uint8_t column, uint8_t row, bool enable)
 
void testPixel (uint8_t column, uint8_t row, bool enable, uint8_t rocid)
 
void maskPixel (uint8_t column, uint8_t row, bool mask)
 
void maskPixel (uint8_t column, uint8_t row, bool mask, uint8_t rocid)
 
void testAllPixels (bool enable)
 
void testAllPixels (bool enable, uint8_t rocid)
 
void maskAllPixels (bool mask, uint8_t rocid)
 
void maskAllPixels (bool mask)
 
bool updateTrimBits (std::vector< pixelConfig > trimming, uint8_t rocid)
 
bool updateTrimBits (uint8_t column, uint8_t row, uint8_t trim, uint8_t rocid)
 
bool updateTrimBits (pixelConfig trim, uint8_t rocid)
 
bool status ()
 

Friends

class pxarCore
 

Detailed Description

Definition at line 879 of file api.h.

Constructor & Destructor Documentation

pxar::dut::dut ( )
inline

Default DUT constructor

Definition at line 890 of file api.h.

Member Function Documentation

bool dut::getAllPixelEnable ( )

Function to check if all pixels on all ROCs are enabled:

Definition at line 271 of file dut.cc.

uint8_t dut::getDAC ( size_t  rocId,
std::string  dacName 
)

Function to read the current value from a DAC on ROC rocId

Definition at line 314 of file dut.cc.

std::vector< std::pair< std::string, uint8_t > > dut::getDACs ( size_t  rocId)

Function to read current values from all DAC on ROC rocId

Definition at line 331 of file dut.cc.

std::vector< pixelConfig > dut::getEnabledPixels ( size_t  rocid)

Function returning the enabled pixels configs for a specific ROC:

Definition at line 124 of file dut.cc.

std::vector< pixelConfig > dut::getEnabledPixels ( )

Function returning the enabled pixels configs for all ROCs:

Definition at line 138 of file dut.cc.

std::vector< uint8_t > dut::getEnabledRocI2Caddr ( )

Function returning the I2C addresses of all enabled ROCs in a uint8_t vector:

Definition at line 227 of file dut.cc.

std::vector< uint8_t > dut::getEnabledRocIDs ( )

Function returning the Ids of all enabled ROCs in a uint8_t vector:

Definition at line 214 of file dut.cc.

std::vector< rocConfig > dut::getEnabledRocs ( )

Function returning the enabled ROC configs

Definition at line 204 of file dut.cc.

std::vector< tbmConfig > dut::getEnabledTbms ( )

Function returning the enabled TBM configs

Definition at line 253 of file dut.cc.

std::vector< pixelConfig > dut::getMaskedPixels ( size_t  rocid)

Function returning all masked pixels configs for a specific ROC:

Definition at line 155 of file dut.cc.

std::vector< pixelConfig > dut::getMaskedPixels ( )

Function returning all masked pixels configs for all ROCs:

Definition at line 169 of file dut.cc.

bool dut::getModuleEnable ( )

Function to check if all ROCs of a module are enabled:

Definition at line 284 of file dut.cc.

size_t dut::getNEnabledPixels ( uint8_t  rocid)

Function returning the number of enabled pixels on a specific ROC:

Definition at line 44 of file dut.cc.

size_t dut::getNEnabledPixels ( )

Function returning the number of enabled pixels on all ROCs:

Definition at line 49 of file dut.cc.

size_t dut::getNEnabledRocs ( )

Function returning the number of enabled ROCs:

Definition at line 74 of file dut.cc.

size_t dut::getNEnabledTbms ( )

Function returning the number of enabled TBMs:

Definition at line 109 of file dut.cc.

size_t dut::getNMaskedPixels ( uint8_t  rocid)

Function returning the number of masked pixels on a specific ROC:

Definition at line 59 of file dut.cc.

size_t dut::getNMaskedPixels ( )

Function returning the number of masked pixels on all ROCs:

Definition at line 64 of file dut.cc.

size_t dut::getNRocs ( )

Function returning the number of ROCs:

Definition at line 84 of file dut.cc.

size_t dut::getNTbms ( )

Function returning the number of TBMs:

Definition at line 119 of file dut.cc.

pixelConfig dut::getPixelConfig ( size_t  rocid,
uint8_t  column,
uint8_t  row 
)

Function returning the configuration of a given pixel:

Definition at line 298 of file dut.cc.

bool dut::getPixelEnabled ( uint8_t  column,
uint8_t  row 
)

Function returning the status of a given pixel:

Definition at line 263 of file dut.cc.

std::vector< uint8_t > dut::getRocI2Caddr ( )

Function returning the I2C addresses of all ROCs in a uint8_t vector:

Definition at line 240 of file dut.cc.

std::string dut::getRocType ( )

Function returning the ROC type programmed:

Definition at line 88 of file dut.cc.

std::vector< std::pair< std::string, uint8_t > > dut::getTbmDACs ( size_t  tbmId)

Function to read current values from all DAC on TBM tbmId

Definition at line 348 of file dut.cc.

std::string dut::getTbmType ( )

Function returning the TBM type programmed:

Definition at line 99 of file dut.cc.

void dut::info ( )

Info function printing a listing of the current DUT objects and their states

Definition at line 16 of file dut.cc.

void dut::maskAllPixels ( bool  mask,
uint8_t  rocid 
)

Function to enable all pixels on a specific ROC "rocid":

Definition at line 481 of file dut.cc.

void dut::maskAllPixels ( bool  mask)

Function to enable all pixels on all ROCs:

Definition at line 467 of file dut.cc.

void dut::maskPixel ( uint8_t  column,
uint8_t  row,
bool  mask 
)

Function to mask the given pixel on all ROCs:

Definition at line 397 of file dut.cc.

void dut::maskPixel ( uint8_t  column,
uint8_t  row,
bool  mask,
uint8_t  rocid 
)

Function to mask the given pixel on a specific ROC

Definition at line 416 of file dut.cc.

void dut::printDACs ( size_t  rocId)

Helper function to print current values from all DAC on ROC rocId to stdout

Definition at line 366 of file dut.cc.

void dut::setROCEnable ( size_t  rocId,
bool  enable 
)

SET functions to allow enabling and disabling from the outside Function to enable the given ROC:

Definition at line 381 of file dut.cc.

void dut::setTBMEnable ( size_t  tbmId,
bool  enable 
)

Function to enable the given TBM:

Definition at line 389 of file dut.cc.

bool dut::status ( )

Function to check the status of the DUT

Definition at line 571 of file dut.cc.

void dut::testAllPixels ( bool  enable)

Function to enable all pixels on all ROCs:

Definition at line 503 of file dut.cc.

void dut::testAllPixels ( bool  enable,
uint8_t  rocid 
)

Function to enable all pixels on a specific ROC "rocid":

Definition at line 492 of file dut.cc.

void dut::testPixel ( uint8_t  column,
uint8_t  row,
bool  enable 
)

Function to enable the given pixel on all ROCs:

Definition at line 432 of file dut.cc.

void dut::testPixel ( uint8_t  column,
uint8_t  row,
bool  enable,
uint8_t  rocid 
)

Function to enable the given pixel on the specified ROC:

Definition at line 451 of file dut.cc.

bool dut::updateTrimBits ( std::vector< pixelConfig trimming,
uint8_t  rocid 
)

Function to update all trim bits of a given ROC.

Definition at line 551 of file dut.cc.

bool dut::updateTrimBits ( uint8_t  column,
uint8_t  row,
uint8_t  trim,
uint8_t  rocid 
)

Function to update trim bits for one particular pixel on a given ROC.

Definition at line 534 of file dut.cc.

bool dut::updateTrimBits ( pixelConfig  trim,
uint8_t  rocid 
)

Function to update trim bits for one particular pixel on a given ROC.

Definition at line 517 of file dut.cc.

Friends And Related Function Documentation

friend class pxarCore
friend

Allow the API class to access private members of the DUT - noone else should be able to access them!

Definition at line 884 of file api.h.


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