WPADGetAddress

Syntax

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

#define WPAD_CHAN0               0
#define WPAD_CHAN1               1
#define WPAD_CHAN2               2
#define WPAD_CHAN3               3
  
#define WPAD_ADDR_LEN            6

void WPADGetAddress( s32 chan, u8 *addr );

Parameters

chan One of the WPAD_CHANn values.
addr A pointer to the buffer that copies the Wii remote's unique ID.

Return Values

None.

Description

Gets the unique ID of the Wii remote for the specified channel. The addr argument must have at least 6 bytes. If a Wii remote is not connected to the specified channel, zero is copied to the addr argument.

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.

Revision History

2013-05-08 Automated cleanup pass.
2006-06-19 Initial version.


CONFIDENTIAL