WPADInit

Syntax

#include <cafe/pads/wpad/wpad.h>

void WPADInit( void );

Parameters

None.

Return Values

None.

Description

Performs initialization for the WPAD APIs. This function must be called once before calling any other WPAD API function.

After calling WPADInit, a small addition wait is required. Use WPADGetStatus to poll the state until it returns WPAD_STATE_ENABLED before using additional WPAD functionality.

This function also clears the callback functions registered by the following functions:

Wii U Bluetooth devices will stay connected through system restarts and process switches but only if the time that the library is stopped is less than 10 seconds. For this reason, WPAD initialization should be performed early in the boot up process.

Do Not Call From

Background Do not call this function from the background.
Interrupt handler Do not call this function from any interrupt handler.
Exception handler Do not call this function from any exception handler.
Multiple Cores Do not call this function from more than one Core.

See Also

WPADSetConnectCallback
WPADSetSyncDeviceCallback
WPADSetClearDeviceCallback
WPADSetExtensionCallback
WPADSetSamplingCallback

Revision History

2013/05/08 Automated cleanup pass.
2012/06/27 Removed references to WPADRegisterAllocator.
2012/04/12 Removed references to simple pairing api.
2006/09/18 Mentioned that the registered callbacks will be cleared.
2006/06/19 Added a note to the description that the WPADRegisterAllocator function needs to be called first.
2005/08/01 Initial version.


CONFIDENTIAL