MB_StartParent

Syntax

#include <nitro/mb.h>

int MB_StartParent(int channel);

Arguments

channel The channel on which the parent communicates.

Return Values

Returns MB_SUCCESS if the start process completes successfully.

Description

Starts a parent operation on the specified channel. Parent processing is run automatically and internally, and ends when the MB_End function is called.
When the initialization is complete, the argument status is returned with the value of MB_COMM_PSTATE_INIT_COMPLETE as a callback of MB_CommSetParentStateCallback.

Internal Operation

Internally, this function calls the WM_Initialize function and automatically controls communication with child devices. Therefore, the wireless library must be in a pre-initialization state when this function is called. Note that a corresponding call to the MB_End function is required to shut down the library.

Use the MB_StartParentFromIdle function to perform processing while the wireless library is running.

See Also

MB_Init
MB_StartParentFromIdle
MB_End

Revision History

2008/12/19 Deleted the link to MB_EndEx that had priorly been removed.
2004/11/24 Changed the name from MB_StartParentEx to MB_StartParentFromIdle.
2004/10/18 Added text about the MB_StartParentEx function.
2004/10/15 Revised text about WM state when calling back.
2004/10/05 Added text about WM state when calling back.
2004/09/10 Added text about the callback.
2004/08/09 Initial version.


CONFIDENTIAL