# MB_StartParentFromIdle

## C Specification

  `#include <nitro/mb.h>`
  `int MB_StartParentFromIdle(int channel);`

## Arguments

channel | The channel on which the parent communicates.

## Return Values

Returns MB_SUCCESS if the start process completes successfully.

## Description

This function starts a parent operation on the specified channel. The processes of the parent are conducted automatically inside the function and quit when `MB_EndToIdle` is called. When the initialization is complete, the argument status is returned for the value passed by `MB_COMM_PSTATE_INIT_COMPLETE` as a callback of `MB_CommSetParentStateCallback`.

## Internal Operation

This function must be called with the wireless library in the `IDLE` state. Note that to quit the library, the corresponding `MB_EndToIdle` function must be called.
Use the `MB_StartParent` function to conduct processes with the wireless library kept in the `pre-initialization` state.

## See Also

`MB_Init, MB_EndToIdle, MB_End, MB_StartParent, MB_CommSetParentStateCallback`

## Revision History

10/24/2004 Initial version.