Tizen HAL API  1.0
Thermal

The Thermal provides functions to get information about the temperature.

Required Header

#include <hal-device-thermal.h>

Overview

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

The Thermal functions provide thermal information including:

For more information on the Thermal features and the macros, see HAL Thermal programming guides and tutorials.

Typedefs

typedef struct
_hal_backend_device_thermal_funcs 
hal_backend_device_thermal_funcs
 Structure for Thermal functions.
typedef void(* hal_device_thermal_updated_cb )(hal_device_thermal_info_s *info, void *data)
 Called when a thermal information is handled.

Data Structure Documentation

struct _hal_backend_device_thermal_funcs

Structure for Thermal functions.

Since:
HAL_MODULE_DEVICE_THERMAL 1.0

Data Fields

int(* get_info )(hal_device_thermal_e type, hal_device_thermal_info_s *info)
int(* register_changed_event )(hal_device_thermal_updated_cb updated_cb, void *user_data)
int(* unregister_changed_event )(hal_device_thermal_updated_cb updated_cb)

Field Documentation

Register thermal event

struct hal_device_thermal_info_s

Structure for Thermal information.

Since:
HAL_MODULE_DEVICE_THERMAL 1.0

Data Fields

int temp
int adc

Field Documentation

Temperature value in Celsius degree


Typedef Documentation

Structure for Thermal functions.

Since:
HAL_MODULE_DEVICE_THERMAL 1.0
typedef void(* hal_device_thermal_updated_cb)(hal_device_thermal_info_s *info, void *data)

Called when a thermal information is handled.

Since:
HAL_MODULE_DEVICE_THERMAL 1.0
Parameters:
[out]infoThermal information
[out]user_dataUser data passed

Enumeration Type Documentation

Enumeration for types of thermal.

Since:
HAL_MODULE_DEVICE_THERMAL 1.0
Enumerator:
HAL_DEVICE_THERMAL_AP 

AP temperature

HAL_DEVICE_THERMAL_CP 

CP temperature

HAL_DEVICE_THERMAL_BATTERY 

Battery temperature