Tizen Native API  8.0
Thermal

The Temperature API provides functions to get information about the temperature.

Required Header

#include <device/temperature.h>

Overview

The Temperature API provides the way to get the current thermal value such as Application Processor, Communication Processor and Battery.

Overview

This API is related with the following features:

  • http://tizen.org/feature/thermistor.ap
  • http://tizen.org/feature/thermistor.cp
  • http://tizen.org/feature/thermistor.battery

It is recommended to use features in your application for reliability.

You can check if the device supports the related features for this API by using System Information, and control your application's actions accordingly.

To ensure your application is running only on devices with specific features, please define the features in your manifest file using the manifest editor in the SDK.

More details on using features in your application can be found in the feature element description.

Functions

int device_thermal_get_temperature (device_thermal_e type, int *temp)
 Gets the temperature value.

Enumeration Type Documentation

Enumeration for the device temperature.

Since :
5.5
Enumerator:
DEVICE_THERMAL_AP 

Temperature for Application Processor

DEVICE_THERMAL_CP 

Temperature for Communication Processor

DEVICE_THERMAL_BATTERY 

Temperature for Battery


Function Documentation

int device_thermal_get_temperature ( device_thermal_e  type,
int *  temp 
)

Gets the temperature value.

Since :
5.5
Parameters:
[in]typeThe index of the device
[out]tempThe temperature value in degrees Celsius
Returns:
0 on success, otherwise a negative error value
Return values:
DEVICE_ERROR_NONESuccessful
DEVICE_ERROR_NOT_SUPPORTEDNot supported device
DEVICE_ERROR_INVALID_PARAMETERInvalid parameter
DEVICE_ERROR_OPERATION_FAILEDOperation failed