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

Public Types

using CipixMap = std::unordered_map<std::string, uint8_t>
 
using FwMap = std::map<std::string, FwInfo>
 

Public Member Functions

 CdtCipix (std::string name)
 
uint8_t getMaxCipix () 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 CdtBaseBMAPI
 CdtBaseBMAPI (RMMAPI *rmmApi, int ring, int node, std::string name, FENRegMap additional_reg_map)
 Constructor for the CdtBm 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.
 

Protected Attributes

uint8_t maxCipix
 

Member Function Documentation

◆ cipixRegRead()

RMMResult CdtCipix::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 CdtCipix::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: