KPADEnableDPD

Syntax

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

void KPADEnableDPD( s32 chan );

Parameters

chan One of the WPAD_CHANn values.

Return Values

None.

Description

This function internally calls the WPADControlDpd and WPADSetDataFormat functions, and issues requests to turn on the DPD module for the Wii remote and to change the data format.

The library attempts to issue requests when data is received from the Wii remote. If issuing a request fails, the system tries again the next time data is received. If issuing a request succeeds, the timer in the WPAD library for automatically disconnecting is reset because the data format changes.

IMPORTANT:
From the viewpoint of battery consumption, it is prohibited to turn on DPD functionality in applications that do not use it.

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

KPADDisableDPD
WPADControlDpd
WPADSetDataFormat

Revision History

2013/05/08 Automated cleanup pass.
2008/03/17 Added mention that the data format changes and that the timer for automatic disconnection is reset.
2006/09/07 Initial version.


CONFIDENTIAL