CVB.Net 14.0
RegPort Class Reference

Register port implementation. More...

Inherits IRegPort.

Public Member Functions

 RegPort (Device device)
 Ctor. More...
 
int Read (long address)
 Reads DWORD. More...
 
void Read (long address, IntPtr bufferPointer, long bufferLength)
 Reads into the buffer at bufferPointer . More...
 
unsafe void Read (long address, byte[] buffer)
 Reads into buffer . More...
 
void Write (long address, int value)
 Write the value to address . More...
 
unsafe void Write (long address, byte[] buffer)
 Writes the buffer to address . More...
 
void Write (long address, IntPtr bufferPointer, long bufferLength)
 Writes the buffer at bufferPointer to address . More...
 
int Read (long address)
 Reads a four-byte integer from the device. More...
 
void Read (long address, IntPtr bufferPointer, long bufferLength)
 Reads bufferLength bytes from the address into the memory at bufferPointer . More...
 
void Read (long address, byte[] buffer)
 Reads memory into the given buffer . More...
 
void Write (long address, int value)
 Writes the value to address . More...
 
void Write (long address, IntPtr bufferPointer, long bufferLength)
 Writes the contents of the buffer at bufferPointer to the given address . More...
 
void Write (long address, byte[] buffer)
 Write the contents of buffer to the given address . More...
 

Properties

Device Parent [get]
 The parent of this interface.
 
- Properties inherited from IDeviceInterface
Device Parent [get]
 The Device this interface works on.
 

Detailed Description

Register port implementation.

Constructor & Destructor Documentation

◆ RegPort()

RegPort ( Device  device)

Ctor.

Parameters
deviceInterface device.

Member Function Documentation

◆ Read() [1/3]

int Read ( long  address)

Reads DWORD.

Parameters
addressAddress to read from.
Returns

Implements IRegPort.

◆ Read() [2/3]

unsafe void Read ( long  address,
byte[]  buffer 
)

Reads into buffer .

Parameters
addressAddress to read from.
bufferBuffer to write into.

Implements IRegPort.

◆ Read() [3/3]

void Read ( long  address,
IntPtr  bufferPointer,
long  bufferLength 
)

Reads into the buffer at bufferPointer .

Parameters
addressAddress to read from.
bufferPointerAddress of buffer.
bufferLengthSize of buffer.

Implements IRegPort.

◆ Write() [1/3]

unsafe void Write ( long  address,
byte[]  buffer 
)

Writes the buffer to address .

Parameters
addressAddress to write to.
bufferBuffer to write.

Implements IRegPort.

◆ Write() [2/3]

void Write ( long  address,
int  value 
)

Write the value to address .

Parameters
addressAddress to write to.
valueValue to write.

Implements IRegPort.

◆ Write() [3/3]

void Write ( long  address,
IntPtr  bufferPointer,
long  bufferLength 
)

Writes the buffer at bufferPointer to address .

Parameters
addressAddress to write to.
bufferPointerAddress of buffer.
bufferLengthSize of buffer.

Implements IRegPort.