HPM SDK
HPMicro Software Development Kit
hpm_dmav2_drv.c File Reference
#include "hpm_dmav2_drv.h"

Functions

void dma_default_channel_config (DMAV2_Type *ptr, dma_channel_config_t *ch)
 Get default channel config. More...
 
hpm_stat_t dma_setup_channel (DMAV2_Type *ptr, uint8_t ch_num, dma_channel_config_t *ch, bool start_transfer)
 Setup DMA channel. More...
 
hpm_stat_t dma_config_linked_descriptor (DMAV2_Type *ptr, dma_linked_descriptor_t *descriptor, uint8_t ch_num, dma_channel_config_t *config)
 Config linked descriptor function. More...
 
hpm_stat_t dma_start_memcpy (DMAV2_Type *ptr, uint8_t ch_num, uint32_t dst, uint32_t src, uint32_t size, uint32_t burst_len_in_byte)
 Start DMA copy. More...
 
void dma_default_handshake_config (DMAV2_Type *ptr, dma_handshake_config_t *config)
 Get default handshake config. More...
 
hpm_stat_t dma_setup_handshake (DMAV2_Type *ptr, dma_handshake_config_t *pconfig, bool start_transfer)
 config dma handshake function More...