|
libnds
|
DSP <-> ARM9 FIFO transfer utilities. More...
#include <nds/arm9/teak/dsp.h>Functions | |
| static void | dspFifoReadData (u16 src, u16 *dst, int length) |
| Receives data from DSP data memory using the FIFO using default settings. | |
| void | dspFifoRecv (DSP_PCFG_MEMSEL mem, u16 src, bool fixedSrc, u16 *dst, bool fixedDst, int length, DSP_PCFG_RLEN lengthMode) |
| Receives data from DSP memory using the FIFO. | |
| void | dspFifoSend (DSP_PCFG_MEMSEL mem, const u16 *src, bool fixedSrc, u16 dst, bool fixedDst, int length) |
| Sends data to the DSP memory using the FIFO. | |
| static void | dspFifoWriteData (const u16 *src, u16 dst, int length) |
| Sends data to the DSP data memory using the FIFO using default settings. | |
DSP <-> ARM9 FIFO transfer utilities.
This file contains functions to read and write DSP memory from the ARM9.
Receives data from DSP data memory using the FIFO using default settings.
| src | Source address in the selected DSP memory (16 bit units) |
| dst | Destination address in the ARM9 memory map. |
| length | Length of the transfer in 16 bit units. |
| void dspFifoRecv | ( | DSP_PCFG_MEMSEL | mem, |
| u16 | src, | ||
| bool | fixedSrc, | ||
| u16 * | dst, | ||
| bool | fixedDst, | ||
| int | length, | ||
| DSP_PCFG_RLEN | lengthMode | ||
| ) |
Receives data from DSP memory using the FIFO.
This can't read from program memory.
| mem | Source memory. DSP_PCFG_MEMSEL_PROG not allowed. |
| src | Source address in the selected DSP memory (16 bit units) |
| fixedSrc | True if the source address is fixed. |
| dst | Destination address in the ARM9 memory map. |
| fixedDst | True if the destination address is fixed. |
| length | Length of the transfer in 16 bit units. |
| lengthMode | Length mode of the transfer. Usually DSP_PCFG_RLEN_FREE. |
| void dspFifoSend | ( | DSP_PCFG_MEMSEL | mem, |
| const u16 * | src, | ||
| bool | fixedSrc, | ||
| u16 | dst, | ||
| bool | fixedDst, | ||
| int | length | ||
| ) |
Sends data to the DSP memory using the FIFO.
This can't write to program memory.
| mem | Destination memory. DSP_PCFG_MEMSEL_PROG isn't allowed. |
| src | Source address in the ARM9 memory map. |
| fixedSrc | True if the source address is fixed. |
| dst | Destination address in the selected DSP memory (16 bit units). |
| fixedDst | True if the destination address is fixed |
| length | Length of the transfer in 16 bit units. |
Sends data to the DSP data memory using the FIFO using default settings.
This can't write to program memory.
| src | Source address in the ARM9 memory map. |
| dst | Destination address in the selected DSP memory (16 bit units). |
| length | Length of the transfer in 16 bit units. |