# WBT_InitParent

## Syntax

  `#include <nitro/wbt.h>`
  `void WBT_InitParent(int send_packet_size, int recv_packet_size, WBTCallback callback);`

## Arguments

`send_packet_size` | Parent device packet size for MP communication that can be used for WBT. This value must be larger than `WBT_PACKET_SIZE_MIN`.
`recv_packet_size` | Child device packet size for MP communication that can be used for WBT. This value must be larger than `WBT_PACKET_SIZE_MIN`.
`callback` | `WBTCallback`-type function that notifies an event generated separately from any particular command. In this function, the callback is notified as a `WBT_CMD_SYSTEM_CALLBACK` command. This callback is called from inside the `WBT_MpParentRecvHook` function.

## Return Values

None.

## Description

Initializes the WBT library as a parent. This function can be used only by a wireless parent.
There are no special conditions, such as wireless library status, related to calling this function.

## See Also

`WBT_InitChild`
`WBT_End`
`WBT_MpParentRecvHook`
`WBTCallback`

## Revision History

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

CONFIDENTIAL