看具体用的什么函数,有分开的,有读写一体
void SPI_Ecah_Buffer_Send(u8* pBuffer u16 NumByteToRead){ for(int i = 0; i < NumByteToRead; i++) { SPI_Conmunication_SendByte(*pBuffer); pBuffer++; }} void SPI_Buffer_Receive(u8* pBuffer u16 NumByteToRead){ while (NumByteToRead--) { *pBuffer = SPI_Conmunication_SendByte (Dummy_Byte); pBuffer++; }}读写一体的函数 void SPI_Ecah_Buffer_Send(u8* str u8* pBuffer u16 NumByteToRead){ for(int i = 0; i < NumByteToRead; i++) { *str = SPI_Conmunication_SendByte(*pBuffer); pBuffer++; str++; }}