/* Set the number of data frame to be received.  */
void USI_SSI_SetReadLen(USI_TypeDef *usi_dev, u32 DataFrameNumber)
/* Set the number of data frame to be received.  */
void USI_SSI_SetReadLen(USI_TypeDef *usi_dev, u32 DataFrameNumber)
{
	u32 Value;
	u32 trxpath = USI_SSI_GetTRxPath(usi_dev);
	assert_param((DataFrameNumber >= 1)&&(DataFrameNumber <= 0x10000));
	Value = usi_dev->SPI_TRANS_EN;
	Value &= ~USI_SPI_RXONLY_NUM;
	Value |= ((DataFrameNumber - 1) << 16);
	USI_SSI_TRxPath_Cmd(usi_dev, trxpath, DISABLE);
	usi_dev->SPI_TRANS_EN = Value;	USI_SSI_TRxPath_Cmd(usi_dev, trxpath, ENABLE);
}