![]() |
S32 SDK
|
This module covers the functionality of the Direct Memory Access Multiplexer (DMAMUX) peripheral hardware abstraction layer.
DMAMUX HAL provides the API for reading and writing register bit-fields belonging to the DMAMUX module. It also provides an initialization function for bringing the module to the reset state.
The DMAMUX HAL functions are used by the eDMA driver. The main functionality provided by DMAMUX HAL API is mapping the DMA requests from various modules on the chip to eDMA channels.
For higher-level functionality, use the eDMA driver.
DMAMUX HAL function | |
void | DMAMUX_HAL_Init (DMAMUX_Type *base) |
Initializes the DMAMUX module to the reset state. More... | |
static void | DMAMUX_HAL_SetChannelCmd (DMAMUX_Type *base, uint32_t channel, bool enable) |
Enables/Disables the DMAMUX channel. More... | |
static void | DMAMUX_HAL_SetPeriodTriggerCmd (DMAMUX_Type *base, uint32_t channel, bool enable) |
Enables/Disables the period trigger. More... | |
static void | DMAMUX_HAL_SetChannelSource (DMAMUX_Type *base, uint32_t channel, uint8_t source) |
Configures the DMA request for the DMAMUX channel. More... | |
void DMAMUX_HAL_Init | ( | DMAMUX_Type * | base | ) |
Initializes the DMAMUX module to the reset state.
Initializes the DMAMUX module to the reset state.
base | Register base address for DMAMUX module. |
Definition at line 42 of file dmamux_hal.c.
|
inlinestatic |
Enables/Disables the DMAMUX channel.
Enables the hardware request. If enabled, the hardware request is sent to the corresponding DMA channel.
base | Register base address for DMAMUX module. |
channel | DMAMUX channel number. |
enable | Enables (true) or Disables (false) DMAMUX channel. Implements : DMAMUX_HAL_SetChannelCmd_Activity |
Definition at line 63 of file dmamux_hal.h.
|
inlinestatic |
Configures the DMA request for the DMAMUX channel.
Selects which DMA source is routed to a DMA channel. The DMA sources are defined in the file <MCU>_Features.h
base | Register base address for DMAMUX module. |
channel | DMAMUX channel number. |
source | DMA request source. Implements : DMAMUX_HAL_SetChannelSource_Activity |
Definition at line 108 of file dmamux_hal.h.
|
inlinestatic |
Enables/Disables the period trigger.
base | Register base address for DMAMUX module. |
channel | DMAMUX channel number. |
enable | Enables (true) or Disables (false) period trigger. Implements : DMAMUX_HAL_SetPeriodTriggerCmd_Activity |
Definition at line 84 of file dmamux_hal.h.