Enables direct memory access on the device. More...
Inherits IDeviceInterface.
Public Member Functions | |
| int | Read (long address) |
| Reads a four-byte integer from the device. | |
| void | Read (long address, IntPtr bufferPointer, long bufferLength) |
| Reads bufferLength bytes from the address into the memory at bufferPointer . | |
| void | Read (long address, byte[] buffer) |
| Reads memory into the given buffer . | |
| void | Write (long address, int value) |
| Writes the value to address . | |
| void | Write (long address, IntPtr bufferPointer, long bufferLength) |
| Writes the contents of the buffer at bufferPointer to the given address . | |
| void | Write (long address, byte[] buffer) |
| Write the contents of buffer to the given address . | |
Additional Inherited Members | |
Properties inherited from IDeviceInterface | |
| Device | Parent [get] |
| The Device this interface works on. | |
Enables direct memory access on the device.
| int Read | ( | long | address | ) |
Reads a four-byte integer from the device.
Here you do not need to take device endianness into account.
| address | Address to read four bytes from. |
| void Read | ( | long | address, |
| byte[] | buffer ) |
Reads memory into the given buffer .
Some transport layers have constraints in how many bytes can be read (i.e. max size and granularity). Also here device endianness needs to be taken into account if non-byte data is retrieved.
| address | Address to read from. |
| buffer | Array to save data into. |
| void Read | ( | long | address, |
| IntPtr | bufferPointer, | ||
| long | bufferLength ) |
Reads bufferLength bytes from the address into the memory at bufferPointer .
Some transport layers have constraints in how many bytes can be read (i.e. max size and granularity). Also here device endianness needs to be taken into account if non-byte data is retrieved.
| address | Address to read from. |
| bufferPointer | Pointer to write read data to. |
| bufferLength | Size of the memory chunk at bufferPointer . |
| void Write | ( | long | address, |
| byte[] | buffer ) |
Write the contents of buffer to the given address .
Some transport layers have constraints in how many bytes can be written (i.e. max size and granularity). Also here device endianness needs to be taken into account if non-byte data is retrieved.
| address | Address to write to. |
| buffer | Values to write to device. |
| void Write | ( | long | address, |
| int | value ) |
Writes the value to address .
| address | Address to write to. |
| value | Value to write to device. |
| void Write | ( | long | address, |
| IntPtr | bufferPointer, | ||
| long | bufferLength ) |
Writes the contents of the buffer at bufferPointer to the given address .
Some transport layers have constraints in how many bytes can be written (i.e. max size and granularity). Also here device endianness needs to be taken into account if non-byte data is retrieved.
| address | Address to write to. |
| bufferPointer | Memory buffer to write to device. |
| bufferLength | Number of bytes to write from bufferPointer . |