void Data_Change(unsigned long TEMP, u8 *HighBit,u8 *MiddleHigh,u8 *MiddleLow,u8 *LowBit)
{
*HighBit = (unsigned char)(TEMP>>24);
*MiddleHigh = (unsigned char)(TEMP>>16);
*MiddleLow = (unsigned char)(TEMP>>8);
*LowBit = (unsigned char)(TEMP);
}
只是在程序中加了并使用了这段函数。
Data_Change(ScrewPitch,0,&WBTxBuffer[17],&WBTxBuffer[16],&WBTxBuffer[15]); |