Reads from the dual-ported RAM of the TX board specified by handle.
#include txcpi.h
S16 cpi_read_dpr ( TX_HANDLE handle, S8 *buffer, U32 off, S16 len)
Argument |
Description |
handle |
TX handle number. |
buffer |
Pointer to a location to which the data is read. |
off |
Offset into the dual-ported RAM from which data is to be read. |
len |
Number of bytes to be read. |
Return value |
Description |
CPI_SUCCESS |
DPR successfully read into the buffer. |
CPI_ERROR |
Call cpi_get_last_error to obtain the error code. |
The read starts at off in the DPR and reads len number of bytes.
All dual-ported RAM is used for messaging and therefore should not be read directly. Do not use this function for normal data transfer situations.