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

#include <PollingInterruptThread.h>

Inheritance diagram for tcPollingInterruptThread:
Collaboration diagram for tcPollingInterruptThread:

Public Member Functions

 tcPollingInterruptThread (tcRAMStreamer *apStreamer)
 
virtual ~tcPollingInterruptThread ()
 
void setStreamer (tcRAMStreamer *apStreamer)
 
virtual void * run ()
 
void setEnable (bool abEnable)
 
- Public Member Functions inherited from tcThread
 tcThread ()
 
virtual ~tcThread ()
 
void join ()
 
virtual void start ()
 
virtual void stop ()
 
- Public Member Functions inherited from tcObservable
 tcObservable ()
 
void registerObserver (tcObserver *apObs)
 
void unregisterObserver (tcObserver *apObs)
 
void notifyChange (tsUpdate asMessage)
 

Additional Inherited Members

- Static Public Attributes inherited from tcThread
static const int HIGHEST_PRIORITY = -2
 
static const int HIGH_PRIORITY = -1
 
static const int NORMAL_PRIORITY = 0
 
static const int LOW_PRIORITY = 1
 
static const int LOWEST_PRIORITY = 2
 
- Protected Member Functions inherited from tcThread
void setPriority (int anRelativePriority)
 
- Protected Attributes inherited from tcThread
bool mbKillThread
 

Detailed Description

The tcPollingInterruptThread class provides a thread that monitors /dev/uio0 for interrupts from a StreamToSdramRaster or StreamToSdramCIS2521 FPGA DMA core. This is the primary delivery mechanism of frames from a MityCAM FPGA pipeline to DDR for the ARM to process / transmit over ARM managed interfaces (e.g., ethernet, or queued transmission to USB 3.0, etc.).

Constructor & Destructor Documentation

◆ tcPollingInterruptThread()

tcPollingInterruptThread::tcPollingInterruptThread ( tcRAMStreamer apStreamer)

Constructor.

Parameters
[in]apStreamerpointer to constructed/initialized tcRAMStreamer management class

◆ ~tcPollingInterruptThread()

tcPollingInterruptThread::~tcPollingInterruptThread ( )
virtual

Member Function Documentation

◆ run()

void * tcPollingInterruptThread::run ( )
virtual

The run() method is the main thread for monitoring the /dev/uio0 interrupt driver for the attached StreamToSDRAMRaster or StreamToSDRAMCIS2521 core.

Todo:
the /dev/uio0 path is currently hardcoded, it should be passed to the class constructor in order to support other paths in the event multiple uio modules are installed and the streamer is not on uio0.

Implements tcThread.

◆ setEnable()

void tcPollingInterruptThread::setEnable ( bool  abEnable)

◆ setStreamer()

void tcPollingInterruptThread::setStreamer ( tcRAMStreamer apStreamer)

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