Spinnaker SDK C++
4.1.0.172
 
 

 
Loading...
Searching...
No Matches
CRegisterPortImpl Class Referenceabstract

Standard implementation for a port using a register based transport layer. More...

#include <RegisterPortImpl.h>

Inheritance diagram for CRegisterPortImpl:
CPortImpl

Public Member Functions

 CRegisterPortImpl (int MaxNumQuadlets=1, bool TransportLayerSwapsEndianess=false)
 Constructor.
 
virtual ~CRegisterPortImpl ()
 Destructor.
 
virtual EAccessMode GetAccessMode () const =0
 Get the access mode of the node.
 
virtual void ReadRegister (uint32_t *pRegisters, int64_t Address, int64_t Length)=0
 Reads an array of quadlets from the port.
 
virtual void WriteRegister (const uint32_t *pRegisters, int64_t Address, int64_t Length)=0
 Writes an array of quadlets to the port.
 
virtual void Read (void *pBuffer, int64_t Address, int64_t Length)
 Reads a chunk of bytes from the port.
 
virtual void Write (const void *pBuffer, int64_t Address, int64_t Length)
 Writes a chunk of bytes to the port.
 
virtual void SetPortImpl (IPort *pPort)
 Sets pointer the real port implementation; this function may called only once.
 
- Public Member Functions inherited from CPortImpl
 CPortImpl ()
 Constructor.
 
virtual ~CPortImpl ()
 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 SetPortImpl (IPort *pPort)
 Sets pointer the real port implementation; this function may called only once.
 
virtual EYesNo GetSwapEndianess ()
 Determines if the port adapter must perform an endianness swap.
 
virtual void Replay (IPortWriteList *pPortRecorder, bool Invalidate=true)
 sends the commands to the camera.
 
void InvalidateNode ()
 

Additional Inherited Members

- Protected Attributes inherited from CPortImpl
CNodePtr m_ptrPort
 Pointer to the node holding a reference to this implementation.
 

Detailed Description

Standard implementation for a port using a register based transport layer.

Constructor & Destructor Documentation

◆ CRegisterPortImpl()

CRegisterPortImpl ( int  MaxNumQuadlets = 1,
bool  TransportLayerSwapsEndianess = false 
)
inline

Constructor.

◆ ~CRegisterPortImpl()

virtual ~CRegisterPortImpl ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ GetAccessMode()

virtual EAccessMode GetAccessMode ( ) const
pure virtual

Get the access mode of the node.

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

Implements CPortImpl.

◆ Read()

virtual void Read ( void *  pBuffer,
int64_t  Address,
int64_t  Length 
)
inlinevirtual

Reads a chunk of bytes from the port.

Implements CPortImpl.

◆ ReadRegister()

virtual void ReadRegister ( uint32_t *  pRegisters,
int64_t  Address,
int64_t  Length 
)
pure virtual

Reads an array of quadlets from the port.

◆ SetPortImpl()

virtual void SetPortImpl ( IPort pPort)
inlinevirtual

Sets pointer the real port implementation; this function may called only once.

Reimplemented from CPortImpl.

◆ Write()

virtual void Write ( const void *  pBuffer,
int64_t  Address,
int64_t  Length 
)
inlinevirtual

Writes a chunk of bytes to the port.

Implements CPortImpl.

◆ WriteRegister()

virtual void WriteRegister ( const uint32_t *  pRegisters,
int64_t  Address,
int64_t  Length 
)
pure virtual

Writes an array of quadlets to the port.


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