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

#include <Csi2DphyToMityCam.h>

Collaboration diagram for tcCsi2DphyToMityCam:

Public Member Functions

 tcCsi2DphyToMityCam (int anAddress)
 
virtual ~tcCsi2DphyToMityCam ()
 
bool initialized ()
 
int reset (bool en)
 
int setNumRows (uint16_t numRows)
 
int setNumCols (uint16_t numCols)
 
int getCRCErrors (uint32_t &ErrorCount) const
 
int resetCRCErrors (void)
 

Protected Attributes

tcFPGARegister< uint32_t > mcReg
 

Detailed Description

The tcCsi2DphyToMityCam class manages the conv_5x5 MityCAM IP core, which performs a 5x5 convolution using an X/Y separable kernel. Note the weights must be between 0.0f and 1.9f.

Constructor & Destructor Documentation

◆ tcCsi2DphyToMityCam()

tcCsi2DphyToMityCam::tcCsi2DphyToMityCam ( int  anBaseAddress)

Class constructor.

Parameters
anBaseAddressPhysical Address of the core, typically in the 0xFF20xxxx range

◆ ~tcCsi2DphyToMityCam()

tcCsi2DphyToMityCam::~tcCsi2DphyToMityCam ( )
virtual

Class Destructor

Member Function Documentation

◆ getCRCErrors()

int tcCsi2DphyToMityCam::getCRCErrors ( uint32_t &  ErrorCount) const

Fetch the number of MIPI CRC errors detected since last reset

Parameters
ErrorCountlocation to fill count value
Returns
non-zero on error

◆ initialized()

bool tcCsi2DphyToMityCam::initialized ( )
Returns
true when unit is correctly initialized

◆ reset()

int tcCsi2DphyToMityCam::reset ( bool  en)

◆ resetCRCErrors()

int tcCsi2DphyToMityCam::resetCRCErrors ( void  )

resets the MIPI CRC error counter

Returns
non-zero on error

◆ setNumCols()

int tcCsi2DphyToMityCam::setNumCols ( uint16_t  numCols)

set the number of expected columns per frame from the sensor

Parameters
numRowsnumber of columns expected
Returns
non-zero on error

◆ setNumRows()

int tcCsi2DphyToMityCam::setNumRows ( uint16_t  numRows)

set the number of expected rows per frame from the sensor

Parameters
numRowsnumber of rows expected
Returns
non-zero on error

Member Data Documentation

◆ mcReg

tcFPGARegister<uint32_t> tcCsi2DphyToMityCam::mcReg
protected

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