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

#define WBC_ERR_NONE             0
#define WBC_ERR_BUSY            -2
#define WBC_ERR_WRONG_TEMP      -3
#define WBC_ERR_WRONG_PARAM     -4

s32  WBCRead ( WPADBLStatus *status, double weight[ ], u32 size );


status Specifies the WPADBLStatus structure passed by WPADRead.
weight Contains weight-converted values. Specifies the array pointer.
size Specifies the weight array size. Space must be allotted for at least four elements.

Return Values

Returns 1 if a person or thing weighing approximately 15.4 pounds or more is on top of the Wii Balance Board. Otherwise returns 0. Returns the following error codes on failure.

WBC_ERR_BUSY Wii Balance Board calibration values have not yet been obtained.
WBC_ERR_WRONG_PARAM Incorrect argument.


This function converts the raw values obtained by WPADRead (press values) into weight values. The press values are refreshed 60 times a second. Run WBCSetupCalibration before using this function.

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


Revision History

2013/05/08 Automated cleanup pass.
2011/07/20 Initial version.