
getmem, putmem
Host Software
4-24
Host communications target routines
The communications kernel resident in the ’C31 assumes that data transfers
to and from the host are organized into packets as shown in Figure 4–5 on
page 4-8. The target.cpp file includes routines that manipulate data transmis-
sions between the host and the ’C31 into this packet structure. These routines
read and write blocks of data from the ’C31 memory, send commands to the
’C31, perform context save and restores, and provide debugging commands,
such as run, single-step, and halt.
Get Memory
getmem
Syntax
MSGS getmem (ulong addr, ulong length, ulong *data)
Description
The getmem routine reads a block of data from the ’C31 memory.
Arguments
addr
Address of the data to be read
length Size of memory block to read
data
Pointer to host memory address in which to place data read from the
’C31
Return Value
NO_ERR
Block read completed successfully
RECV_ERR Failed reception
XMIT_ERR
Failed transmission
Put Memory
putmem
Syntax
MSGS putmem (ulong addr, ulong length, ulong *data)
Description
The putmem routine writes a block of data into ’C31 memory.
Arguments
addr
Starting address to write the data to
length Size of memory block to write
data
Pointer to host memory address to read data from. The data is then
placed into ’C31 memory.
Return Value
NO_ERR
Block write completed successfully
XMIT_ERR
Failed transmission
Содержание TMS320C3 Series
Страница 1: ...TMS320C3x DSP Starter Kit User s Guide...
Страница 18: ...1 4...
Страница 28: ...2 10...
Страница 82: ...5 18...
Страница 140: ...Communications Kernel Source Code A 12...
Страница 145: ...Schematics B 5 DSK Circuit Board Dimensions and Schematic Diagrams...
Страница 146: ...Schematics B 6...
Страница 147: ...Schematics B 7 DSK Circuit Board Dimensions and Schematic Diagrams...
Страница 148: ...Schematics B 8...
Страница 149: ...Schematics B 9 DSK Circuit Board Dimensions and Schematic Diagrams...
Страница 150: ...Schematics B 10...
Страница 154: ...B 14...
Страница 160: ...C 6...
Страница 166: ...Index 6...