Smart Remote 3 nRF52 v1.2
drv_buzzer.h
1 /*$$$LICENCE_NORDIC_STANDARD<2016>$$$*/
2 
9 #ifndef __DRV_BUZZER__
10 #define __DRV_BUZZER__
11 
12 #include <stdint.h>
13 #include "sdk_errors.h"
14 
16 typedef enum
17 {
18  DRV_BUZZER_EVT_STOPPED = 0,
19  DRV_BUZZER_EVT_STARTED = 1,
21 
23 typedef void (*drv_buzzer_event_handler_t)(drv_buzzer_evt_t buzzer_event);
24 
31 ret_code_t drv_buzzer_init(drv_buzzer_event_handler_t buzzer_event_handler);
32 
39 ret_code_t drv_buzzer_enable(const sr3_buzzer_sound_t *p_sound);
40 
45 ret_code_t drv_buzzer_disable(void);
46 
47 #endif /* __DRV_BUZZER__ */
48 

Documentation feedback | Developer Zone | Subscribe | Updated