WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hal_dmac_v151_regs_op.c 文件参考
#include "hal_dmac_v151_regs_op.h"
#include "debug_print.h"
hal_dmac_v151_regs_op.c 的引用(Include)关系图:

宏定义

#define DMAC_INT_TC_ST_MASK   0xff00
 
#define DMAC_INT_TC_ST_BITS   8
 
#define DMAC_INT_ERR_ST_MASK   0xff0000
 
#define DMAC_INT_ERR_ST_BITS   16
 
#define INT_ERR_CLR_BITS   8
 

函数

bool hal_dma_regs_data_get_int_tc_st (dma_channel_t channel, dma_v151_regs_t *dma_regs)
 Get the status of transfer complete interrupt.
 
bool hal_dma_regs_data_get_int_err_st (dma_channel_t channel, dma_v151_regs_t *dma_regs)
 Get the status of transfer error interrupt.
 
void hal_dma_interrupt_clear_tc (dma_channel_t channel, dma_v151_regs_t *dma_regs)
 Clear the status of transfer complete interrupt.
 
void hal_dma_interrupt_clear_err (dma_channel_t channel, dma_v151_regs_t *dma_regs)
 Clear the status of transfer error interrupt.
 
bool hal_dma_regs_data_get_ch_en (dma_channel_t channel, dma_v151_regs_t *dma_regs)
 Get the status of channel enable.
 

宏定义说明

◆ DMAC_INT_ERR_ST_BITS

#define DMAC_INT_ERR_ST_BITS   16

◆ DMAC_INT_ERR_ST_MASK

#define DMAC_INT_ERR_ST_MASK   0xff0000

◆ DMAC_INT_TC_ST_BITS

#define DMAC_INT_TC_ST_BITS   8

◆ DMAC_INT_TC_ST_MASK

#define DMAC_INT_TC_ST_MASK   0xff00

Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved.

Description: Provides V151 dma register operation api
History:
2023-2-25, Create file.

◆ INT_ERR_CLR_BITS

#define INT_ERR_CLR_BITS   8