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

#include <PixelShift.h>

Collaboration diagram for tcPixelShift:

Public Types

enum  teShiftDirection { eeLeft = 0, eeRight = 1 }
 

Public Member Functions

 tcPixelShift (uint32_t anBaseAddress)
 
 ~tcPixelShift ()
 
bool initialized ()
 
void reset (bool abReset)
 
teShiftDirection getShiftDirection (void)
 
uint8_t getShift (void)
 
bool setShift (teShiftDirection aeDir, uint8_t anShift)
 

Protected Attributes

bool mbInitialized
 
tcFPGARegister< uint32_t > maRegs
 

Member Enumeration Documentation

◆ teShiftDirection

Enumerator
eeLeft 
eeRight 

Constructor & Destructor Documentation

◆ tcPixelShift()

tcPixelShift::tcPixelShift ( uint32_t  anBaseAddress)

◆ ~tcPixelShift()

tcPixelShift::~tcPixelShift ( )

Member Function Documentation

◆ getShift()

uint8_t tcPixelShift::getShift ( void  )

Get the current shift amount.

Returns
shift amount (can be negative for right shifts)

◆ getShiftDirection()

tcPixelShift::teShiftDirection tcPixelShift::getShiftDirection ( void  )

Get the current shift direction

Returns
Shift direction

◆ initialized()

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

◆ reset()

void tcPixelShift::reset ( bool  abReset)

Set the reset bit.

Parameters
abReset- the state of the reset bit.

◆ setShift()

bool tcPixelShift::setShift ( teShiftDirection  aeDir,
uint8_t  anShift 
)

Set the shift amount

Parameters
directionDirection of shift
shiftNumber of bits to shift
Returns
false on error.

Member Data Documentation

◆ maRegs

tcFPGARegister<uint32_t> tcPixelShift::maRegs
protected

◆ mbInitialized

bool tcPixelShift::mbInitialized
protected

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