Demo entry 6785215

轩文

   

Submitted by 敬克拉 on Mar 14, 2019 at 03:38
Language: C. Code size: 256 Bytes.

unsigned long SPI_Read_Result(unsigned char Reg_Read)  
{  
unsigned short int Temp_Result; // Temp_Result用于保存16位的数据。  
SPI_Write_8(Reg_Read); // Reg_Read为寄存器的读操作码。  
Delay(5);  
Temp_Result=SPI_ ReadRegister();  
return(Temp_Result); // 返回结果。  
}  

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).