⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 list.11.txt

📁 This archive contains circuit diagram and text documents making up the design of audio spectrum anal
💻 TXT
字号:
//*******************************
// Sending information about
// spectrum and window used to PC
//*******************************
void SendSpectrumInfo(fix *Spectrum, WindowType wt)
{
	unsigned long i;
	unsigned char summa;

	SendByte(0xAA);
	SendByte((unsigned char)wt);
	summa=0xAA+(unsigned char)wt;
	for(i=0;i<256;i++)
	{
		unsigned long SpBin=Spectrum[i];
		SendByte((SpBin>>24)&0xFF);
		SendByte((SpBin>>16)&0xFF);
		SendByte((SpBin>>8)&0xFF);
		SendByte(SpBin&0xFF);

		summa+=((SpBin>>24)&0xFF);
		summa+=((SpBin>>16)&0xFF);
		summa+=((SpBin>>8)&0xFF);
		summa+=(SpBin&0xFF);
	}
	SendByte(0x100-summa);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -