Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
tcClockCheck Class Reference

#include <ClockCheck.h>

Collaboration diagram for tcClockCheck:

Public Member Functions

 tcClockCheck (int anBaseAddress)
 
 ~tcClockCheck ()
 
bool initialized ()
 
bool set_div (int offset, unsigned int div)
 
bool get_clock (int offset, float &rate_mhz)
 

Protected Attributes

tcFPGARegister< unsigned int > mhClockCheck
 

Constructor & Destructor Documentation

◆ tcClockCheck()

tcClockCheck::tcClockCheck ( int  anBaseAddress)

◆ ~tcClockCheck()

tcClockCheck::~tcClockCheck ( )

Member Function Documentation

◆ get_clock()

bool tcClockCheck::get_clock ( int  offset,
float &  rate_mhz 
)

Get the parameters

Parameters
offsetindex (zero based) of clock to check
rate_mhzdetected clock rate, in MHz
Returns
true on success

◆ initialized()

bool tcClockCheck::initialized ( )
Returns
True if the register is initialized.

◆ set_div()

bool tcClockCheck::set_div ( int  offset,
unsigned int  div 
)

Set the clock divisor.

Parameters
offsetindex (zero based) of clock to divide
divthe divisor to set; in practice this is divisor minus 1
Returns
true on success

Member Data Documentation

◆ mhClockCheck

tcFPGARegister<unsigned int> tcClockCheck::mhClockCheck
protected

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