Smart Remote 3 nRF52 v1.2
drv_touchpad.h
1 /*$$$LICENCE_NORDIC_STANDARD<2016>$$$*/
2 
9 #ifndef __DRV_TOUCHPAD_H__
10 #define __DRV_TOUCHPAD_H__
11 
12 #include <stdbool.h>
13 #include <stdint.h>
14 
15 #include "sdk_errors.h"
16 
18 typedef struct
19 {
20  int16_t x;
21  int16_t y;
22  int8_t scroll;
23  int8_t pan;
24 
25  bool tap;
27 
29 typedef void (*drv_touchpad_read_handler_t)(ret_code_t status, drv_touchpad_data_t *p_data);
30 
37 ret_code_t drv_touchpad_init(drv_touchpad_read_handler_t read_handler);
38 
43 ret_code_t drv_touchpad_enable(void);
44 
49 ret_code_t drv_touchpad_disable(void);
50 
57 
58 #endif /* __DRV_TOUCHPAD_H__ */
59 

Documentation feedback | Developer Zone | Subscribe | Updated