CDT I-BM API 1.0.0
Loading...
Searching...
No Matches
CdtBaseAPI Class Reference

Base class for managing the CDT Frontend nodes API. Derived classes should inherit from this. More...

#include <CdtBaseAPI.h>

Inheritance diagram for CdtBaseAPI:
Collaboration diagram for CdtBaseAPI:

Public Member Functions

 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.
 

Detailed Description

Base class for managing the CDT Frontend nodes API. Derived classes should inherit from this.

The CdtBaseAPI manages all basic parameters that all CDT equipment should inherit.

Constructor & Destructor Documentation

◆ CdtBaseAPI()

CdtBaseAPI::CdtBaseAPI ( RMMAPI * rmmApi,
int ring,
int node,
std::string name,
FENRegMap additional_reg_map )

Constructor for the Cdt class.

Initializes a new instance of the Cdt class. Calls base class FrontEndBase constructor.

Parameters
[in]rmmApiPointer to the RMMAPI instance used for communication and management of the RMM
[in]ringThe ring number.
[in]nodeThe node number.
[in]additional_reg_mapmap to add from derived classes. Can also be empty.
[in]nameThe name to identify the front-end instance.

Member Function Documentation

◆ configAcquireTime()

void CdtBaseAPI::configAcquireTime ( uint64_t cycles)

Sets the acquisition time. Executed inside configFE right before starting the acquisition.

Parameters
[in]cyclesnumber of cycles for measurement to last. If 0, measure indefinitely.

◆ isMeasRunning()

bool CdtBaseAPI::isMeasRunning ( )

Checks if the measurement is currently running.

Returns
True if measurement is active, false otherwise.

◆ measurementEnable()

void CdtBaseAPI::measurementEnable ( bool enable)

Enables or disables the measurement process.

Parameters
[in]enableSet to true to start measurement, false to stop it.

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