智能家居语音识别模块
#include <string.h>
#include "stm32f10x.h"
#include "usart.h"
#include "user_common.h"
#include "SNR1806/snr1806.h"
#ifndef NULL
#define NULL 0
#endif
static u8 gRevDataBuf[30] = { 0 };
LD3322Handle_t gs_Ld3322Handle =
{
.bl_rev_cmd_flg = 0,
.u16_cmd_num = 0,
.u16_cmd_len = 0,
.pu8_rev_cmd_buf = gRevDataBuf,
.pCmdTable = NULL,
};
/**
*name: ld3322_init
*decription: 语音识别模块初始化
*/
void ld3322_init(void)
{
uart2_init(9600);
}
/**
*name: ld3322_init
*decription: 语音识别模块初始化
*/
void Ld3322_RevOneFrameData( u8 *pDataBuf, u16 u16DataLen)
{
User_MemCpy(gs_Ld3322Handle.pu8_rev_cmd_buf, pDataBuf, u16DataLen);
gs_Ld3322Handle.bl_rev_cmd_flg = CMD_REV_OK;
gs_
原文地址:https://blog.csdn.net/weixin_55656712/article/details/145196585
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!