/* Read data with special length in slave mode through the USIx peripheral.  */
void USI_I2C_SlaveRead(USI_TypeDef *USIx, u8 *pBuf, u8 len)
/* Read data with special length in slave mode through the USIx peripheral.  */
void USI_I2C_SlaveRead(USI_TypeDef *USIx, u8 *pBuf, u8 len)
{
	u8 cnt = 0;
	assert_param(IS_USI_I2C_ALL_PERIPH(USIx));
	for(cnt = 0; cnt < len; cnt++) {
		while((USI_I2C_CheckRXFIFOState(USIx, USI_RXFIFO_EMPTY)) == 1);
		*pBuf++ = (u8)USIx->RX_FIFO_READ;
	}
}