pic32/libraries/SoftSPI/SoftSPI.cpp
/* ------------------------------------------------------------ */
/***	SoftSPI::transfer
**
**	Parameters:
**		cbReq		- number of bytes to transfer
**		pbSnd		- buffer containing bytes to send
**		pbRcv		- buffer to hold bytes received
**
**	Return Value:
**		none
**
**	Errors:
**		none
**
**	Description:
**		Send the requested number of bytes, storing the bytes
**		received in the specified buffer.
*/
:transfer

cbReq           - number of bytes to transfer
pbSnd           - buffer containing bytes to send
pbRcv           - buffer to hold bytes received

Return Value:
none

none

Send the requested number of bytes, storing the bytes
received in the specified buffer.
: transfer cbReq - number of bytes to transfer pbSnd - buffer containing bytes to send pbRcv - buffer to hold bytes received Return Value : none none Send the requested number of bytes storing the bytes received in the specified buffer .
void
SoftSPI::transfer(uint16_t cbReq, uint8_t * pbSnd, uint8_t * pbRcv) {
	uint16_t			cbCur;
	for (cbCur = cbReq; cbCur > 0; cbCur--) {
		*pbRcv++ = transfer(*pbSnd++);
         waitCoreTime(cntDly);
	}
}
void SoftSPI :: transfer ( uint16_t cbReq , uint8_t * pbSnd , uint8_t * pbRcv ) { uint16_t cbCur ; for ( cbCur = cbReq ; cbCur > 0 ; cbCur -- ) { * pbRcv ++ = transfer ( * pbSnd ++ ) ; waitCoreTime ( cntDly ) ; } }
SoftSPI::transfer
SoftSPI :: transfer