Implements a register spaces based on a C++ struct. More...
#include <StructPort.h>
Public Member Functions | |
CTestPortStruct (int64_t BaseAddress=0) | |
virtual GENAPI_NAMESPACE::EAccessMode | GetAccessMode () const |
Get the access mode of the node. More... | |
int64_t | GetNumReads () |
Returns the number of reads since lastReset Statistics. More... | |
int64_t | GetNumWrites () |
Returns the number of writes since lastReset Statistics. More... | |
virtual GENAPI_NAMESPACE::EInterfaceType | GetPrincipalInterfaceType () const |
Get the type of the main interface of a node. More... | |
void | MemSet (const char FillValue) |
virtual void | Read (void *pBuffer, int64_t Address, int64_t Length) |
Reads a chunk of bytes from the port. More... | |
void | ResetStatistics () |
Resets the read/write statistics. More... | |
virtual void | Write (const void *pBuffer, int64_t Address, int64_t Length) |
Writes a chunk of bytes to the port. More... | |
Public Member Functions inherited from GENAPI_NAMESPACE::CPortImpl | |
CPortImpl () | |
Constructor. More... | |
virtual EYesNo | GetSwapEndianess () |
Determines if the port adapter must perform an endianess swap. More... | |
void | InvalidateNode () |
virtual void | Replay (IPortWriteList *pPortRecorder, bool Invalidate=true) |
sends the commands to the camera. More... | |
virtual void | SetPortImpl (IPort *pPort) |
Sets pointer the real port implementation; this function may called only once. More... | |
virtual | ~CPortImpl () |
Destructor. More... | |
Protected Attributes | |
int64_t | m_BaseAddress |
the base address used for the struct More... | |
int64_t | m_NumReads |
Number of reads since last reset. More... | |
int64_t | m_NumWrites |
Number of writes since last reset. More... | |
Implements a register spaces based on a C++ struct.
Definition at line 42 of file StructPort.h.
|
inline |
Definition at line 45 of file StructPort.h.
|
inlinevirtual |
Get the access mode of the node.
Implements GENAPI_NAMESPACE::CPortImpl.
Definition at line 57 of file StructPort.h.
|
inline |
Returns the number of reads since lastReset Statistics.
Definition at line 117 of file StructPort.h.
|
inline |
Returns the number of writes since lastReset Statistics.
Definition at line 123 of file StructPort.h.
|
inlinevirtual |
Get the type of the main interface of a node.
Definition at line 63 of file StructPort.h.
|
inline |
Definition at line 100 of file StructPort.h.
|
inlinevirtual |
Reads a chunk of bytes from the port.
Implements GENAPI_NAMESPACE::CPortImpl.
Definition at line 73 of file StructPort.h.
|
inline |
Resets the read/write statistics.
Definition at line 110 of file StructPort.h.
|
inlinevirtual |
Writes a chunk of bytes to the port.
Implements GENAPI_NAMESPACE::CPortImpl.
Definition at line 85 of file StructPort.h.
|
protected |
the base address used for the struct
Definition at line 136 of file StructPort.h.
|
protected |
Number of reads since last reset.
Definition at line 130 of file StructPort.h.
|
protected |
Number of writes since last reset.
Definition at line 133 of file StructPort.h.