GenApi 3.5.1
Public Member Functions | List of all members
CPortStackedImpl Class Referenceabstract

#include <PortStackedImpl.h>

Inherits IPortStackedConstruct, IPortStacked, and IPortReplay.

Public Member Functions

 CPortStackedImpl ()
 Constructor.
 
virtual ~CPortStackedImpl ()
 Destructor.
 
virtual EAccessMode GetAccessMode () const =0
 Get the access mode of the node.
 
virtual void Read (void *pBuffer, int64_t Address, int64_t Length)=0
 Reads a chunk of bytes from the port.
 
virtual void Write (const void *pBuffer, int64_t Address, int64_t Length)=0
 Writes a chunk of bytes to the port.
 
virtual void Write (PORT_REGISTER_STACK_ENTRY *pEntries, size_t numEntries)=0
 Writes a chunk of bytes to the port.
 
virtual void SetPortImpl (IPortStacked *pPort)
 Sets pointer the real port implementation; this function may called only once.
 
virtual EYesNo GetSwapEndianess ()
 Determines if the port adapter must perform an endianess swap.
 
virtual void Replay (IPortWriteList *pPortRecorder, bool Invalidate=true)
 sends the commands to the camera.
 

Detailed Description

\brief Standard implementation for a port

!

Member Function Documentation

◆ GetAccessMode()

virtual EAccessMode GetAccessMode ( ) const
pure virtual

Driver closed => NI, Driver open => RW, analysing a struct, RO

◆ Replay()

virtual void Replay ( IPortWriteList * pPortRecorder,
bool Invalidate = true )
virtual

the default implementation just walks the list and issues each command using the WriteRegister method. Depending on the capabilities of the transport layer the implementation can however use a special command which sends all register write commands as one package.