CDT I-BM API 1.0.0
Loading...
Searching...
No Matches
CdtCDRE Class Reference
Inheritance diagram for CdtCDRE:
Collaboration diagram for CdtCDRE:

Public Types

using CipixPair = std::pair<std::string, uint8_t>
 
using CipixVector = std::vector<CipixPair>
 
using FwMap = std::map<std::string, FwInfo>
 

Public Member Functions

 CdtCDRE (std::string name)
 
uint8_t getMaxCipix () const
 
std::string getFwAlias () const
 
void fetchFwInfo ()
 
RMMResult cipixRegRead (int cipixIdx, std::string reg)
 Reads a value from a cipix register.
 
RMMResult cipixRegWrite (int cipixIdx, std::string, uint8_t wdata)
 Writes a value to a cipix register and returns the read value.
 
- Public Member Functions inherited from CdtBaseAPI
 CdtBaseAPI (RMMAPI *rmmApi, int ring, int node, std::string name, FENRegMap additional_reg_map)
 Constructor for the Cdt class.
 
void configAcquireTime (uint64_t cycles)
 Sets the acquisition time. Executed inside configFE right before starting the acquisition.
 
void measurementEnable (bool enable)
 Enables or disables the measurement process.
 
bool isMeasRunning ()
 Checks if the measurement is currently running.
 

Static Public Member Functions

static const CipixVector & getCipixMap ()
 

Protected Attributes

uint8_t maxCipix
 
std::string fwAlias = "Undefined"
 

Member Function Documentation

◆ cipixRegRead()

RMMResult CdtCDRE::cipixRegRead ( int cipixIdx,
std::string reg )

Reads a value from a cipix register.

Parameters
[in]cipixIdxIndex of the cipix board to read from.
[in]regThe name of the cipix register to read.
Returns
RMMResult A structure containing the bottom 8 bits of the data read from the register and action status.

◆ cipixRegWrite()

RMMResult CdtCDRE::cipixRegWrite ( int cipixIdx,
std::string reg,
uint8_t wdata )

Writes a value to a cipix register and returns the read value.

This function performs a write operation on a cipix register. After the write operation, it immediately reads the value from the register and returns it.

Parameters
[in]cipixIdxIndex of the cipix board to write to.
[in]regThe name of the cipix register to write to.
[in]wdataThe data to be written to the register.
Returns
RMMResult.
See also
RMMResult

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