libnds
|
Wrapper functions for direct memory access hardware. More...
#include "nds/ndstypes.h"
Functions | |
int | dmaBusy (uint8 channel) |
determines if the specified channel is busy More... | |
void | dmaCopy (const void *source, void *dest, uint32 size) |
copies from source to destination using channel 3 of DMA available channels in half words More... | |
void | dmaCopyAsynch (const void *source, void *dest, uint32 size) |
copies from source to destination using channel 3 of DMA available channels in half words. This function returns immediately after starting the transfer. More... | |
void | dmaCopyHalfWords (uint8 channel, const void *src, void *dest, uint32 size) |
copies from source to destination on one of the 4 available channels in half words More... | |
void | dmaCopyHalfWordsAsynch (uint8 channel, const void *src, void *dest, uint32 size) |
copies from source to destination on one of the 4 available channels in half words. This function returns immediately after starting the transfer. More... | |
void | dmaCopyWords (uint8 channel, const void *src, void *dest, uint32 size) |
copies from source to destination on one of the 4 available channels in words More... | |
void | dmaCopyWordsAsynch (uint8 channel, const void *src, void *dest, uint32 size) |
copies from source to destination on one of the 4 available channels in half words. This function returns immediately after starting the transfer. More... | |
void | dmaFillHalfWords (u16 value, void *dest, uint32 size) |
fills the source with the supplied value using DMA channel 3 More... | |
void | dmaFillWords (u32 value, void *dest, uint32 size) |
fills the source with the supplied value using DMA channel 3 More... | |
Wrapper functions for direct memory access hardware.
DC_FlushRange(source, sizeof(dataToCopy)); dmaCopy(source, destination, sizeof(dataToCopy));
|
inline |
determines if the specified channel is busy
channel | the dma channel to check (0 - 3). |
|
inline |
copies from source to destination using channel 3 of DMA available channels in half words
source | the source to copy from |
dest | the destination to copy to |
size | the size in bytes of the data to copy. Will be truncated to the nearest half word (2 bytes) |
|
inline |
copies from source to destination using channel 3 of DMA available channels in half words. This function returns immediately after starting the transfer.
src | the source to copy from |
dest | the destination to copy to |
size | the size in bytes of the data to copy. Will be truncated to the nearest half word (2 bytes) |
copies from source to destination on one of the 4 available channels in half words
channel | the dma channel to use (0 - 3). |
src | the source to copy from |
dest | the destination to copy to |
size | the size in bytes of the data to copy. Will be truncated to the nearest half word (2 bytes) |
|
inline |
copies from source to destination on one of the 4 available channels in half words. This function returns immediately after starting the transfer.
channel | the dma channel to use (0 - 3). |
src | the source to copy from |
dest | the destination to copy to |
size | the size in bytes of the data to copy. Will be truncated to the nearest half word (2 bytes) |
copies from source to destination on one of the 4 available channels in words
channel | the dma channel to use (0 - 3). |
src | the source to copy from |
dest | the destination to copy to |
size | the size in bytes of the data to copy. Will be truncated to the nearest word (4 bytes) |
copies from source to destination on one of the 4 available channels in half words. This function returns immediately after starting the transfer.
channel | the dma channel to use (0 - 3). |
src | the source to copy from |
dest | the destination to copy to |
size | the size in bytes of the data to copy. Will be truncated to the nearest word (4 bytes) |
fills the source with the supplied value using DMA channel 3
value | the 16 byte value to fill memory with |
dest | the destination to copy to |
size | the size in bytes of the area to fill. Will be truncated to the nearest half word (2 bytes) |
fills the source with the supplied value using DMA channel 3
value | the 32 byte value to fill memory with |
dest | the destination to copy to |
size | the size in bytes of the area to fill. Will be truncated to the nearest word (4 bytes) |