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

2. reference


2.1 Function list

 function
 Seki several people
 number
 Program load
 DSP_LoadProgram
 1
 Data light
 DSP_WriteData
 2
 Data read
 DSP_ReadData
 3
 Start execution
 DSP_Start
 Four
 Stop execution
 DSP_Stop
 Five
 Execution end check
 DSP_CheckEnd
 6

2.2 Function specifications


 List
 Title

Function specifications

 Function

Program load

 Function Name

DSP_LoadProgram

 No

1

Form
void DSP_LoadProgram (Uint8 dst, Uint32 * src, Uint16 count)
input
 dst
 : Address in DSP program RAM
 src
 : DSP program storage start address
 count
 : Number of transfers (in longword units)
output
none
Function value
none
function
The data at the specified DSP program storage start address is transferred to the DSP program RAM address for the number of transfers (in longword units).

 List
 Title

Function specifications

 Function

Data light

 Function Name

DSP_WriteData

 No

2

Form
void DSP_WriteData (Uint8 dst, Uint32 * src, Uint16 count)
input
 dst
 : Address in DSP data RAM
 src
 : DSP data storage address
 count
 : Number of transfers (in longword units)
output
none
Function value
none
function
The data at the specified DSP data storage address is transferred to the DSP data RAM address for the number of transfers (in longword units). Specify the DSP data RAM address in 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 = RAM 2nd page relative 3rd longword

 List
 Title

Function specifications

 Function

Data read

 Function Name

DSP_ReadData

 No

3

Form
void DSP_ReadData (Uint32 * dst, Uint8 src, Uint16 count)
input
 dst
 : DSP data storage address
 src
 : Address in DSP data RAM
 count
 : Number of transfers (in longword units)
output
none
Function value
none
function
The data at the specified DSP data RAM address is transferred to the DSP data storage address for the number of transfers (in longword units). Specify the DPS data RAM address in 8 bits including the RAM page selection flag.

 List
 Title

Function specifications

 Function

Start execution

 Function Name

DSP_Start

 No

Four

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

 List
 Title

Function specifications

 Function

Stop execution

 Function Name

DSP_Stop

 No

Five

Form
void DSP_Stop (void)
input
none
output
none
Function value
none
function
Stops the DSP program that is currently running.

 List
 Title

Function specifications

 Function

Execution end check

 Function Name

DSP_CheckEnd

 No

6

Form
Uint8 DSP_CheckEnd (void)
input
none
output
none
Function value
End flag

 Constant name
 explanation
 DSP_END
 Execution end
 DSP_NOT_END
 Running

function
Checks whether the execution of the DSP program has ended.

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