|
PER Firmware
|
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 | |
Fixed hardware wiring for one peripheral + direction's DMA use.
Define exactly one of these per peripheral + direction combo as a static/global constant.
| union { ... } PHAL_DMA_Wiring_t |
| uint8_t PHAL_DMA_Wiring_t::channel_idx |
Channel number, 1-8
| PHAL_DMA_Size_t PHAL_DMA_Wiring_t::data_size |
Used for both the memory and peripheral side
| PHAL_DMA_Direction_t PHAL_DMA_Wiring_t::dir |
Ignored for DMA_MODE_MEM2MEM
| PHAL_DMA_Request_t PHAL_DMA_Wiring_t::mux_request |
DMAMUX request ID
| DMA_TypeDef* PHAL_DMA_Wiring_t::periph |
DMA1 or DMA2
| volatile void* PHAL_DMA_Wiring_t::periph_reg |
Peripheral data register DMA reads/writes