CSK4002_SDK  1.0.0
csk_callback.h
浏览该文件的文档.
1 
13 #ifndef __CSK_CALLBACK_H__
14 #define __CSK_CALLBACK_H__
15 
16 #include "csk_common.h"
17 
19 typedef enum {
26 } csk_event_e;
27 
42 typedef void (*csk_handler_wake_up_t)(keyword_attrs_t *key_attrs);
43 
49 typedef void (*csk_handler_esr_recognition_t)(keyword_attrs_t *key_attrs);
50 
55 typedef void (*csk_handler_esr_timeout_t)(void);
56 
61 typedef void (*csk_handler_player_start_t)(void);
62 
67 typedef void (*csk_handler_player_finish_t)(void);
68 
92 void csk_handler_register(csk_event_e event, void *handler);
93 
94 void *g_csk_handlers[CSK_EVENT_MAX];
95 
96 #endif // __CSK_CALLBACK_H__
CSK_EVENT_WAKE_UP
@ CSK_EVENT_WAKE_UP
唤醒回调事件
Definition: csk_callback.h:20
CSK_EVENT_PLAYER_START
@ CSK_EVENT_PLAYER_START
播音开始回调事件
Definition: csk_callback.h:23
csk_handler_player_start_t
void(* csk_handler_player_start_t)(void)
播音开始回调函数原型
Definition: csk_callback.h:61
CSK_EVENT_MAX
@ CSK_EVENT_MAX
回调事件个数
Definition: csk_callback.h:25
csk_handler_register
void csk_handler_register(csk_event_e event, void *handler)
回调注册函数
csk_handler_esr_recognition_t
void(* csk_handler_esr_recognition_t)(keyword_attrs_t *key_attrs)
命令词识别回调函数原型
Definition: csk_callback.h:49
csk_handler_player_finish_t
void(* csk_handler_player_finish_t)(void)
播音完成回调函数原型
Definition: csk_callback.h:67
csk_event_e
csk_event_e
回调事件类型
Definition: csk_callback.h:19
CSK_EVENT_ESR_TIMEOUT
@ CSK_EVENT_ESR_TIMEOUT
识别超时回调事件
Definition: csk_callback.h:22
CSK_EVENT_ESR_RECOGNITION
@ CSK_EVENT_ESR_RECOGNITION
命令词识别回调事件
Definition: csk_callback.h:21
csk_handler_esr_timeout_t
void(* csk_handler_esr_timeout_t)(void)
识别超时回调函数原型
Definition: csk_callback.h:55
csk_handler_wake_up_t
void(* csk_handler_wake_up_t)(keyword_attrs_t *key_attrs)
唤醒回调函数原型
Definition: csk_callback.h:42
CSK_EVENT_PLAYER_FINISH
@ CSK_EVENT_PLAYER_FINISH
播音完成回调事件
Definition: csk_callback.h:24