Japanese
PROGRAMMER'S GUIDEDSP I/F library
Back | ■
DSP I/F library

2. reference


2.1 Function list

 function
 Function name
 number
 program load
 DSP_LoadProgram
 1
 data light
 DSP_WriteData
 2
 data read
 DSP_ReadData
 3
 Start execution
 DSP_Start
 4
 execution stop
 DSP_Stop
 5
 Execution completion check
 DSP_CheckEnd
 6

2.2 Function specifications


 one
View
table
 Title

function specification

 Function

program load

 Function name

DSP_LoadProgram

 No

1

Format
void DSP_LoadProgram(Uint8 dst, Uint32 *src, Uint16 count)
input
 dst
 :Address in DSP program RAM
 src
 :DSP program storage start address
 count
 : Transfer count (longword unit)
output
none
function value
none
function
Transfers the data at the specified DSP program storage start address to the DSP program RAM address for the number of transfers (in longword units).

 one
View
table
 Title

function specification

 Function

data light

 Function name

DSP_WriteData

 No

2

Format
void DSP_WriteData(Uint8 dst, Uint32 *src, Uint16 count)
input
 dst
 :Address in DSP data RAM
 src
 :DSP data storage address
 count
 : Transfer count (longword unit)
output
none
function value
none
function
Transfers the data at the specified DSP data storage address to the DSP data RAM address for the number of transfers (in longword units). Specify the DSP data RAM address using 8 bits including the RAM page selection flag.
DSP_RAM_0
DSP_RAM_1
DSP_RAM_2
DSP_RAM_3
example
DSP_RAM_2|3=Relative 3rd long word of RAM2 page

 one
View
table
 Title

function specification

 Function

data read

 Function name

DSP_ReadData

 No

3

Format
void DSP_ReadData(Uint32 *dst, Uint8 src, Uint16 count)
input
 dst
 :DSP data storage address
 src
 :Address in DSP data RAM
 count
 : Transfer count (longword unit)
output
none
function value
none
function
Transfers the data at the specified DSP data RAM address to the DSP data storage address for the number of transfers (in longword units). Please specify the DPS data RAM address using 8 bits including the RAM page selection flag.

 one
View
table
 Title

function specification

 Function

Start execution

 Function name

DSP_Start

 No

4

Format
void DSP_Start(Uint8 pc)
input
pc: program counter
output
none
function value
none
function
Executes the DSP program from the specified program counter.

 one
View
table
 Title

function specification

 Function

execution stop

 Function name

DSP_Stop

 No

5

Format
void DSP_Stop(void)
input
none
output
none
function value
none
function
Stops the currently running DSP program.

 one
View
table
 Title

function specification

 Function

Execution completion check

 Function name

DSP_CheckEnd

 No

6

Format
Uint8 DSP_CheckEnd(void)
input
none
output
none
function value
end flag

 constant name
 explanation
 DSP_END
 Execution finished
 DSP_NOT_END
 Running

function
Checks whether the DSP program has finished executing.

Back | ■
PROGRAMMER'S GUIDEDSP I/F library
Copyright SEGA ENTERPRISES, LTD., 1997