1 /*---------------------------------------------------------------------------* 2 Project: WBC 3 File: wbc.h 4 5 Copyright (C) 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 *---------------------------------------------------------------------------*/ 14 15 #ifndef __WBC_H__ 16 #define __WBC_H__ 17 18 #include <cafe/pads/wpad/wpadBalance.h> 19 20 #ifdef __cplusplus 21 extern "C" { 22 #endif 23 24 #define WBC_ERR_NONE 0 25 #define WBC_ERR_NO_CONTROLLER -1 26 #define WBC_ERR_BUSY -2 27 #define WBC_ERR_WRONG_TEMP -3 28 #define WBC_ERR_WRONG_PARAM -4 29 30 31 BOOL 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 s32 WBCGetTGCWeight ( double total_weight_ave, double *tgc_weight, WPADBLStatus *status ); 37 38 #ifdef __cplusplus 39 } 40 #endif 41 #endif // __WBC_H__ 42 43