pic32/libraries/SoftSPI/SoftSPI.cpp
/* ------------------------------------------------------------ */
/***	SoftSPI::setDirection
**
**	Parameters:
**		dir			- requested shift direction
**
**	Return Value:
**		none
**
**	Errors:
**		none
**
**	Description:
**		Set the shift direction to the requested value. Default to
**		shift left if an unsupported value is specified.
*/
:setDirection

dir                     - requested shift direction

Return Value:
none

none

Set the shift direction to the requested value. Default to
shift left if an unsupported value is specified.
: setDirection dir - requested shift direction Return Value : none none Set the shift direction to the requested value . Default to shift left if an unsupported value is specified .
void
SoftSPI::setDirection(int dir) {
	modCur = (modCur & ~SSPI_SHIFT_RIGHT) | (dir & SSPI_SHIFT_RIGHT);
}
void SoftSPI :: setDirection ( int dir ) { modCur = ( modCur & ~ SSPI_SHIFT_RIGHT ) | ( dir & SSPI_SHIFT_RIGHT ) ; }
SoftSPI::setDirection
SoftSPI :: setDirection
/* Store the direction in the mod variable. This variable holds
	** both the SPI mode and the shift direction.
	*/