DSP Function Codes

Top  Previous  Next

Function code

Meaning

Host interpretation


0

OK

no operation


1

Error

error number (>0) in 'data'. Error 0 is undefined.


2

OpenHandler

open a user handler dll on this channel. The name of the dll is in the SRAM.


3

CloseHandler

close handler and revert to default handler


4

SramToHost

Take 'data' bytes from SRAM parameter area


5

HostToSram

Put up to 'data' bytes into the SRAM parameter area


6

OpenPci

Claim and lock host memory. Data gives the size of the area in bytes.


7

ClosePci

Release any locked memory


8

PciToHost

Take 'data' bytes from PCI buffer (needs MDL)


9

HostToPci

Put up to 'data' bytes into PCI buffer (needs MDL)


10–15


Handler-specific functions

 

All transfer and memory sizes are given in bytes, but they are rounded this up and a whole number of words are moved. User code should ensure there is enough space for this to be done safely.