|
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 | |
| void | dmaCopy (const void *source, void *dest, uint32 size) |
| copies from source to destination using channel 3 of DMA available channels in half words | |
| 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. | |
| 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 | |
| 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. | |
| 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 | |
| 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. | |
| void | dmaFillHalfWords (u16 value, void *dest, uint32 size) |
| fills the source with the supplied value using DMA channel 3 | |
| void | dmaFillWords (u32 value, void *dest, uint32 size) |
| fills the source with the supplied value using DMA channel 3 | |
Wrapper functions for direct memory access hardware.
DC_FlushRange(source, sizeof(dataToCopy)); dmaCopy(source, destination, sizeof(dataToCopy));
| static dmaBusy | ( | uint8 | channel | ) | [inline] |
determines if the specified channel is busy
| channel | the dma channel to check (0 - 3). |
| static void dmaCopy | ( | const void * | source, |
| void * | dest, | ||
| uint32 | size | ||
| ) | [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) |
| static void dmaCopyAsynch | ( | const void * | src, |
| void * | dest, | ||
| uint32 | size | ||
| ) | [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) |
| static void dmaCopyHalfWordsAsynch | ( | uint8 | channel, |
| const void * | src, | ||
| void * | dest, | ||
| uint32 | size | ||
| ) | [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) |
| static void dmaCopyWordsAsynch | ( | uint8 | channel, |
| const void * | src, | ||
| void * | dest, | ||
| uint32 | size | ||
| ) | [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 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) |
1.7.3