📄 profile.h
字号:
//
// Project: Experiment 1.6.5 Profile - Chapter 1
// File name: profile.h
//
// Description: This is the header file for experiment 1.6.5 profile
//
// For the book "Real Time Digital Signal Processing:
// Implementation and Application, 2nd Ed"
// By Sen M. Kuo, Bob H. Lee, and Wenshun Tian
// Publisher: John Wiley and Sons, Ltd
//
// Tools used: CCS v.2.12.07
// TMS320VC5510 DSK Rev-C
//
// This wav file header is pre-calculated.
// It can only be used for this experiment.
short wavHeader[44]={
0x52, 0x49, 0x46, 0x46, // RIFF
0xA4, 0x3E, 0x00, 0x00, // 16036 (36 bytes + 16000 bytes data)
0x57, 0x41, 0x56, 0x45, // WAVE
0x66, 0x6D, 0x74, 0x20, // fmt
0x10, 0x00, 0x00, 0x00, // PCM audio
0x01, 0x00, 0x01, 0x00, // Linear PCM, 1-channel
0x40, 0x1F, 0x00, 0x00, // 8kHz sampling
0x80, 0x3E, 0x00, 0x00, // Byte rate = 16000
0x02, 0x00, 0x10, 0x00, // Block align = 2, 16-bit/sample
0x64, 0x61, 0x74, 0x61, // data
0x80, 0x3E, 0x00, 0x00}; // 16000 data bytes
// Sine wave constant
#define FREQ 1000.0 // Sine wave frequency
#define SR 8000.0 // Sampling rate
#define TWOPI_f_F (3.1415926*2.0*FREQ/SR)
// Function prototype
short sinewave(short n);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -