The MCUXpresso SDK provides a peripheral driver for the Direct Memory Access Multiplexer (DMAMUX) of MCUXpresso SDK devices.
Typical use case
DMAMUX Operation
Refer to the driver examples codes located at <SDK_ROOT>/boards/<BOARD>/driver_examples/dmamux
void DMAMUX_Init |
( |
DMAMUX_Type * |
base | ) |
|
This function ungates the DMAMUX clock.
- Parameters
-
base | DMAMUX peripheral base address. |
void DMAMUX_Deinit |
( |
DMAMUX_Type * |
base | ) |
|
This function gates the DMAMUX clock.
- Parameters
-
base | DMAMUX peripheral base address. |
static void DMAMUX_EnableChannel |
( |
DMAMUX_Type * |
base, |
|
|
uint32_t |
channel |
|
) |
| |
|
inlinestatic |
This function enables the DMAMUX channel.
- Parameters
-
base | DMAMUX peripheral base address. |
channel | DMAMUX channel number. |
static void DMAMUX_DisableChannel |
( |
DMAMUX_Type * |
base, |
|
|
uint32_t |
channel |
|
) |
| |
|
inlinestatic |
This function disables the DMAMUX channel.
- Note
- The user must disable the DMAMUX channel before configuring it.
- Parameters
-
base | DMAMUX peripheral base address. |
channel | DMAMUX channel number. |
static void DMAMUX_SetSource |
( |
DMAMUX_Type * |
base, |
|
|
uint32_t |
channel, |
|
|
uint32_t |
source |
|
) |
| |
|
inlinestatic |
- Parameters
-
base | DMAMUX peripheral base address. |
channel | DMAMUX channel number. |
source | Channel source, which is used to trigger the DMA transfer. |
static void DMAMUX_EnablePeriodTrigger |
( |
DMAMUX_Type * |
base, |
|
|
uint32_t |
channel |
|
) |
| |
|
inlinestatic |
This function enables the DMAMUX period trigger feature.
- Parameters
-
base | DMAMUX peripheral base address. |
channel | DMAMUX channel number. |
static void DMAMUX_DisablePeriodTrigger |
( |
DMAMUX_Type * |
base, |
|
|
uint32_t |
channel |
|
) |
| |
|
inlinestatic |
This function disables the DMAMUX period trigger.
- Parameters
-
base | DMAMUX peripheral base address. |
channel | DMAMUX channel number. |
static void DMAMUX_EnableAlwaysOn |
( |
DMAMUX_Type * |
base, |
|
|
uint32_t |
channel, |
|
|
bool |
enable |
|
) |
| |
|
inlinestatic |
This function enables the DMAMUX channel always ON feature.
- Parameters
-
base | DMAMUX peripheral base address. |
channel | DMAMUX channel number. |
enable | Switcher of the always ON feature. "true" means enabled, "false" means disabled. |