rfLPC
A low level library for using NXP's LPC17xx SoC. Config is given for MBED prototyping board
|
Enumerations | |
enum | rflpc_dma_channel_t { RFLPC_DMAC0, RFLPC_DMAC1, RFLPC_DMAC2, RFLPC_DMAC3, RFLPC_DMAC4, RFLPC_DMAC5, RFLPC_DMAC6, RFLPC_DMAC7 } |
Enum to identify DMA channels. | |
Functions | |
void | rflpc_dma_init (void) |
Inits the DMA Peripheral. More... | |
int | rflpc_dma_channel_ready (rflpc_dma_channel_t channel) |
Tells if a DMA channel is ready to be used. More... | |
int | rflpc_dma_start (rflpc_dma_channel_t channel, void *dest, const void *src, uint32_t size) |
Starts a DMA copy. More... | |
int rflpc_dma_channel_ready | ( | rflpc_dma_channel_t | channel | ) |
Tells if a DMA channel is ready to be used.
void rflpc_dma_init | ( | void | ) |
Inits the DMA Peripheral.
int rflpc_dma_start | ( | rflpc_dma_channel_t | channel, |
void * | dest, | ||
const void * | src, | ||
uint32_t | size | ||
) |
Starts a DMA copy.
The DMA channel must be ready before starting a DMA copy
channel | The channel to use. |
dest | destination pointer |
src | source data |
size | number of bytes to transfert (limited to 0xFFF bytes) |