WBCGetBatteryLevel

Syntax

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

s32  WBCGetBatteryLevel ( u8 battery );

Parameters

battery Specifies the battery value passed from WPADRead within the status structure.

Return Values

Returns a value on a five-segment scale (0 - 4) corresponding to battery power remaining.

Description

This function converts the Wii Balance Board's battery value to a value on a five-segment scale (0 - 4) similar to that of the Wii Remote.

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.
2011/07/20 Initial version.


CONFIDENTIAL