Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
MitySOMAM57XUtils Namespace Reference

Functions

template<class T >
int read_core_version (T &regs, struct coreversion *pdata)
 Fetch the MitySOM-AM57x standard core version data from the memory mapped FPAG registers. More...
 
void DumpVersion (std::string pretext, struct coreversion *pdata)
 Dump MitySOM-AM57X version data as a status INFO line. More...
 

Function Documentation

◆ DumpVersion()

void MitySOMAM57XUtils::DumpVersion ( std::string  pretext,
struct coreversion pdata 
)

Dump MitySOM-AM57X version data as a status INFO line.

Parameters
pretexttext to print on line before the version data (e.g., a label)
pdatathe version data

◆ read_core_version()

template<class T >
int MitySOMAM57XUtils::read_core_version ( T &  regs,
struct coreversion pdata 
)

Fetch the MitySOM-AM57x standard core version data from the memory mapped FPAG registers.

Template Parameters
TtcFPGARegister<uint16_t or uint32_t> class reference
Parameters
regsregisters for the core (version assumed at zero)
pdatapointer to the structure to fill in.
Returns
int non-zero on error.