void SPI_RF_WriteByte(uint8_t *WriteBuff, uint16_t Size)
{
HAL_StatusTypeDef status = HAL_ERROR;
// status = HAL_SPI_Transmit(&hspi2, WriteBuff, Size, 3000);//3000
status =HAL_SPI_TransmitReceive(&hspi2, WriteBuff, WriteBuff, Size,3000);//3000
if(status != HAL_OK)
{
}
}
|