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: wbc.h,v $ 14 Revision 1.5 2008/04/18 10:37:37 tojo 15 Changed API of WBCGetTGCWeight. 16 17 Revision 1.4 2008/04/17 06:35:26 tojo 18 Removed WBC_ERR_NO_BATTERY 19 20 Revision 1.3 2008/04/17 05:23:37 tojo 21 Changed API for WBCSetupCalibration. 22 23 Revision 1.2 2008/04/15 10:04:59 tojo 24 Re-defined error codes. 25 26 Revision 1.1 2008/03/26 08:47:23 urata 27 Initial checkin. 28 29 $NoKeywords: $ 30 *---------------------------------------------------------------------------*/ 31 32 #ifndef __WBC_H__ 33 #define __WBC_H__ 34 35 #include <revolution/wpadBalance.h> 36 37 #ifdef __cplusplus 38 extern "C" { 39 #endif 40 41 #define WBC_ERR_NONE 0 42 #define WBC_ERR_NO_CONTROLLER -1 43 #define WBC_ERR_BUSY -2 44 #define WBC_ERR_WRONG_TEMP -3 45 #define WBC_ERR_WRONG_PARAM -4 46 47 48 BOOL WBCSetupCalibration ( void ); 49 BOOL WBCGetCalibrationStatus ( void ); 50 s32 WBCRead ( WPADBLStatus *status, double weight[], u32 size ); 51 s32 WBCGetBatteryLevel ( u8 battery ); 52 s32 WBCSetZEROPoint ( double press_ave[], u32 size ); 53 s32 WBCGetTGCWeight ( double total_weight_ave, double *tgc_weight, WPADBLStatus *status ); 54 55 #ifdef __cplusplus 56 } 57 #endif 58 #endif // __WBC_H__