typedef unsigned char u8; //unsigned 8 bit type definition typedef unsigned int u16; //unsigned 16 bit type definition typedef unsigned long u32; //unsigned 32 bit type definition u8 Get_No_Load_Current(void) { u32 inl; inl=237*(u32)speed/100-14*(u32)speed*(u32)speed/1000-36; return((u8)inl); } u8 Get_Param(void) { u32 temp; temp=(u32)speed*(u32)speed*48/1000-111*(u32)speed/10+650; return((u8)temp); }