summaryrefslogtreecommitdiff
path: root/utils/nwztools/plattools/nwz_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/nwztools/plattools/nwz_lib.h')
-rw-r--r--utils/nwztools/plattools/nwz_lib.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/nwztools/plattools/nwz_lib.h b/utils/nwztools/plattools/nwz_lib.h
index 86f11ac346..5c8ad3e50c 100644
--- a/utils/nwztools/plattools/nwz_lib.h
+++ b/utils/nwztools/plattools/nwz_lib.h
@@ -32,6 +32,7 @@
32 32
33#include "nwz_keys.h" 33#include "nwz_keys.h"
34#include "nwz_fb.h" 34#include "nwz_fb.h"
35#include "nwz_adc.h"
35 36
36/* run a program and exit with nonzero status in case of error 37/* run a program and exit with nonzero status in case of error
37 * argument list must be NULL terminated */ 38 * argument list must be NULL terminated */
@@ -61,6 +62,7 @@ bool nwz_key_event_is_press(struct input_event *evt);
61bool nwz_key_event_get_hold_status(struct input_event *evt); 62bool nwz_key_event_get_hold_status(struct input_event *evt);
62/* get keycode name */ 63/* get keycode name */
63const char *nwz_key_get_name(int keycode); 64const char *nwz_key_get_name(int keycode);
65
64/* open framebuffer device */ 66/* open framebuffer device */
65int nwz_fb_open(bool lcd); 67int nwz_fb_open(bool lcd);
66/* close framebuffer device */ 68/* close framebuffer device */
@@ -70,4 +72,13 @@ int nwz_fb_get_brightness(int fd, struct nwz_fb_brightness *bl);
70/* set backlight brightness (return -1 on error, 1 on success) */ 72/* set backlight brightness (return -1 on error, 1 on success) */
71int nwz_fb_set_brightness(int fd, struct nwz_fb_brightness *bl); 73int nwz_fb_set_brightness(int fd, struct nwz_fb_brightness *bl);
72 74
75/* open adc device */
76int nwz_adc_open(void);
77/* close adc device */
78void nwz_adc_close(int fd);
79/* get channel name */
80const char *nwz_adc_get_name(int ch);
81/* read channel value, return -1 on error */
82int nwz_adc_get_val(int fd, int ch);
83
73#endif /* _NWZLIB_H_ */ 84#endif /* _NWZLIB_H_ */