PER Firmware
Loading...
Searching...
No Matches
PHAL_DMA_Wiring_t Struct Reference

Fixed hardware wiring for one peripheral + direction's DMA use. More...

#include <dma_wiring.h>

Public Attributes

DMA_TypeDef * periph
 
uint8_t channel_idx
 
PHAL_DMA_Request_t mux_request
 
volatile void * periph_reg
 
union { 
 
   PHAL_DMA_Direction_t   dir 
 
};  
 
PHAL_DMA_Size_t data_size
 

Detailed Description

Fixed hardware wiring for one peripheral + direction's DMA use.

Define exactly one of these per peripheral + direction combo as a static/global constant.

  • Ex: one for SPI1 RX, one for SPI1 TX Don't construct inline in a PHAL_DMA_Handle_t usage. The fields are a direct representation about how the MCU is internally connected, not a user choice.

Member Data Documentation

◆ [union]

union { ... } PHAL_DMA_Wiring_t

◆ channel_idx

uint8_t PHAL_DMA_Wiring_t::channel_idx

Channel number, 1-8

◆ data_size

PHAL_DMA_Size_t PHAL_DMA_Wiring_t::data_size

Used for both the memory and peripheral side

◆ dir

PHAL_DMA_Direction_t PHAL_DMA_Wiring_t::dir

Ignored for DMA_MODE_MEM2MEM

◆ mux_request

PHAL_DMA_Request_t PHAL_DMA_Wiring_t::mux_request

DMAMUX request ID

◆ periph

DMA_TypeDef* PHAL_DMA_Wiring_t::periph

DMA1 or DMA2

◆ periph_reg

volatile void* PHAL_DMA_Wiring_t::periph_reg

Peripheral data register DMA reads/writes


The documentation for this struct was generated from the following file: