# GX_SetDefaultNDMA

## Syntax

      #include <nitro/gx/gx.h>

      u32 GX_SetDefaultNDMA(u32 ndma_no);

## Arguments

ndma_no | Specifies the NDMA to use with GX functions.

## Return Values

Returns the settings before this function was called.
Returns `GX_DMA_NOT_USE` if DMA had been configured to be used instead of NDMA.

## Description

This function changes the NDMA number used by GX functions. You can specify `GX_DMA_NOT_USE` as an argument to not use DMA or NDMA.
This function will cause NDMA to be used instead of the DMA configured by the `GX_SetDefaultDMA` function. Consequently, note that the value set by the `GX_SetDefaultDMA` function will be deleted.

## See Also

GX_SetDefaultDMA, GX_GetDefaultNDMA

## Revision History

2008/06/05 Initial version.

CONFIDENTIAL