/* Set SPI1 the number of data frame to be received.  */
void SSI_SetReadLen(SPI_TypeDef *spi_dev, u32 DataFrameNumber)
/* Set SPI1 the number of data frame to be received.  */
void SSI_SetReadLen(SPI_TypeDef *spi_dev, u32 DataFrameNumber)
{
	assert_param((DataFrameNumber >= 1)&&(DataFrameNumber <= 0x10000));
	SSI_Cmd(spi_dev, DISABLE);
	spi_dev->CTRLR1 = DataFrameNumber - 1;	SSI_Cmd(spi_dev, ENABLE);
}