/**
- * @brief Gets the temperature value.
+ * @brief Gets the temperature value based on the specified device type.
+ * @details Retrieves the current temperature value of a specified device.
* @since_tizen 5.5
+ * @remarks Ensure that the provided @a temp pointer is valid and has enough memory allocated.
* @param[in] type The index of the device
+ * DEVICE_THERMAL_AP \n
+ * DEVICE_THERMAL_CP \n
+ * DEVICE_THERMAL_BATTERY
* @param[out] temp The temperature value in degrees Celsius
- * @return @c 0 on success,
- * otherwise a negative error value
+ * @return @c 0 on success, otherwise a negative error value
* @retval #DEVICE_ERROR_NONE Successful
* @retval #DEVICE_ERROR_NOT_SUPPORTED Not supported device
* @retval #DEVICE_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #DEVICE_ERROR_OPERATION_FAILED Operation failed
+ * @code
+ * #include <device/temperature.h>
+ * ...
+ * int temperature = 0;
+ * int ret = 0;
+ * ...
+ * ret = device_thermal_get_temperature(DEVICE_THERMAL_AP, &temperature);
+ * if (ret == DEVICE_ERROR_NONE) {
+ * ...
+ * }
+ * ...
+ * @endcode
+ * @see device_thermal_e
*/
int device_thermal_get_temperature(device_thermal_e type, int *temp);