/* This function handles continuation of receiving data. It is invoked from interrupt handler. */
s32 SlaveRecvData(XIicPs *InstancePtr)
/* This function handles continuation of receiving data. It is invoked from interrupt handler. */
s32 SlaveRecvData(XIicPs *InstancePtr)
{
	u32 StatusReg;
	u32 BaseAddr;
	Xil_AssertNonvoid(InstancePtr != NULL);
	BaseAddr = InstancePtr->Config.BaseAddress;
	StatusReg = XIicPs_ReadReg(BaseAddr, XIICPS_SR_OFFSET);
	while (((StatusReg & XIICPS_SR_RXDV_MASK)!=0x0U) &&
			(InstancePtr->RecvByteCount > 0)) {
		XIicPs_RecvByte(InstancePtr);
		StatusReg = XIicPs_ReadReg(BaseAddr, XIICPS_SR_OFFSET);
	}
	return InstancePtr->RecvByteCount;
}
/** @}