pic32/libraries/DSPI/DSPI.cpp
/* ------------------------------------------------------------ */
/***	DSPI::intTransfer
**
**	Parameters:
**		cbReq		- number of bytes to transfer
**		pbSnd		- pointer to buffer of bytes to transmit
**
**	Return Value:
**		none
**
**	Errors:
**		none
**
**	Description:
**		This function will set up and begin an interrupt driven
**		transfer where the received bytes are discarded.
*/
:intTransfer

cbReq           - number of bytes to transfer
pbSnd           - pointer to buffer of bytes to transmit

Return Value:
none

none

This function will set up and begin an interrupt driven
transfer where the received bytes are discarded.
: intTransfer cbReq - number of bytes to transfer pbSnd - pointer to buffer of bytes to transmit Return Value : none none This function will set up and begin an interrupt driven transfer where the received bytes are discarded .
void
DSPI::intTransfer(uint16_t cbReq, uint8_t * pbSnd) {
	cbCur = cbReq;
	pbSndCur = pbSnd;
	pbRcvCur = 0;
	while ((pspi->sxStat.reg & (1 << _SPISTAT_SPITBE)) == 0) {
	}
	pspi->sxBuf.reg = *pbSndCur++;
}
void DSPI :: intTransfer ( uint16_t cbReq , uint8_t * pbSnd ) { cbCur = cbReq ; pbSndCur = pbSnd ; pbRcvCur = 0 ; while ( ( pspi -> sxStat . reg & ( 1 << _SPISTAT_SPITBE ) ) == 0 ) { } pspi -> sxBuf . reg = * pbSndCur ++ ; }
DSPI::intTransfer
DSPI :: intTransfer
/* Set up the control variables for the transfer.
	*/ /* Wait for the transmitter to be ready
	*/ /* Send the first byte.
	*/