16 #ifndef __HDMA_INCLUDE_H 17 #define __HDMA_INCLUDE_H 65 #define HDMA_NULL ((void *)0) 75 #define HDMA_PARAM_OK ((int32_t)1) 76 #define HDMA_PARAM_NG ((int32_t)0) 87 #define HDMA_CHANNEL_0 ((int32_t)0) 88 #define HDMA_CHANNEL_1 ((int32_t)1) 108 #define HDMA_CIRCUIT_DISABLE ((uint32_t)0x00000000) 109 #define HDMA_CIRCUIT_ENABLE ((uint32_t)0x00000001) 143 #define SOFTBREQMASKSET_ALL_MASK ((uint32_t)0x0000FFFF) 144 #define SOFTBREQMASKSET_ALL_CLR ((uint32_t)0x00000000) 175 #define SOFTSREQMASKSET_ALL_MASK ((uint32_t)0x0000FFFF) 176 #define SOFTSREQMASKSET_ALL_CLR ((uint32_t)0x00000000) 192 #define INTTCST_CH0 ((uint32_t)0x00000001) 193 #define INTTCST_CH1 ((uint32_t)0x00000002) 209 #define INTTCCLR_CH0 ((uint32_t)0x00000001) 210 #define INTTCCLR_CH1 ((uint32_t)0x00000002) 211 #define INTTCCLR_ALL ((uint32_t)0x00000003) 228 #define INTERRST_CH0 ((uint32_t)0x00000001) 229 #define INTERRST_CH1 ((uint32_t)0x00000002) 245 #define INTERRCLR_CH0 ((uint32_t)0x00000001) 246 #define INTERRCLR_CH1 ((uint32_t)0x00000002) 247 #define INTERRCLR_ALL ((uint32_t)0x00000003) 263 #define EnabledCH1_TX_CMP ((uint32_t)0x00000000) 264 #define EnabledCH1_TX_RUN ((uint32_t)0x00000002) 265 #define EnabledCH0_TX_CMP ((uint32_t)0x00000000) 266 #define EnabledCH0_TX_RUN ((uint32_t)0x00000001) 267 #define EnabledALL_TX_RUN ((uint32_t)0x00000003) 288 #define CH_CFG_MASK_DST_INC ((uint32_t)0xC0000000) 289 #define CH_CFG_MASK_DST_SIZE ((uint32_t)0x30000000) 290 #define CH_CFG_MASK_SRC_INC ((uint32_t)0x0C000000) 291 #define CH_CFG_MASK_SRC_SIZE ((uint32_t)0x03000000) 292 #define CH_CFG_MASK_TRANS_NUM ((uint32_t)0x00003FF0) 293 #define CH_CFG_MASK_CYCLE_CTRL ((uint32_t)0x00000007) 388 uint32_t result = (uint32_t)((uint32_t)1 << (uint8_t)ch);
__STATIC_INLINE uint32_t convert_ch_to_reg(uint32_t ch)
Convert channel to register.
Definition: txz_hdma_include.h:386
Control data structure definition.
Definition: txz_hdma_include.h:331
#define HDMA_PARAM_OK
Definition: txz_hdma_include.h:75
uint32_t control
Definition: txz_hdma_include.h:335
__STATIC_INLINE int32_t check_param_channel(uint32_t ch)
Check the channel no.
Definition: txz_hdma_include.h:366
uint32_t srcEnd
Definition: txz_hdma_include.h:333
All common macro and definition for TXZ peripheral drivers.
#define HDMA_PARAM_NG
Definition: txz_hdma_include.h:76
uint32_t dstEnd
Definition: txz_hdma_include.h:334
uint32_t reserved
Definition: txz_hdma_include.h:336