# MI_SetNDmaConfig

## Syntax

  `#include <twl/mi.h>`
  `void MI_SetNDmaConfig( u32 ndmaNo, MINDmaConfig *config );`

## Arguments

ndmaNo | DMA number. Takes a value from 0 to 3.
config | Pointer to the `MINDmaConfig` structure to copy from.

## Return Values

None.

## Description

Copies from a user-specified structure to the DMA config structure of the new TWL DMA maintained internally within the MI library.

Copies from the region indicated by config to the DMA-related settings of the number specified in ndmaNo.

## Internal Operation

Copies the internal DMA config region using `MI_CpuCopy32()`.

## See Also

`MI_InitNDmaConfig, MI_GetNDmaConfig
`

## Revision History

2007/09/07 Initial version.

CONFIDENTIAL