WBT_RequestSync 

Syntax

#include <nitro/wbt.h>

BOOL WBT_RequestSync(u16 target, WBTCallback callback);

Arguments

target Target AID bitmap that synchronizes the parent and child. For the child, only the parent "1" can be specified.
callback WBTCallback format function that is notified when the command completes. This callback is called from inside the WBT_MpChildRecvHook function.

Return Values

If no command is currently processing, the function issues a command and returns TRUE. Otherwise, the function does nothing and returns FALSE.

Description

Synchronizes communication with the specified target devices. Carries out this synchronization between parent and child, copying the send/receive packet size configured on the parent to the child.

The call fails if a command is still processing.

Each child device calculates the transfer unit size and bitmap buffer size based on this size setting. Therefore, this function must be called at least once before calling the WBT_GetBlock function.

See Also

WBT_GetBlockInfo
WBT_GetBlock
WBT_PutUserData

Revision History

2005/06/01 Added text indicating that the callback is called from the WBT_MpChildRecvHook function.
2004/09/21 Initial version.


CONFIDENTIAL