# MB_End

## C Specification

      #include <nitro/mb.h>

      void    MB_End( void );

## Description

This function ends the multi-boot (MB) library process. When operating as the parent with `MB_StartParent`, the process ends automatically.

Memory assigned with the `MB_Init` function, as well as the DMA channel, are freed, and the user can reuse them.

When the termination process is complete, the argument status is returned for the value passed by `MB_COMM_PSTATE_END` as a callback of `MB_CommSetParentStateCallback`.

## Internal Operation

This function calls the `WM_End` function and terminates the communication if the wireless library is operating internally. This function must be called in response to calling the `MB_StartParent` function.

When the termination callback is called, the wireless library is in the pre-initialization state.

## Arguments

None.

## Return Values

None.

## See Also

`MB_Init, MB_EndEx, MB_StartParent`

## Revision History

10/18/2004 Clarified the correspondence with `MB_StartParent`.
10/15/2004 Corrected the WM state at the time of completion.
10/05/2004 Added description regarding the WM status at the time of termination.
09/10/2004 Added description regarding the callback.
08/09/2004 Initial version.