2024年5月14日发(作者:)
AMBE-1000 AMBE-1000 Serial Interrupt Programming (C语言)
Author: tsp语音芯片
The openning date: 2006.10.20日
The closing date: 2006.11.16日
Function: 没有串口传输握手协议,串口中断接收,编码好之后马上串口发送,串口发送
波特率19200
//****************************************************************************//
//
//
the Area of Header
//********************************************************//
#include
#include
#include
#include
//******************************************//
//
//
the Definition of Constant
//***************************************************************//
//帧格式ID号
#define VOICE_DATA 0x00 //语音帧
#define RATE_CONFIG 0x01 //码率设置帧
#define VOLUME_CONFIG 0x02 //音量设置帧
#define SPECIAL_CONFIG 0x03 //特殊功能设置帧
#define POWER_CONFIG 0x04 //电源模式设置帧
#define DUAL_TONE 0x06 //双音频信号产生帧
#define WAKE_UP 0xFE //唤醒帧
//帧头位置定义
#define HEADER_H 0 //第零字节帧头标志
#define HEADER_L 1 //第一字节
发布者:admin,转转请注明出处:http://www.yc00.com/web/1715621271a2646184.html
评论列表(0条)