Hardware Abstraction Layer (HAL)
mtb_hal_dma_t Struct Reference

Description

DMA object.

Application code should not rely on the specific contents of this struct. They are considered an implementation detail which is subject to change between platforms and/or HAL releases.

Data Fields

union {
_mtb_hal_dw_base_t * dw_base
 Datawire base address.
 
base
 DMA base address.
 
union {
_mtb_hal_dw_descriptor_t * dw
 Datawire descriptor.
 
descriptor
 DMA descriptor.
 
mtb_hal_dma_type_t dma_type
 DMA type (DW or DMAC)
 
uint32_t channel
 Channel number.
 
uint16_t expected_bursts
 Expected number of bursts.
 
uint32_t direction
 Transfer direction (mtb_hal_dma_direction_t)
 
uint32_t irq_cause
 IRQ cause.
 
_mtb_hal_event_callback_data_t callback_data
 Callback data.
 

Field Documentation

◆ 

union { ... } mtb_hal_dma_t::base

DMA base address.

◆ 

union { ... } mtb_hal_dma_t::descriptor

DMA descriptor.

◆ dma_type

mtb_hal_dma_type_t mtb_hal_dma_t::dma_type

DMA type (DW or DMAC)

◆ channel

uint32_t mtb_hal_dma_t::channel

Channel number.

◆ expected_bursts

uint16_t mtb_hal_dma_t::expected_bursts

Expected number of bursts.

◆ direction

uint32_t mtb_hal_dma_t::direction

Transfer direction (mtb_hal_dma_direction_t)

◆ irq_cause

uint32_t mtb_hal_dma_t::irq_cause

IRQ cause.

◆ callback_data

_mtb_hal_event_callback_data_t mtb_hal_dma_t::callback_data

Callback data.