The KSDK provides a peripheral driver for the Direct Memory Access Multiplexer(DMAMUX) of Kinetis devices.
Typical use case
DMAMUX Operation
...
DMAMUX_DisableChannel(DMAMUX, channel);
void DMAMUX_Init |
( |
DMAMUX_Type * |
base | ) |
|
This function ungate the DMAMUX clock.
- Parameters
-
base | DMAMUX peripheral base address. |
void DMAMUX_Deinit |
( |
DMAMUX_Type * |
base | ) |
|
This function gate the DMAMUX clock.
- Parameters
-
base | DMAMUX peripheral base address. |
static void DMAMUX_EnableChannel |
( |
DMAMUX_Type * |
base, |
|
|
uint32_t |
channel |
|
) |
| |
|
inlinestatic |
This function enable DMAMUX channel to work.
- Parameters
-
base | DMAMUX peripheral base address. |
channel | DMAMUX channel number. |
static void DMAMUX_DisableChannel |
( |
DMAMUX_Type * |
base, |
|
|
uint32_t |
channel |
|
) |
| |
|
inlinestatic |
This function disable DMAMUX channel.
- Note
- User must disable DMAMUX channel before configure it.
- Parameters
-
base | DMAMUX peripheral base address. |
channel | DMAMUX channel number. |
static void DMAMUX_SetSource |
( |
DMAMUX_Type * |
base, |
|
|
uint32_t |
channel, |
|
|
uint8_t |
source |
|
) |
| |
|
inlinestatic |
- Parameters
-
base | DMAMUX peripheral base address. |
channel | DMAMUX channel number. |
source | Channel source which is used to trigger DMA transfer. |