summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorBoyeon <boyeon.son@samsung.com>2019-01-31 18:02:25 +0900
committerBoyeon <boyeon.son@samsung.com>2019-01-31 18:11:21 +0900
commit1eb948c259df6ce7bf2e5c60a1ef86867731c8b6 (patch)
treedc6752ea808da9f869a98fd8ecf8e1f8643fec7b /inc
parent45bc5a4f7661a7a876e8fbbca6a96fb8b3626df7 (diff)
downloadst-things-light-1eb948c259df6ce7bf2e5c60a1ef86867731c8b6.tar.gz
st-things-light-1eb948c259df6ce7bf2e5c60a1ef86867731c8b6.tar.bz2
st-things-light-1eb948c259df6ce7bf2e5c60a1ef86867731c8b6.zip
Fix comments
Change-Id: I414cf7f45fbaef0498b84343c17b59b69e915124
Diffstat (limited to 'inc')
-rwxr-xr-xinc/resource/resource_infrared_motion_sensor.h9
-rwxr-xr-xinc/resource/resource_led.h10
2 files changed, 14 insertions, 5 deletions
diff --git a/inc/resource/resource_infrared_motion_sensor.h b/inc/resource/resource_infrared_motion_sensor.h
index 612db3f..49062e6 100755
--- a/inc/resource/resource_infrared_motion_sensor.h
+++ b/inc/resource/resource_infrared_motion_sensor.h
@@ -18,17 +18,16 @@
#define __POSITION_FINDER_RESOURCE_INFRARED_MOTION_SENSOR_H__
/**
- * @brief Reads the value of gpio connected infrared motion sensor(HC-SR501).
- * @param[in] pin_num The number of the gpio pin connected to the infrared motion sensor
+ * @brief Reads value of gpio connected infrared motion sensor (HC-SR501)
+ * @param[in] pin_num The gpio pin number for the infrared motion sensor
* @param[out] out_value The value of the gpio (zero or non-zero)
* @return 0 on success, otherwise a negative error value
- * @see If the gpio pin is not open, creates gpio handle before reading the value of gpio.
+ * @see If the gpio pin is not open, create gpio handle before reading the value
*/
extern int resource_read_infrared_motion_sensor(int pin_num, uint32_t *out_value);
/**
- * @brief Releases the gpio handle and changes the gpio pin state to the close(0).
- * @param[in] pin_num The number of the gpio pin connected to the infrared motion sensor
+ * @brief Releases the gpio handle
*/
extern void resource_close_infrared_motion_sensor(void);
diff --git a/inc/resource/resource_led.h b/inc/resource/resource_led.h
index 44b058a..1a81a18 100755
--- a/inc/resource/resource_led.h
+++ b/inc/resource/resource_led.h
@@ -17,8 +17,18 @@
#ifndef __POSITION_FINDER_RESOURCE_LED_H__
#define __POSITION_FINDER_RESOURCE_LED_H__
+/**
+ * @brief Writes value of gpio connected led light
+ * @param[in] pin_num The gpio pin number for the led light
+ * @param[out] out_value The value of turniing the led light on/off
+ * @return 0 on success, otherwise a negative error value
+ * @see If the gpio pin is not open, create gpio handle before writing the value
+ */
extern int resource_write_led(int pin_num, int write_value);
+/**
+ * @brief Releases the gpio handle
+ */
extern void resource_close_led(void);
#endif /* __POSITION_FINDER_RESOURCE_LED_H__ */