S32 SDK

Detailed Description

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...
 

Function Documentation

void DMAMUX_HAL_Init ( DMAMUX_Type base)

Initializes the DMAMUX module to the reset state.

Initializes the DMAMUX module to the reset state.

Parameters
baseRegister base address for DMAMUX module.

Definition at line 42 of file dmamux_hal.c.

static void DMAMUX_HAL_SetChannelCmd ( DMAMUX_Type base,
uint32_t  channel,
bool  enable 
)
inlinestatic

Enables/Disables the DMAMUX channel.

Enables the hardware request. If enabled, the hardware request is sent to the corresponding DMA channel.

Parameters
baseRegister base address for DMAMUX module.
channelDMAMUX channel number.
enableEnables (true) or Disables (false) DMAMUX channel. Implements : DMAMUX_HAL_SetChannelCmd_Activity

Definition at line 63 of file dmamux_hal.h.

static void DMAMUX_HAL_SetChannelSource ( DMAMUX_Type base,
uint32_t  channel,
uint8_t  source 
)
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

Parameters
baseRegister base address for DMAMUX module.
channelDMAMUX channel number.
sourceDMA request source. Implements : DMAMUX_HAL_SetChannelSource_Activity

Definition at line 108 of file dmamux_hal.h.

static void DMAMUX_HAL_SetPeriodTriggerCmd ( DMAMUX_Type base,
uint32_t  channel,
bool  enable 
)
inlinestatic

Enables/Disables the period trigger.

Parameters
baseRegister base address for DMAMUX module.
channelDMAMUX channel number.
enableEnables (true) or Disables (false) period trigger. Implements : DMAMUX_HAL_SetPeriodTriggerCmd_Activity

Definition at line 84 of file dmamux_hal.h.