SDK4.0
This document shows Ameba SDK 4.0 APIs

dma functions More...

Ameba Common

typedef struct gdma_s gdma_t
 
typedef void(* dma_irq_handler) (uint32_t id)
 
void dma_memcpy_init (gdma_t *dma_obj, dma_irq_handler handler, uint32_t id)
 Initial the GDMA. More...
 
void dma_memcpy_deinit (gdma_t *dma_obj)
 De-Initial the GDMA. More...
 
void dma_memcpy (gdma_t *dma_obj, void *dst, void *src, uint32_t len)
 To do a memory copy by DMA. More...
 

Ameba1 Only

void dma_memcpy_aggr_init (gdma_t *dma_obj, dma_irq_handler handler, uint32_t id)
 Initial the GDMA. More...
 
void dma_memcpy_aggr (gdma_t *dma_obj, PHAL_GDMA_BLOCK block_info)
 

Detailed Description

dma functions

Function Documentation

void dma_memcpy ( gdma_t *  dma_obj,
void *  dst,
void *  src,
uint32_t  len 
)

To do a memory copy by DMA.

Parameters
dma_objthe GDMA object
dstdestination memory address
srcsource memory address
lencopy data length
Return values
None
void dma_memcpy_aggr_init ( gdma_t *  dma_obj,
dma_irq_handler  handler,
uint32_t  id 
)

Initial the GDMA.

Parameters
dma_objthe GDMA object
handlerthe callback function for a DMA transfer complete.
idthe argument of the callback function.
Return values
None
void dma_memcpy_deinit ( gdma_t *  dma_obj)

De-Initial the GDMA.

Parameters
dma_objthe GDMA object
Return values
None
void dma_memcpy_init ( gdma_t *  dma_obj,
dma_irq_handler  handler,
uint32_t  id 
)

Initial the GDMA.

Parameters
dma_objthe GDMA object
handlerthe callback function for a DMA transfer complete.
idthe argument of the callback function.
Return values
None