cpi_write_dpr

Writes to the dual-ported RAM of the CP indicated by the specified handle.

Prototype

#include txcpi.h

S16 cpi_write_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 written.

off

Offset into the dual-ported RAM where data is written.

len

Number of bytes to be written.


Return values

Return value

Description

CPI_SUCCESS

Provided buffer successfully written to DPR.

CPI_ERROR

Call cpi_get_last_error to obtain the error code.


Details

cpi_write_dpr writes from buffer for len number of bytes starting at off in the DPR.

All dual-ported RAM is used for messaging and should not be written directly. Do not use this function for normal data transfer situations.