Vision Apps User Guide
app_udma_utils.h File Reference

Go to the source code of this file.

Data Structures

struct  app_udma_create_prms_t
 Parameter to use when creating a logical DMA channel To avoid compatibility issues, user should called appUdmaCreatePrms_Init() to set default values for all params in this structure. More...
 
struct  app_udma_copy_1d_prms_t
 1D transfer request parameters More...
 
struct  app_udma_copy_2d_prms_t
 2D transfer request parameters More...
 
struct  app_udma_copy_nd_prms_t
 ND transfer request parameters. More...
 

Macros

#define APP_UDMA_ND_CHANNELS_MAX   (16U)
 max number of ND copy channels one can open More...
 

Typedefs

typedef void * app_udma_ch_handle_t
 App UDMA channel handle. More...
 

Functions

int32_t appUdmaCopyInit (void)
 DMA copy init function. More...
 
int32_t appUdmaCopyDeinit (void)
 DMA copy deinit function. More...
 
app_udma_ch_handle_t appUdmaCopyCreate (const app_udma_create_prms_t *prms)
 DMA copy create channel function. More...
 
int32_t appUdmaCopyDelete (app_udma_ch_handle_t ch_handle)
 DMA copy delete channel function. More...
 
int32_t appUdmaCopy1D (app_udma_ch_handle_t ch_handle, const app_udma_copy_1d_prms_t *prms_1d)
 DMA copy 1D DMA copy function. More...
 
int32_t appUdmaCopy2D (app_udma_ch_handle_t ch_handle, const app_udma_copy_2d_prms_t *prms_2d, uint32_t num_transfers)
 DMA copy 2D DMA copy function. More...
 
int32_t appUdmaFill2D (app_udma_ch_handle_t ch_handle, const app_udma_copy_2d_prms_t *prms_2d, uint32_t num_transfers)
 DMA copy 2D DMA memfill function. More...
 
app_udma_ch_handle_t appUdmaCopyNDGetHandle (uint32_t ch_idx)
 Return handle to ND copy channel, if not already created, CH is created here. More...
 
int32_t appUdmaCopyNDReleaseHandle (uint32_t ch_idx)
 Releases reference to channel handle, if found to be last reference deletes the handle. More...
 
int32_t appUdmaCopyNDInit (app_udma_ch_handle_t ch_handle, const app_udma_copy_nd_prms_t *prms_nd)
 DMA copy ND init function. More...
 
int32_t appUdmaCopyNDDeinit (app_udma_ch_handle_t ch_handle)
 DMA copy ND de-init function. More...
 
int32_t appUdmaCopyNDTrigger (app_udma_ch_handle_t ch_handle)
 DMA copy ND trigger function. More...
 
int32_t appUdmaCopyNDWait (app_udma_ch_handle_t ch_handle)
 DMA copy ND wait function. More...
 
void appUdmaCopyNDPrmsPrint (app_udma_copy_nd_prms_t *prm, char *name)
 Prints params values. More...
 
static void appUdmaCreatePrms_Init (app_udma_create_prms_t *prms)
 Set defaults for app_udma_create_prms_t structure. More...
 
static void appUdmaCopy1DPrms_Init (app_udma_copy_1d_prms_t *prms_1d)
 Set defaults for app_udma_copy_1d_prms_t structure. More...
 
static void appUdmaCopy2DPrms_Init (app_udma_copy_2d_prms_t *prms_2d)
 Set defaults for app_udma_copy_2d_prms_t structure. More...
 
static void appUdmaCopyNDPrms_Init (app_udma_copy_nd_prms_t *prms_nd)
 Set defaults for app_udma_copy_nd_prms_t structure. More...