llvm-mos-sdk
|
Classes | |
struct | DMAJob |
Typedefs | |
typedef DMAJob< 7, DMAList_F018B > | CommonDMAJob |
Common structure for DMA fill and copy jobs. More... | |
Functions | |
CommonDMAJob | make_dma_fill (const uint32_t dst, const uint8_t value, const uint16_t count, const uint8_t skip=1) |
CommonDMAJob | make_dma_copy (const uint32_t src, const uint32_t dst, const uint16_t count) |
template<size_t N, typename T > | |
void | trigger_dma (const DMAJob< N, T > &dma_job) |
typedef DMAJob<7, DMAList_F018B> mega65::dma::CommonDMAJob |
Common structure for DMA fill and copy jobs.
CommonDMAJob mega65::dma::make_dma_copy | ( | const uint32_t | src, |
const uint32_t | dst, | ||
const uint16_t | count | ||
) |
Create DMA structure for copying memory
To perform the actual copy, call trigger_dma()
on the returned structure.
src | 28-bit source address |
dst | 28-bit destination address |
count | Number of values to copy |
CommonDMAJob mega65::dma::make_dma_fill | ( | const uint32_t | dst, |
const uint8_t | value, | ||
const uint16_t | count, | ||
const uint8_t | skip = 1 |
||
) |
Create DMA structure for filling memory with a value and optional skip
To perform the actual fill, call trigger_dma()
on the returned structure.
dst | 28-bit destination address |
value | Fill value |
count | Number of values to fill |
skip | Optional skip (default: 1) |