Implements a register spaces based on a C++ struct. More...
#include <StructPort.h>
Public Member Functions | |
CTestPortStruct (int64_t BaseAddress=0) | |
virtual EAccessMode | GetAccessMode () const |
Get the access mode of the node. | |
virtual EInterfaceType | GetPrincipalInterfaceType () const |
Get the type of the main interface of a node. | |
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. | |
void | MemSet (const char FillValue) |
void | ResetStatistics () |
Resets the read/write statistics. | |
int64_t | GetNumReads () |
Returns the number of reads since lastReset Statistics. | |
int64_t | GetNumWrites () |
Returns the number of writes since lastReset Statistics. | |
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 () |
Protected Attributes | |
int64_t | m_NumReads |
Number of reads since last reset. | |
int64_t | m_NumWrites |
Number of writes since last reset. | |
int64_t | m_BaseAddress |
the base address used for the struct | |
Protected Attributes inherited from CPortImpl | |
CNodePtr | m_ptrPort |
Pointer to the node holding a reference to this implementation. | |
Implements a register spaces based on a C++ struct.
|
inline |
|
inlinevirtual |
Get the access mode of the node.
Implements CPortImpl.
|
inline |
Returns the number of reads since lastReset Statistics.
|
inline |
Returns the number of writes since lastReset Statistics.
|
inlinevirtual |
Get the type of the main interface of a node.
|
inline |
|
inlinevirtual |
Reads a chunk of bytes from the port.
Implements CPortImpl.
|
inline |
Resets the read/write statistics.
|
inlinevirtual |
Writes a chunk of bytes to the port.
Implements CPortImpl.
|
protected |
the base address used for the struct
|
protected |
Number of reads since last reset.
|
protected |
Number of writes since last reset.