wut v1.8.0
Wii U Toolchain
Loading...
Searching...
No Matches
Typedefs | Enumerations | Functions
wbc.h File Reference
#include <wut.h>
#include <padscore/wpad.h>
Include dependency graph for wbc.h:

Go to the source code of this file.

Typedefs

typedef enum WBCError WBCError
 

Enumerations

enum  WBCError {
  WBC_ERROR_NONE = 0 ,
  WBC_ERROR_NO_CONTROLLER = -1 ,
  WBC_ERROR_NOT_READY = -2 ,
  WBC_ERROR_BAD_TEMPERATURE = -3 ,
  WBC_ERROR_INVALID = -4
}
 

Functions

uint32_t WBCGetABSWeight (void)
 
uint32_t WBCGetBatteryLevel (uint8_t battery)
 Converts raw battery value to a level.
 
BOOL WBCGetCalibrationStatus (void)
 Checks if the Balance Board calibration is completed.
 
double WBCGetGCWeight (double weight)
 Returns gravity-corrected weight.
 
double WBCGetGravCoff (void)
 Returns the gravity coefficient.
 
uint32_t WBCGetProductArea (void)
 Always returns 0.
 
WBCError WBCGetTCWeight (double weight, double *correctedWeight, const WPADStatusBalanceBoard *status)
 Returns temperature-corrected weight.
 
WBCError WBCGetTGCWeight (double inputWeight, double *correctedWeight, const WPADStatusBalanceBoard *status)
 Applies temperature and gravity correction to weight value.
 
WBCError WBCGetZEROPoint (double zeros[], uint32_t count)
 Return the current zeros for each sensor.
 
int32_t WBCRead (WPADStatusBalanceBoard *status, double weights[], uint32_t count)
 Converts the raw pressure data into weight values.
 
WBCError WBCSetZEROPoint (const double zeros[], uint32_t count)
 Resets the zero weight value.
 
BOOL WBCSetupCalibration (void)
 Starts the calibration of Balance Board.