pic32/libraries/SoftSPI/SoftSPI.cpp
/* ------------------------------------------------------------ */
/***	SoftSPI::setDelay
**
**	Parameters:
**		dly			- interbyte delay in microseconds (max 4294
**
**	Return Value:
**		none
**
**	Errors:
**		none
**
**	Description:
**		Set the interbyte delay to the specified value.
**		The relationship between the delay count value and the
**		delay in microseconds has been determined experimentally
**		to be approximately:
**			d ~ P * (47 + 880/100 * n) where P is period of processor clock
**		This yields the delay count to be:
**
**			n = ((80*d - 47) * 100) / 880
**
**		Note: this calculations assumes that the processor clock is 80Mhz.
*/
:setDelay

dly                     - interbyte delay in microseconds (max 4294

Return Value:
none

none

Set the interbyte delay to the specified value.
The relationship between the delay count value and the
delay in microseconds has been determined experimentally
to be approximately:
d ~ P * (47 + 880/100 * n) where P is period of processor clock
This yields the delay count to be.



this calculations assumes that the processor clock is 80Mhz.
: setDelay dly - interbyte delay in microseconds ( max 4294 Return Value : none none Set the interbyte delay to the specified value . The relationship between the delay count value and the delay in microseconds has been determined experimentally to be approximately : d ~ P * ( 47 + 880 / 100 * n ) where P is period of processor clock This yields the delay count to be . this calculations assumes that the processor clock is 80Mhz .
void
SoftSPI::setDelay(int dly) {
    cntDly = (uint32_t) ((((uint64_t) SSPI_CORETIMER_TICKS_PER_SECOND) * ((uint64_t) dly)) / 1000000ULL);
}
void SoftSPI :: setDelay ( int dly ) { cntDly = ( uint32_t ) ( ( ( ( uint64_t ) SSPI_CORETIMER_TICKS_PER_SECOND ) * ( ( uint64_t ) dly ) ) / 1000000ULL ) ; }
SoftSPI::setDelay
SoftSPI :: setDelay