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

#include <MemoryIO.h>

Inheritance diagram for tcMemoryIO:
Collaboration diagram for tcMemoryIO:

Public Member Functions

 tcMemoryIO (SocCamera::tcSensorBoard *apSensor)
 
virtual ~tcMemoryIO ()
 
void registerWatcher (tcMemoryIOWatcher *apWatcher)
 
void unregisterWatcher (tcMemoryIOWatcher *apWatcher)
 
virtual SocCamera::teNackCode capture (tsCaptureRequest asRequest)
 start capture More...
 
virtual SocCamera::teNackCode setBpp (SocCamera::teBPPMode aeBppMode)
 
virtual void sendUpdate (tsNewFrameMsg *apMsg)
 
void issueWriteError (SocCamera::teNackCode aeError)
 issueWriteError notify observers of error condition More...
 
uint32_t getCurrentFrameIndex ()
 
bool getCheckFrameIndex () const
 
void setCheckFrameIndex (bool abCheckFrameIndex)
 
bool getResyncOnFrameMisMatch () const
 
void setResyncOnFrameMisMatch (bool abResyncOnFrameMisMatch)
 
- Public Member Functions inherited from tcIOChannel
 tcIOChannel (SocCamera::teIOChannels aeIOId, SocCamera::tcSensorBoard *apSensor)
 Construct a new tcIOChannel::tcIOChannel object. More...
 
virtual ~tcIOChannel ()
 
virtual void initialized ()
 
SocCamera::teBPPMode getBpp ()
 
virtual void processUpdate (tsNewFrameMsg *apMsg)
 
void setEnable (bool abEnable)
 
tcImagegrabImage ()
 
SocCamera::teIOChannels id ()
 
virtual void invalidateCache (void *apMem, size_t anSize)
 
virtual void * memory ()
 
- Public Member Functions inherited from tcIOCallback
 tcIOCallback ()
 
virtual ~tcIOCallback ()
 

Additional Inherited Members

- Protected Member Functions inherited from tcIOChannel
void invalidateCache (tsNewFrameMsg *apMsg)
 
void invalidateCache ()
 
void Report (const char *fmt,...)
 This method routes text to stderr. More...
 
void ReportError (const char *fmt,...)
 
- Protected Attributes inherited from tcIOChannel
std::string m_name
 
SocCamera::teIOChannels meIOId
 
SocCamera::tcSensorBoardmpSensor
 
SocCamera::teBPPMode meBppMode
 
int64 mnImgCount
 
std::list< tsNewFrameMsgmlUpdates
 
tcMutex mcMutex
 
tcCondition mcCond
 
void * mpMemory
 
tcIOChannelThread mcThread
 
tsNewFrameMsg msLastUpdate
 
bool mbSimRAM
 
- Static Protected Attributes inherited from tcIOChannel
static uint32 CAPTURE_START_ADDR = (0x20000000)
 
static uint32 MEMORY_BLOCK_SIZE = (0x20000000)
 
static bool CMEM_USED = (true)
 
static bool MMAP_USED = (true)
 

Detailed Description

This class is used to control output to a filesystem. It has facilities to change filename, path and other options.

Constructor & Destructor Documentation

◆ tcMemoryIO()

tcMemoryIO::tcMemoryIO ( SocCamera::tcSensorBoard apSensor)

◆ ~tcMemoryIO()

tcMemoryIO::~tcMemoryIO ( )
virtual

Member Function Documentation

◆ capture()

teNackCode tcMemoryIO::capture ( tsCaptureRequest  asRequest)
virtual

start capture

Start a capture with this request. If the requests number of frames is tsNewRequest::CANCEL_CAPTURE then the current capture is stopped if possible.

Stopping this and starting causes the frame index to reset. This

Parameters
asRequest- the request for capture being made.
Returns
a nack code if the capture parameters are inelligable for this IOChannel.
Parameters
asRequest
Returns
teNackCode

Implements tcIOChannel.

◆ getCheckFrameIndex()

bool tcMemoryIO::getCheckFrameIndex ( ) const
inline

◆ getCurrentFrameIndex()

uint32_t tcMemoryIO::getCurrentFrameIndex ( )

Returns the current frame index number.

Returns
the value of the current frame index.

◆ getResyncOnFrameMisMatch()

bool tcMemoryIO::getResyncOnFrameMisMatch ( ) const
inline

◆ issueWriteError()

void tcMemoryIO::issueWriteError ( SocCamera::teNackCode  aeError)

issueWriteError notify observers of error condition

tcMemoryIO::issueWriteError

Parameters
aeError

◆ registerWatcher()

void tcMemoryIO::registerWatcher ( tcMemoryIOWatcher apWatcher)

Register a callback which is executed when a file is saved and closed.

◆ sendUpdate()

void tcMemoryIO::sendUpdate ( tsNewFrameMsg apMsg)
virtual

Process the update

Parameters
apMsg

Implements tcIOChannel.

◆ setBpp()

teNackCode tcMemoryIO::setBpp ( SocCamera::teBPPMode  aeBppMode)
virtual

Sets the bits-per-pixel output of the camera.

Parameters
aeBppMode- the bits per pixel mode.
Returns
the nack code for the operation

Implements tcIOChannel.

◆ setCheckFrameIndex()

void tcMemoryIO::setCheckFrameIndex ( bool  abCheckFrameIndex)
inline

◆ setResyncOnFrameMisMatch()

void tcMemoryIO::setResyncOnFrameMisMatch ( bool  abResyncOnFrameMisMatch)
inline

◆ unregisterWatcher()

void tcMemoryIO::unregisterWatcher ( tcMemoryIOWatcher apWatcher)

Unregister a callback.


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