Smart Remote 3 nRF52 v1.2
drv_gyro.h
1 /*$$$LICENCE_NORDIC_STANDARD<2016>$$$*/
2 
10 #ifndef __DRV_GYRO_H__
11 #define __DRV_GYRO_H__
12 
13 #include <stdbool.h>
14 #include <stdint.h>
15 
16 #include "sdk_errors.h"
17 #include "AIR_MOTION_Lib.h"
18 
20 typedef void (*drv_gyro_ready_handler_t)(void);
21 
23 typedef void (*drv_gyro_read_handler_t)(ret_code_t status,
24  t_struct_AIR_MOTION_ProcessDeltaSamples *p_samples);
25 
33 ret_code_t drv_gyro_init(drv_gyro_ready_handler_t ready_handler,
34  drv_gyro_read_handler_t read_handler);
35 
40 ret_code_t drv_gyro_enable(void);
41 
46 ret_code_t drv_gyro_disable(void);
47 
54 ret_code_t drv_gyro_schedule_read(t_struct_AIR_MOTION_ProcessDeltaSamples* p_samples);
55 
56 #endif /* __DRV_GYRO_H__ */
57 

Documentation feedback | Developer Zone | Subscribe | Updated