dgWriteMem.3p
845 Bytes
'\"macro stdmacro
.TH dgWriteMem 3p
.SH NAME
dgWriteMem\- writes to the target CPU's address space on the development system
.SH DEFINITION
Attempts to write nbytes to the target system memory address specified in
addr, using data from the buffer pointed to by buffer.
The function returns 1 if an error was encountered, zero otherwise.
In order to use this function, you must have first invoked
.I dgInitComm()
to set up the interface to the target system.
.SH C SPECIFICATION
.nf
int dgWriteMem(unsigned int addr, unsigned int nbytes, char *buffer)
.SH PARAMETERS
.nf
addr
points to the physical memory address to start writing to.
nbytes
gives the number of bytes to be written.
buffer
points to the buffer from which the data is read prior to each write.
.RS
.fi
.SH VALUE RETURNED
1 if an error occurred; 0 otherwise.