WVR_GetBatteryTemperatureStatus

WVR_EXPORT WVR_BatteryTemperatureStatus WVR_GetBatteryTemperatureStatus(WVR_DeviceType type)

Get the current temperature status of the battery.

Return
The temperature status of the battery. Return WVR_BatteryTemperatureStatus_Unknown if the device service cannot get the temperature status of the HMD battery. (refer to WVR_BatteryTemperatureStatus)
Version
API Level 1
Parameters
  • type: : Device type to get the InputDeviceState. (refer to WVR_DeviceType)

How to use

Here is an example for the function:

#include <wvr/wvr_device.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

an error code if device service cannot get the temperature status of the battery.

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.