diff options
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); |