Zephyr API Documentation 4.4.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ti-mspm0-dma.h File Reference

Go to the source code of this file.

Macros

#define TI_MSPM0_DMA_SLOT_DMATSEL_MASK   GENMASK(5, 0)
 Mask for DMATSEL trigger selection bits within dma_slot.
#define TI_MSPM0_DMA_SLOT_EXTMODE_MASK   GENMASK(7, 6)
 Mask for encoding extended modes within dma_slot.
#define TI_MSPM0_DMA_SLOT(dmatsel, extmode)
 Build a dma_config.dma_slot value from a DMATSEL trigger and an extended mode.
#define TI_MSPM0_DMA_SLOT_DMATSEL(dma_slot)
 Extract the DMATSEL trigger selection from a dma_config.dma_slot value.
#define TI_MSPM0_DMA_SLOT_EXTMODE(dma_slot)
 Extract the channel mode from a dma_config.dma_slot value.
#define TI_MSPM0_DMA_SLOT_EXTMODE_NORMAL   0U
 Normal DMA transfer.
#define TI_MSPM0_DMA_SLOT_EXTMODE_FILL   1U
 Fills a memory block with the pattern in dma_block_config.source_address.
#define TI_MSPM0_DMA_SLOT_EXTMODE_TABLE   2U
 Reads a table of {addr, data} pairs from dma_block_config.source_address and writes each word to its addr.
#define TI_MSPM0_DMA_SLOT_EXTMODE_GATHER   3U
 Gathers data via an address table at dma_block_config.source_address into dma_block_config.dest_address.

Macro Definition Documentation

◆ TI_MSPM0_DMA_SLOT

#define TI_MSPM0_DMA_SLOT ( dmatsel,
extmode )
Value:
FIELD_PREP(TI_MSPM0_DMA_SLOT_EXTMODE_MASK, TI_MSPM0_DMA_SLOT_EXTMODE_##extmode)
#define FIELD_PREP(mask, value)
Definition silabs-pinctrl-siwx91x.h:15
#define TI_MSPM0_DMA_SLOT_DMATSEL_MASK
Mask for DMATSEL trigger selection bits within dma_slot.
Definition ti-mspm0-dma.h:10
#define TI_MSPM0_DMA_SLOT_EXTMODE_MASK
Mask for encoding extended modes within dma_slot.
Definition ti-mspm0-dma.h:13

Build a dma_config.dma_slot value from a DMATSEL trigger and an extended mode.

Parameters
dmatselDMATSEL trigger selection for the channel.
extmodeOne of the TI_MSPM0_DMA_SLOT_EXTMODE_* values.

◆ TI_MSPM0_DMA_SLOT_DMATSEL

#define TI_MSPM0_DMA_SLOT_DMATSEL ( dma_slot)
Value:
#define FIELD_GET(mask, value)
Definition silabs-pinctrl-siwx91x.h:14

Extract the DMATSEL trigger selection from a dma_config.dma_slot value.

◆ TI_MSPM0_DMA_SLOT_DMATSEL_MASK

#define TI_MSPM0_DMA_SLOT_DMATSEL_MASK   GENMASK(5, 0)

Mask for DMATSEL trigger selection bits within dma_slot.

◆ TI_MSPM0_DMA_SLOT_EXTMODE

#define TI_MSPM0_DMA_SLOT_EXTMODE ( dma_slot)
Value:

Extract the channel mode from a dma_config.dma_slot value.

◆ TI_MSPM0_DMA_SLOT_EXTMODE_FILL

#define TI_MSPM0_DMA_SLOT_EXTMODE_FILL   1U

Fills a memory block with the pattern in dma_block_config.source_address.

◆ TI_MSPM0_DMA_SLOT_EXTMODE_GATHER

#define TI_MSPM0_DMA_SLOT_EXTMODE_GATHER   3U

Gathers data via an address table at dma_block_config.source_address into dma_block_config.dest_address.

◆ TI_MSPM0_DMA_SLOT_EXTMODE_MASK

#define TI_MSPM0_DMA_SLOT_EXTMODE_MASK   GENMASK(7, 6)

Mask for encoding extended modes within dma_slot.

◆ TI_MSPM0_DMA_SLOT_EXTMODE_NORMAL

#define TI_MSPM0_DMA_SLOT_EXTMODE_NORMAL   0U

Normal DMA transfer.

◆ TI_MSPM0_DMA_SLOT_EXTMODE_TABLE

#define TI_MSPM0_DMA_SLOT_EXTMODE_TABLE   2U

Reads a table of {addr, data} pairs from dma_block_config.source_address and writes each word to its addr.