wut v1.8.0
Wii U Toolchain
Loading...
Searching...
No Matches
wbc.h
Go to the documentation of this file.
1#pragma once
2#include <wut.h>
3#include <padscore/wpad.h>
4
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17
26
27
28// TODO: Check result, it seems to return total raw pressure data, not weight.
29uint32_t
31
38uint32_t
39WBCGetBatteryLevel(uint8_t battery);
40
47BOOL
49
55double
56WBCGetGCWeight(double weight);
57
61double
63
67uint32_t
69
76WBCGetTCWeight(double weight,
77 double *correctedWeight,
78 const WPADStatusBalanceBoard *status);
79
89WBCGetTGCWeight(double inputWeight,
90 double *correctedWeight,
91 const WPADStatusBalanceBoard *status);
92
97WBCGetZEROPoint(double zeros[],
98 uint32_t count);
99
112int32_t
114 double weights[],
115 uint32_t count);
116
127WBCSetZEROPoint(const double zeros[],
128 uint32_t count);
129
137BOOL
139
140#ifdef __cplusplus
141}
142#endif
143
WBCError WBCSetZEROPoint(const double zeros[], uint32_t count)
Resets the zero weight value.
double WBCGetGCWeight(double weight)
Returns gravity-corrected weight.
uint32_t WBCGetProductArea(void)
Always returns 0.
BOOL WBCSetupCalibration(void)
Starts the calibration of Balance Board.
int32_t WBCRead(WPADStatusBalanceBoard *status, double weights[], uint32_t count)
Converts the raw pressure data into weight values.
WBCError
Definition wbc.h:19
uint32_t WBCGetABSWeight(void)
double WBCGetGravCoff(void)
Returns the gravity coefficient.
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.
BOOL WBCGetCalibrationStatus(void)
Checks if the Balance Board calibration is completed.
WBCError WBCGetZEROPoint(double zeros[], uint32_t count)
Return the current zeros for each sensor.
uint32_t WBCGetBatteryLevel(uint8_t battery)
Converts raw battery value to a level.
@ WBC_ERROR_INVALID
Definition wbc.h:24
@ WBC_ERROR_NONE
Definition wbc.h:20
@ WBC_ERROR_NO_CONTROLLER
Definition wbc.h:21
@ WBC_ERROR_NOT_READY
Definition wbc.h:22
@ WBC_ERROR_BAD_TEMPERATURE
Definition wbc.h:23
Balance Board status.
Definition wpad.h:653
int32_t BOOL
Definition wut_types.h:7