![]() |
MAX32520 Peripheral Driver API
Peripheral Driver API for the MAX32520
|
DMA Channel Configuration Register.
#define MXC_F_DMA_CFG_BRST ((uint32_t)(0x1FUL << MXC_F_DMA_CFG_BRST_POS)) |
CFG_BRST Mask
#define MXC_F_DMA_CFG_BRST_POS 24 |
CFG_BRST Position
#define MXC_F_DMA_CFG_CHDIEN ((uint32_t)(0x1UL << MXC_F_DMA_CFG_CHDIEN_POS)) |
CFG_CHDIEN Mask
#define MXC_F_DMA_CFG_CHDIEN_POS 30 |
CFG_CHDIEN Position
#define MXC_F_DMA_CFG_CHIEN ((uint32_t)(0x1UL << MXC_F_DMA_CFG_CHIEN_POS)) |
CFG_CHIEN Mask
#define MXC_F_DMA_CFG_CHIEN_POS 0 |
CFG_CHIEN Position
#define MXC_F_DMA_CFG_CTZIEN ((uint32_t)(0x1UL << MXC_F_DMA_CFG_CTZIEN_POS)) |
CFG_CTZIEN Mask
#define MXC_F_DMA_CFG_CTZIEN_POS 31 |
CFG_CTZIEN Position
#define MXC_F_DMA_CFG_DSTINC ((uint32_t)(0x1UL << MXC_F_DMA_CFG_DSTINC_POS)) |
CFG_DSTINC Mask
#define MXC_F_DMA_CFG_DSTINC_POS 22 |
CFG_DSTINC Position
#define MXC_F_DMA_CFG_DSTWD ((uint32_t)(0x3UL << MXC_F_DMA_CFG_DSTWD_POS)) |
CFG_DSTWD Mask
#define MXC_F_DMA_CFG_DSTWD_POS 20 |
CFG_DSTWD Position
#define MXC_F_DMA_CFG_PRI ((uint32_t)(0x3UL << MXC_F_DMA_CFG_PRI_POS)) |
CFG_PRI Mask
#define MXC_F_DMA_CFG_PRI_POS 2 |
CFG_PRI Position
#define MXC_F_DMA_CFG_PSSEL ((uint32_t)(0x3UL << MXC_F_DMA_CFG_PSSEL_POS)) |
CFG_PSSEL Mask
#define MXC_F_DMA_CFG_PSSEL_POS 14 |
CFG_PSSEL Position
#define MXC_F_DMA_CFG_REQSEL ((uint32_t)(0x3FUL << MXC_F_DMA_CFG_REQSEL_POS)) |
CFG_REQSEL Mask
#define MXC_F_DMA_CFG_REQSEL_POS 4 |
CFG_REQSEL Position
#define MXC_F_DMA_CFG_REQWAIT ((uint32_t)(0x1UL << MXC_F_DMA_CFG_REQWAIT_POS)) |
CFG_REQWAIT Mask
#define MXC_F_DMA_CFG_REQWAIT_POS 10 |
CFG_REQWAIT Position
#define MXC_F_DMA_CFG_RLDEN ((uint32_t)(0x1UL << MXC_F_DMA_CFG_RLDEN_POS)) |
CFG_RLDEN Mask
#define MXC_F_DMA_CFG_RLDEN_POS 1 |
CFG_RLDEN Position
#define MXC_F_DMA_CFG_SRCINC ((uint32_t)(0x1UL << MXC_F_DMA_CFG_SRCINC_POS)) |
CFG_SRCINC Mask
#define MXC_F_DMA_CFG_SRCINC_POS 18 |
CFG_SRCINC Position
#define MXC_F_DMA_CFG_SRCWD ((uint32_t)(0x3UL << MXC_F_DMA_CFG_SRCWD_POS)) |
CFG_SRCWD Mask
#define MXC_F_DMA_CFG_SRCWD_POS 16 |
CFG_SRCWD Position
#define MXC_F_DMA_CFG_TOSEL ((uint32_t)(0x7UL << MXC_F_DMA_CFG_TOSEL_POS)) |
CFG_TOSEL Mask
#define MXC_F_DMA_CFG_TOSEL_POS 11 |
CFG_TOSEL Position
#define MXC_S_DMA_CFG_DSTWD_BYTE (MXC_V_DMA_CFG_DSTWD_BYTE << MXC_F_DMA_CFG_DSTWD_POS) |
CFG_DSTWD_BYTE Setting
#define MXC_S_DMA_CFG_DSTWD_HALFWORD (MXC_V_DMA_CFG_DSTWD_HALFWORD << MXC_F_DMA_CFG_DSTWD_POS) |
CFG_DSTWD_HALFWORD Setting
#define MXC_S_DMA_CFG_DSTWD_WORD (MXC_V_DMA_CFG_DSTWD_WORD << MXC_F_DMA_CFG_DSTWD_POS) |
CFG_DSTWD_WORD Setting
#define MXC_S_DMA_CFG_PRI_HIGH (MXC_V_DMA_CFG_PRI_HIGH << MXC_F_DMA_CFG_PRI_POS) |
CFG_PRI_HIGH Setting
#define MXC_S_DMA_CFG_PRI_LOW (MXC_V_DMA_CFG_PRI_LOW << MXC_F_DMA_CFG_PRI_POS) |
CFG_PRI_LOW Setting
#define MXC_S_DMA_CFG_PRI_MEDHIGH (MXC_V_DMA_CFG_PRI_MEDHIGH << MXC_F_DMA_CFG_PRI_POS) |
CFG_PRI_MEDHIGH Setting
#define MXC_S_DMA_CFG_PRI_MEDLOW (MXC_V_DMA_CFG_PRI_MEDLOW << MXC_F_DMA_CFG_PRI_POS) |
CFG_PRI_MEDLOW Setting
#define MXC_S_DMA_CFG_PSSEL_DIS (MXC_V_DMA_CFG_PSSEL_DIS << MXC_F_DMA_CFG_PSSEL_POS) |
CFG_PSSEL_DIS Setting
#define MXC_S_DMA_CFG_PSSEL_DIV16M (MXC_V_DMA_CFG_PSSEL_DIV16M << MXC_F_DMA_CFG_PSSEL_POS) |
CFG_PSSEL_DIV16M Setting
#define MXC_S_DMA_CFG_PSSEL_DIV256 (MXC_V_DMA_CFG_PSSEL_DIV256 << MXC_F_DMA_CFG_PSSEL_POS) |
CFG_PSSEL_DIV256 Setting
#define MXC_S_DMA_CFG_PSSEL_DIV64K (MXC_V_DMA_CFG_PSSEL_DIV64K << MXC_F_DMA_CFG_PSSEL_POS) |
CFG_PSSEL_DIV64K Setting
#define MXC_S_DMA_CFG_REQSEL_I2C0RX (MXC_V_DMA_CFG_REQSEL_I2C0RX << MXC_F_DMA_CFG_REQSEL_POS) |
CFG_REQSEL_I2C0RX Setting
#define MXC_S_DMA_CFG_REQSEL_I2C0TX (MXC_V_DMA_CFG_REQSEL_I2C0TX << MXC_F_DMA_CFG_REQSEL_POS) |
CFG_REQSEL_I2C0TX Setting
#define MXC_S_DMA_CFG_REQSEL_MEMTOMEM (MXC_V_DMA_CFG_REQSEL_MEMTOMEM << MXC_F_DMA_CFG_REQSEL_POS) |
CFG_REQSEL_MEMTOMEM Setting
#define MXC_S_DMA_CFG_REQSEL_SPI0RX (MXC_V_DMA_CFG_REQSEL_SPI0RX << MXC_F_DMA_CFG_REQSEL_POS) |
CFG_REQSEL_SPI0RX Setting
#define MXC_S_DMA_CFG_REQSEL_SPI0TX (MXC_V_DMA_CFG_REQSEL_SPI0TX << MXC_F_DMA_CFG_REQSEL_POS) |
CFG_REQSEL_SPI0TX Setting
#define MXC_S_DMA_CFG_REQSEL_SPI1RX (MXC_V_DMA_CFG_REQSEL_SPI1RX << MXC_F_DMA_CFG_REQSEL_POS) |
CFG_REQSEL_SPI1RX Setting
#define MXC_S_DMA_CFG_REQSEL_SPI1TX (MXC_V_DMA_CFG_REQSEL_SPI1TX << MXC_F_DMA_CFG_REQSEL_POS) |
CFG_REQSEL_SPI1TX Setting
#define MXC_S_DMA_CFG_REQSEL_UART0RX (MXC_V_DMA_CFG_REQSEL_UART0RX << MXC_F_DMA_CFG_REQSEL_POS) |
CFG_REQSEL_UART0RX Setting
#define MXC_S_DMA_CFG_REQSEL_UART0TX (MXC_V_DMA_CFG_REQSEL_UART0TX << MXC_F_DMA_CFG_REQSEL_POS) |
CFG_REQSEL_UART0TX Setting
#define MXC_S_DMA_CFG_SRCWD_BYTE (MXC_V_DMA_CFG_SRCWD_BYTE << MXC_F_DMA_CFG_SRCWD_POS) |
CFG_SRCWD_BYTE Setting
#define MXC_S_DMA_CFG_SRCWD_HALFWORD (MXC_V_DMA_CFG_SRCWD_HALFWORD << MXC_F_DMA_CFG_SRCWD_POS) |
CFG_SRCWD_HALFWORD Setting
#define MXC_S_DMA_CFG_SRCWD_WORD (MXC_V_DMA_CFG_SRCWD_WORD << MXC_F_DMA_CFG_SRCWD_POS) |
CFG_SRCWD_WORD Setting
#define MXC_S_DMA_CFG_TOSEL_TO128 (MXC_V_DMA_CFG_TOSEL_TO128 << MXC_F_DMA_CFG_TOSEL_POS) |
CFG_TOSEL_TO128 Setting
#define MXC_S_DMA_CFG_TOSEL_TO16 (MXC_V_DMA_CFG_TOSEL_TO16 << MXC_F_DMA_CFG_TOSEL_POS) |
CFG_TOSEL_TO16 Setting
#define MXC_S_DMA_CFG_TOSEL_TO256 (MXC_V_DMA_CFG_TOSEL_TO256 << MXC_F_DMA_CFG_TOSEL_POS) |
CFG_TOSEL_TO256 Setting
#define MXC_S_DMA_CFG_TOSEL_TO32 (MXC_V_DMA_CFG_TOSEL_TO32 << MXC_F_DMA_CFG_TOSEL_POS) |
CFG_TOSEL_TO32 Setting
#define MXC_S_DMA_CFG_TOSEL_TO4 (MXC_V_DMA_CFG_TOSEL_TO4 << MXC_F_DMA_CFG_TOSEL_POS) |
CFG_TOSEL_TO4 Setting
#define MXC_S_DMA_CFG_TOSEL_TO512 (MXC_V_DMA_CFG_TOSEL_TO512 << MXC_F_DMA_CFG_TOSEL_POS) |
CFG_TOSEL_TO512 Setting
#define MXC_S_DMA_CFG_TOSEL_TO64 (MXC_V_DMA_CFG_TOSEL_TO64 << MXC_F_DMA_CFG_TOSEL_POS) |
CFG_TOSEL_TO64 Setting
#define MXC_S_DMA_CFG_TOSEL_TO8 (MXC_V_DMA_CFG_TOSEL_TO8 << MXC_F_DMA_CFG_TOSEL_POS) |
CFG_TOSEL_TO8 Setting
#define MXC_V_DMA_CFG_DSTWD_BYTE ((uint32_t)0x0UL) |
CFG_DSTWD_BYTE Value
#define MXC_V_DMA_CFG_DSTWD_HALFWORD ((uint32_t)0x1UL) |
CFG_DSTWD_HALFWORD Value
#define MXC_V_DMA_CFG_DSTWD_WORD ((uint32_t)0x2UL) |
CFG_DSTWD_WORD Value
#define MXC_V_DMA_CFG_PRI_HIGH ((uint32_t)0x0UL) |
CFG_PRI_HIGH Value
#define MXC_V_DMA_CFG_PRI_LOW ((uint32_t)0x3UL) |
CFG_PRI_LOW Value
#define MXC_V_DMA_CFG_PRI_MEDHIGH ((uint32_t)0x1UL) |
CFG_PRI_MEDHIGH Value
#define MXC_V_DMA_CFG_PRI_MEDLOW ((uint32_t)0x2UL) |
CFG_PRI_MEDLOW Value
#define MXC_V_DMA_CFG_PSSEL_DIS ((uint32_t)0x0UL) |
CFG_PSSEL_DIS Value
#define MXC_V_DMA_CFG_PSSEL_DIV16M ((uint32_t)0x3UL) |
CFG_PSSEL_DIV16M Value
#define MXC_V_DMA_CFG_PSSEL_DIV256 ((uint32_t)0x1UL) |
CFG_PSSEL_DIV256 Value
#define MXC_V_DMA_CFG_PSSEL_DIV64K ((uint32_t)0x2UL) |
CFG_PSSEL_DIV64K Value
#define MXC_V_DMA_CFG_REQSEL_I2C0RX ((uint32_t)0x7UL) |
CFG_REQSEL_I2C0RX Value
#define MXC_V_DMA_CFG_REQSEL_I2C0TX ((uint32_t)0x27UL) |
CFG_REQSEL_I2C0TX Value
#define MXC_V_DMA_CFG_REQSEL_MEMTOMEM ((uint32_t)0x0UL) |
CFG_REQSEL_MEMTOMEM Value
#define MXC_V_DMA_CFG_REQSEL_SPI0RX ((uint32_t)0x1UL) |
CFG_REQSEL_SPI0RX Value
#define MXC_V_DMA_CFG_REQSEL_SPI0TX ((uint32_t)0x21UL) |
CFG_REQSEL_SPI0TX Value
#define MXC_V_DMA_CFG_REQSEL_SPI1RX ((uint32_t)0x2UL) |
CFG_REQSEL_SPI1RX Value
#define MXC_V_DMA_CFG_REQSEL_SPI1TX ((uint32_t)0x22UL) |
CFG_REQSEL_SPI1TX Value
#define MXC_V_DMA_CFG_REQSEL_UART0RX ((uint32_t)0x1CUL) |
CFG_REQSEL_UART0RX Value
#define MXC_V_DMA_CFG_REQSEL_UART0TX ((uint32_t)0x3CUL) |
CFG_REQSEL_UART0TX Value
#define MXC_V_DMA_CFG_SRCWD_BYTE ((uint32_t)0x0UL) |
CFG_SRCWD_BYTE Value
#define MXC_V_DMA_CFG_SRCWD_HALFWORD ((uint32_t)0x1UL) |
CFG_SRCWD_HALFWORD Value
#define MXC_V_DMA_CFG_SRCWD_WORD ((uint32_t)0x2UL) |
CFG_SRCWD_WORD Value
#define MXC_V_DMA_CFG_TOSEL_TO128 ((uint32_t)0x5UL) |
CFG_TOSEL_TO128 Value
#define MXC_V_DMA_CFG_TOSEL_TO16 ((uint32_t)0x2UL) |
CFG_TOSEL_TO16 Value
#define MXC_V_DMA_CFG_TOSEL_TO256 ((uint32_t)0x6UL) |
CFG_TOSEL_TO256 Value
#define MXC_V_DMA_CFG_TOSEL_TO32 ((uint32_t)0x3UL) |
CFG_TOSEL_TO32 Value
#define MXC_V_DMA_CFG_TOSEL_TO4 ((uint32_t)0x0UL) |
CFG_TOSEL_TO4 Value
#define MXC_V_DMA_CFG_TOSEL_TO512 ((uint32_t)0x7UL) |
CFG_TOSEL_TO512 Value
#define MXC_V_DMA_CFG_TOSEL_TO64 ((uint32_t)0x4UL) |
CFG_TOSEL_TO64 Value
#define MXC_V_DMA_CFG_TOSEL_TO8 ((uint32_t)0x1UL) |
CFG_TOSEL_TO8 Value