# MB_EndToIdle

### C Specification

      #include <nitro/mb.h>

      void    MB_EndToIdle( void );

## Description

This function quits the MB library. If the `MB_StartParentFromIdle` function sets this DS device to act as the parent, the process ends automatically.

The memory and DMA channel specified by the `MB_Init` function are released and are again available to the user. When the quit process is complete, the value `MB_COMM_PSTATE_END` is passed back in the status argument in a callback by the `MB_CommSetParentStateCallback` function.

This function must be called in combination with a call to the `MB_StartParentFromIdle` function.

## Internal operations

If the wireless feature is operating, this function internally calls the `WM_Reset` function to quit wireless communications. When the callback to signal the end is called, the wireless library enters the `IDLE` state.

### Arguments

None.

### Return Values

None.

### See Also

`MB_Init, MB_End, MB_StartParentFromIdle, MB_CommSetParentStateCallback`

### Revision History

10/24/2004 Initial version.