diff options
author | Eunyoung Lee <ey928.lee@samsung.com> | 2017-07-21 17:41:39 +0900 |
---|---|---|
committer | Eunyoung Lee <ey928.lee@samsung.com> | 2017-07-21 17:43:48 +0900 |
commit | 5782ff3c7f400a0dba54c8fa2ac857d5d768674f (patch) | |
tree | bb57847e724cc6d7d707203167ad101e1fbf5e14 /inc/resource_internal.h | |
parent | 642dd73da4b7803e54891eb30251f6e52f44cbc4 (diff) | |
download | position-finder-server-5782ff3c7f400a0dba54c8fa2ac857d5d768674f.tar.gz position-finder-server-5782ff3c7f400a0dba54c8fa2ac857d5d768674f.tar.bz2 position-finder-server-5782ff3c7f400a0dba54c8fa2ac857d5d768674f.zip |
Changed the method of reading the sensor value from the ultrasonic sensor
Change-Id: I2ca69857c66db8c2b3ae3bbd2867cc33734d59c0
Diffstat (limited to 'inc/resource_internal.h')
-rw-r--r-- | inc/resource_internal.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/inc/resource_internal.h b/inc/resource_internal.h index 786266e..d63a63e 100644 --- a/inc/resource_internal.h +++ b/inc/resource_internal.h @@ -38,6 +38,15 @@ struct _resource_s { }; typedef struct _resource_s resource_s; +typedef void (*resource_read_cb)(double value, void *data); + +struct _resource_read_cb_s { + resource_read_cb cb; + void *data; + int pin_num; +}; +typedef struct _resource_read_cb_s resource_read_s; + extern resource_s *resource_get_info(int pin_num); extern void resource_close_all(void); |