#include <nitro/mb.h>
int MB_StartParentFromIdle(int channel);
channel | The channel on which the parent communicates. |
Returns MB_SUCCESS if the start process completes successfully.
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
.
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.
MB_Init, MB_EndToIdle, MB_End, MB_StartParent, MB_CommSetParentStateCallback
10/24/2004 Initial version.