dgReadWord.3p
755 Bytes
'\"macro stdmacro
.TH dgReadWord 3p
.SH NAME
dgReadWord\- read from target CPU's address space on the development system
.SH DEFINITION
Reads an unsigned int (four bytes) 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 dgReadWord(unsigned int addr, unsigned int *word)
.SH PARAMETERS
.nf
addr
points to the physical memory address to start reading from.
word
points to the unsigned int into which the data is read.
.RS
.fi
.SH VALUE RETURNED
1 if an error occurred; 0 otherwise.