list.11.txt

来自「This archive contains circuit diagram an」· 文本 代码 · 共 28 行

TXT
28
字号
//*******************************
// 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 + =
减小字号Ctrl + -
显示快捷键?