WVR_GetBatteryTemperatureStatus

WVR_EXPORT WVR_BatteryTemperatureStatus WVR_GetBatteryTemperatureStatus(WVR_DeviceType type)

Get the current status of temperature of battery.

Return
The Status of temperature of battery. (refer to WVR_BatteryTemperatureStatus)
Parameters
  • type -

    Type of the device to get the InputDeviceState. (refer to WVR_DeviceType)

How to use

Here is an example for the function:

#include <wvr/wvr_status.h>

// To get HMD device Temperature Status

WVR_BatteryTemperatureStatus status;
Status = WVR_GetBatteryTemperatureStatus(WVR_DeviceType_HMD);

switch(Status)
{
    case WVR_BatteryTemperatureStatus_Unknown:
        LOGI("HMD Device Battery Temperature Statu is Unknown.");
        break;
    case WVR_BatteryTemperatureStatus_Normal:
        LOGI("HMD Device Battery Temperature Statu is Normal.");
        break;
    case WVR_BatteryTemperatureStatus_Overheat:
        LOGI("HMD Device Battery Temperature Statu is Overheat.");
        break;
    case WVR_BatteryTemperatureStatus_UltraOverheat:
        LOGI("HMD Device Battery Temperature Statu is UltraOverheat.");
        break;
}

Temperature Status includes the following below:

enum WVR_BatteryTemperatureStatus

The status of battery temperature.

Values:

WVR_BatteryTemperatureStatus_Unknown = 0
WVR_BatteryTemperatureStatus_Normal = 1

battery temperature is normal.

WVR_BatteryTemperatureStatus_Overheat = 2

warning, battery temperature is high.

WVR_BatteryTemperatureStatus_UltraOverheat = 3

battery temperature is too high.