# WBT_RequestSync

## C Specification

  `#include <nitro/wbt.h>`
  `BOOL WBT_RequestSync(u16 target, WBTCallback callback);`

## Arguments

target | The target AID bitmap that synchronizes the parent and child. For the child, only the parent "1" can be specified.
callback | The `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 the command and returns TRUE. Otherwise, the function does nothing and returns FALSE.

## Description

Synchronizes communication between parent and child. The send/receive packet size set by the parent is copied 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 the 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

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

CONFIDENTIAL