1 /*---------------------------------------------------------------------------* 2 Project: Revolution WBC 3 File: wbc.h 4 5 Copyright 2007 Nintendo. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Log: $ 14 $NoKeywords: $ 15 *---------------------------------------------------------------------------*/ 16 17 #ifndef __WBC_H__ 18 #define __WBC_H__ 19 20 #include <revolution/wpad.h> 21 22 #ifdef __cplusplus 23 extern "C" { 24 #endif 25 26 #define WBC_ERR_NONE WPAD_ERR_NONE 27 #define WBC_ERR_BUSY WPAD_ERR_BUSY 28 #define WBC_ERR_NO_CONTROLLER WPAD_ERR_NO_CONTROLLER 29 30 31 s32 WBCSetupCalibration ( void ); 32 BOOL WBCGetCalibrationStatus ( void ); 33 s32 WBCRead ( WPADBLStatus *status, double weight[], u32 size ); 34 s32 WBCGetBatteryLevel ( u8 battery ); 35 s32 WBCSetZEROPoint ( double press_ave[], u32 size ); 36 double WBCGetTGCWeight ( double total_weight_ave, WPADBLStatus *status ); 37 38 #ifdef __cplusplus 39 } 40 #endif 41 #endif // __WBC_H__