MB_CommGetChildrenNumber


C Specification

#include <nitro/mb.h>

u8 MB_CommGetChildrenNumber( void );
    

Description

This function returns the number of children connected to the current parent. The number of available children is indicated by the argument aid in a range less than the return value.

What is calculated as "the number of connected children" equals all the children changed to the state MB_COMM_PSTATE_REQ_ACCEPTED until they change to the state MB_COMM_PSTATE_DISCONNECTED.

Note the approximately four second delay before the parent detects an unexpected end of communication with a child and changes the state to MB_COMM_PSTATE_DISCONNECTED.

Arguments

None.

Return Values

This function returns the number of children connected to the current parent.

See Also

MBCommPState, MB_CommGetParentState, MB_CommGetChildUser, MB_StartParent, MB_End

Revision History

10/21/2004 Corrected the description, which was not updated since NITRO-SDK 2.0 PR5.
09/10/2004 Revised description.
08/09/2004 Initial version.