Add explanation about feature 94/68394/3
authorpr.jung <pr.jung@samsung.com>
Wed, 4 May 2016 02:15:29 +0000 (11:15 +0900)
committerpr.jung <pr.jung@samsung.com>
Tue, 10 May 2016 11:14:58 +0000 (20:14 +0900)
Change-Id: Ie89800763842867b0fbd98b0be5fcf243a7ae1ad
Signed-off-by: pr.jung <pr.jung@samsung.com>
include/device.h
include/led.h

index 9969ed9..e2f0532 100755 (executable)
@@ -94,7 +94,7 @@ typedef struct {
  * @param[in] user_data     The user data passed from the callback registration function
  *
  */
-typedef void (*device_battery_cb)(int percent, void *user_data); 
+typedef void (*device_battery_cb)(int percent, void *user_data);
 
 /**
  * @brief Called when the device warn about the battery status.
@@ -108,7 +108,7 @@ typedef void (*device_battery_warn_cb)(device_battery_warn_e status, void *user_
 /**
  * @brief This callback take remained time for fully charged or discharged.
  *
- * @param[in] time         The battery remainig seconds to fully chagred or discharged
+ * @param[in] time         The battery remaining seconds to fully charged or discharged
  * @param[in] user_data    The user data passed from the callback registration function
  *
  */
@@ -256,10 +256,10 @@ int device_battery_is_full(bool *full);
 /**
  * @brief Retrive the remaining time for fully charged or discharged.
  *
- * @remark @a time will be retrieved the time to fully charged or discharged depending on @a type
+ * @remarks @a time will be retrieved the time to fully charged or discharged depending on @a type
  *
  * @param[in]  type   The type of battery remaining time
- * @param[out] time   battery remainig seconds to fully chagred or discharged
+ * @param[out] time   battery remaining seconds to fully charged or discharged
 
  * @return 0 on success, otherwise a negative error value.
  * @retval #DEVICE_ERROR_NONE                          Successful
@@ -274,7 +274,7 @@ int device_battery_get_remaining_time(device_battery_remaining_time_type_e type,
 /**
  * @brief Set callback to be return battery remaining time to fully charged or discharged.
  *
- * @remark @a callback will be retrieved the time to fully charged or discharged depending on @a type
+ * @remarks @a callback will be retrieved the time to fully charged or discharged depending on @a type
  *
  * @param[in] callback      The callback function to set
  * @param[in] user_data     The user data to be passed to the callback function
@@ -292,7 +292,7 @@ int device_battery_set_remaining_time_changed_cb(
 /**
  * @brief Unset battery remaining time callback function.
  *
- * @param[in] type The type of battery remainig time
+ * @param[in] type The type of battery remaining time
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #DEVICE_ERROR_NONE                          Successful
@@ -409,7 +409,7 @@ int device_set_brightness(int display_index, int brightness);
 int device_get_max_brightness(int display_index, int *max_brightness);
 
 /**
- * @brief Sets the display brightness value from registed in settings.
+ * @brief Sets the display brightness value from registered in settings.
  *
  * @details
  * This function set display brightness to condition in the settings.
@@ -461,34 +461,41 @@ int device_set_brightness_to_settings(int display_index, int brightness);
 /**
  * @brief Get brightness value of LED that placed to camera flash.
  *
+ * @remarks This API is related to the following feature: %http://tizen.org/feature/camera.back.flash
+ *
  * @param[out] brightness brightness value of LED (0 ~ MAX)
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #DEVICE_ERROR_NONE                          Successful
  * @retval #DEVICE_ERROR_INVALID_PARAMETER     Invalid parameter
  * @retval #DEVICE_ERROR_OPERATION_FAILED      Operation failed
+ * @retval #DEVICE_ERROR_NOT_SUPPORTED         Not supported device
  */
 int device_flash_get_brightness(int *brightness);
 
 /**
  * @brief Set brightness value of LED that placed to camera flash.
  *
+ * @remarks This API is related to the following feature: %http://tizen.org/feature/camera.back.flash
+ *
  * @param[in] brightness brightness value of LED (0 ~ MAX)
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #DEVICE_ERROR_NONE                          Successful
  * @retval #DEVICE_ERROR_INVALID_PARAMETER     Invalid parameter
  * @retval #DEVICE_ERROR_OPERATION_FAILED      Operation failed
+ * @retval #DEVICE_ERROR_NOT_SUPPORTED         Not supported device
  */
 int device_flash_set_brightness(int brightness);
 
 /**
  * @brief Get max brightness value of LED that placed to camera flash.
  *
- * @remark
- * Brightness control does not support yet. so this functioon always return 1. \n
+ * @remarks
+ * Brightness control does not support yet. so this function always return 1. \n
  * Set function can only use to switch on/off the flash. \n
- * Get function can only use to retrive on/off state of flash.
+ * Get function can only use to retrieve on/off state of flash.
+ * This API is related to the following feature: %http://tizen.org/feature/camera.back.flash
  *
  * @param[out] max_brightness max brightness value of LED
  *
@@ -496,13 +503,14 @@ int device_flash_set_brightness(int brightness);
  * @retval #DEVICE_ERROR_NONE                          Successful
  * @retval #DEVICE_ERROR_INVALID_PARAMETER     Invalid parameter
  * @retval #DEVICE_ERROR_OPERATION_FAILED      Operation failed
+ * @retval #DEVICE_ERROR_NOT_SUPPORTED         Not supported device
  */
 int device_flash_get_max_brightness(int *max_brightness);
 
 /**
  * @brief Get total amount of physical RAM, in kilobytes
  *
- * @remark
+ * @remarks
  *
  * @param[out] total_mem total amount of physical RAM
  *
@@ -516,7 +524,7 @@ int device_memory_get_total(unsigned int *total_mem);
 /**
  * @brief Get available amount of physical RAM, in kilobytes
  *
- * @remark
+ * @remarks
  * Available amount is defined by following formula currently.
  * available mem = MemFree+Buffers+Cached+SwapCached-Shmem
  *
@@ -532,7 +540,7 @@ int device_memory_get_available(unsigned int *avail_mem);
 /**
  * @brief Get time information the CPU has spent performing work.
  *
- * @remark
+ * @remarks
  * Time units are in USER_HZ (typically hundredths of a second).
  *
  * @param[out] time structure of time information the CPU has spent
@@ -547,8 +555,6 @@ int device_cpu_get_system_time(device_system_time_s *time);
 /**
  * @brief Get all of CPU count
  *
- * @remark
- *
  * @param[out] cpu_cnt total count of CPU
  *
  * @return 0 on success, otherwise a negative error value.
@@ -561,8 +567,6 @@ int device_cpu_get_count(int *cpu_cnt);
 /**
  * @brief Get currently frequency of CPU
  *
- * @remark
- *
  * @param[in]  cpu the index of CPU which want to know
  * @param[out] cur_freq currently frequency value of CPU
  *
@@ -576,8 +580,6 @@ int device_cpu_get_current_freq(int cpu, unsigned int *cur_freq);
 /**
  * @brief Get max frequency of CPU
  *
- * @remark
- *
  * @param[in]  cpu the index of CPU which want to know
  * @param[out] max_freq max frequency value of CPU
  *
index e1ffc72..403dc7e 100755 (executable)
@@ -37,6 +37,8 @@ extern "C" {
  * @privlevel public
  * @privilege %http://tizen.org/privilege/led
  *
+ * @remarks This API is related to the following feature: %http://tizen.org/feature/camera.back.flash
+ *
  * @param[out] max_brightness The max brightness value of the LED
  *
  * @return @c 0 on success,
@@ -57,6 +59,8 @@ int device_flash_get_max_brightness(int *max_brightness);
  * @privlevel public
  * @privilege %http://tizen.org/privilege/led
  *
+ * @remarks This API is related to the following feature: %http://tizen.org/feature/camera.back.flash
+ *
  * @param[out] brightness The brightness value of LED (@c 0 ~ MAX)
  *
  * @return @c 0 on success,
@@ -78,6 +82,7 @@ int device_flash_get_brightness(int *brightness);
  * @privilege %http://tizen.org/privilege/led
  *
  * @remarks Since 2.4, this API check camera flash status whether camera API preempted flash or not, so it could be failed if flash was preempted by camera API. In this case, API will return #DEVICE_ERROR_RESOURCE_BUSY error.
+ * This API is related to the following feature: %http://tizen.org/feature/camera.back.flash
  *
  * @param[in] brightness The brightness value of LED (@c 0 ~ MAX)
  *
@@ -109,6 +114,8 @@ typedef enum {
  * @privlevel public
  * @privilege %http://tizen.org/privilege/led
  *
+ * @remarks This API is related to the following feature: %http://tizen.org/feature/led
+ *
  * @param[in] on    Turn on time in milliseconds
  * @param[in] off   Turn off time in milliseconds
  * @param[in] color The Color value \n
@@ -133,6 +140,8 @@ int device_led_play_custom(int on, int off, unsigned int color, unsigned int fla
  * @privlevel public
  * @privilege %http://tizen.org/privilege/led
  *
+ * @remarks This API is related to the following feature: %http://tizen.org/feature/led
+ *
  * @return @c 0 on success,
  *         otherwise a negative error value
  *