DMA Controller. More...
#include "libdragon.h"#include "regsinternal.h"Defines | |
PI Status Register Bit Definitions | |
| #define | PI_STATUS_DMA_BUSY ( 1 << 0 ) |
| PI DMA Busy. | |
| #define | PI_STATUS_IO_BUSY ( 1 << 1 ) |
| PI IO Busy. | |
| #define | PI_STATUS_ERROR ( 1 << 2 ) |
| PI Error. | |
Functions | |
| volatile int | dma_busy () |
| Return whether the DMA controller is currently busy. | |
| void | dma_read (void *ram_address, unsigned long pi_address, unsigned long len) |
| Read from a peripheral. | |
| void | dma_write (void *ram_address, unsigned long pi_address, unsigned long len) |
| Write to a peripheral. | |
| uint32_t | io_read (uint32_t pi_address) |
| Read a 32 bit integer from a peripheral. | |
| void | io_write (uint32_t pi_address, uint32_t data) |
| Write a 32 bit integer to a peripheral. | |
DMA Controller.
1.7.1