CSK4002_SDK  1.0.0
csk_controller.h
浏览该文件的文档.
1 
12 #ifndef __CSK_CONTROLLER_H__
13 #define __CSK_CONTROLLER_H__
14 
15 #include "csk_common.h"
16 
17 // csk algothrim control
22 void csk_enter_esr_mode(void);
23 
28 void csk_exit_esr_mode(void);
29 
30 // csk uart
35 void csk_uart_init(void);
36 
44 int csk_uart_recv(void *dat, int len, int ms);
45 
53 int csk_uart_send(void *dat, int len, int ms);
54 
55 // csk player
56 
58 typedef enum {
64 
70 void csk_player_start(uint16_t id);
71 
76 void csk_player_stop(void);
77 
83 
84 #endif // __CSK_CONTROLLER_H__
csk_exit_esr_mode
void csk_exit_esr_mode(void)
控制csk退出识别模式
csk_uart_init
void csk_uart_init(void)
串口的初始化,同时会初始化一个串口ringbuffer来存储接收的数据
csk_player_start
void csk_player_start(uint16_t id)
启动播音,非阻塞函数
CSK_PLAYER_IDLE
@ CSK_PLAYER_IDLE
空闲
Definition: csk_controller.h:60
csk_player_status_e
csk_player_status_e
播放器状态
Definition: csk_controller.h:58
csk_enter_esr_mode
void csk_enter_esr_mode(void)
控制csk进入识别模式
csk_player_get_status
csk_player_status_e csk_player_get_status(void)
获取播放器状态
csk_uart_recv
int csk_uart_recv(void *dat, int len, int ms)
从串口ringbuffer里面读取数据
csk_player_stop
void csk_player_stop(void)
停止播音,阻塞函数
csk_uart_send
int csk_uart_send(void *dat, int len, int ms)
通过串口发送数据
CSK_PLAYER_RUNNING
@ CSK_PLAYER_RUNNING
正在播音
Definition: csk_controller.h:62