-
void InitGoertzel(void)
作用:初始化算法参数
用法:采用算法进行检测前执行一次,如果需要改变参数,调用SetParameter(...
void InitGoertzel(void)
作用:初始化算法参数
用法:采用算法进行检测前执行一次,如果需要改变参数,调用SetParameter()
float CGoertzel::GetMagnitude(unsigned char * sampleData, int length) //算法主接口
作用:对采集下来的音频数据用算法处理,返回一个结果
参数:sampleData-音频数据缓冲地址指针;
length-缓冲区尺寸(音频数据数量),字节数;
返回值:返回算法结果。
void SetParameter(DWORD set_SampleRate, DWORD set_TargetFreq, DWORD set_BlockSize)
作用:设置算法参数;
参数:set_SampleRate-音频数据抽样速率;
set_TargetFreq-目标信号频率;
set_BlockSize-算法数据块尺寸(采样点);
用法:调用本函数后,需要调用一次InitGoertzel(void)才会生效-void InitGoertzel (void) function: initialization algorithm parameters Usage: The algorithm performs a pre-test, if the need to change the parameters, calling SetParameter () float CGoertzel:: GetMagnitude (unsigned char* sampleData, int length)// Algorithm for the main interface role: to collect audio data from the treatment algorithm to return a result parameter: sampleData-audio data buffer address pointer length-buffer size (the number of audio data), number of bytes return value: the return of
- 2023-03-11 13:30:04下载
- 积分:1
-
DDS发生芯片ad9854的ARM控制程序
DDS发生芯片ad9854的ARM控制程序
- 2022-04-13 12:04:50下载
- 积分:1
-
汽车电子上现在最火热的总线之一LIN总线的单片机实现。
汽车电子上现在最火热的总线之一LIN总线的单片机实现。-automotive electronics on the most popular one of the LIN Bus Bus MCU.
- 2022-01-25 20:12:07下载
- 积分:1
-
c51拼音输入法~~带了很多注解~很实用
c51拼音输入法~~带了很多注解~很实用-Pinyin Input Method C51 ~ ~ ~ with a lot of very useful comments
- 2022-02-05 04:30:19下载
- 积分:1
-
单片机+l298控制两个电机方向和转速,单片机为c8051f330
单片机+l298控制两个电机方向和转速,单片机为c8051f330-Singlechip+ L298 control two motor direction and speed, single-chip microcomputer for C8051F330
- 2023-09-04 01:20:03下载
- 积分:1
-
:章介绍了数据采集系统中STC12系列单片机与PC机之间的串行通信。设计了sTc12c2052AD 与
MAX232的硬件电路,使用汇编语言编程,设置了串行...
:章介绍了数据采集系统中STC12系列单片机与PC机之间的串行通信。设计了sTc12c2052AD 与
MAX232的硬件电路,使用汇编语言编程,设置了串行1:7的工作方式,相应的波特率计算方法及特点,发送并接
收数据。单片机从EEPROM 中读取数据,通过R.S-232将其传入PC,并将数据存储在24C02中。-: Chapter introduces data acquisition system STC12 Series MCU and PC serial communication between machines. Designed sTc12c2052AD with MAX232 hardware circuit, the use of assembly language programming, set up the way the work of serial 1:7, the corresponding baud rate calculation method and the characteristics of sending and receiving data. Single-chip EEPROM read data from, by R. S-232 to incoming PC, and data storage in the 24C02.
- 2022-03-19 23:15:52下载
- 积分:1
-
This procedure for the AD9850 (DDS) Direct Digital Frequency Synthesizer C langu...
此程序为AD9850(DDS)直接数字频率合成器C语言源码。用125M的有源晶振,频率无失真输出可达到40M。该程序包括FYD12864LCD显示程序加4X4矩阵键盘扫描,可步进1M,1K,和任意频率输入。及相位设置。-This procedure for the AD9850 (DDS) Direct Digital Frequency Synthesizer C language source code. With 125M active crystal, the frequency output can be achieved without distortion 40M. The process includes the display program FYD12864LCD plus 4X4 matrix keyboard scanning, may be stepping 1M, 1K, and arbitrary frequency input. And phase settings.
- 2022-01-25 16:12:13下载
- 积分:1
-
PIC microcontroller is used to test the steering gear source code.
PIC单片机用于对舵机进行测试的源代码。-PIC microcontroller is used to test the steering gear source code.
- 2023-02-10 18:35:03下载
- 积分:1
-
单相电机变频驱动原码,采用DISPIC30芯片
单相电机变频驱动原码,采用DISPIC30芯片-Single-phase motor inverter drive the original code, the use of chip DISPIC30
- 2023-03-28 21:05:04下载
- 积分:1
-
IIC 单片机io口模拟程序asm
IIC 单片机io口模拟程序asm-IIC SCM io mouth simulation program asm
- 2022-05-05 15:16:34下载
- 积分:1