dgReadMem.3p
781 Bytes
'\"macro stdmacro
.TH dgReadMem 3p
.SH NAME
dgReadMem\- read from target CPU's address space on the development system
.SH DEFINITION
Reads from the memory of the target system. The function returns 1 if an error
was encountered, zero otherwise. In order to use this function, you must have
first invoked dgInitComm() to set up the communication path from the host
side diagnostic to the target system (or simulator).
.SH C SPECIFICATION
.nf
int dgReadMem(unsigned int addr, unsigned int nbytes, char *buffer)
.SH PARAMETERS
.nf
addr
points to the physical memory address to start reading from.
nbytes
gives the number of bytes to read.
buffer
points to the buffer into which the data is read.
.RS
.fi
.SH VALUE RETURNED
1 if an error occurred; 0 otherwise.