SoftSPI Function: setDelay()

From ChipKit Wiki

Jump to: navigation, search

Syntax:

void setDelay(int delay)

Parameters:

delayRequested inter-byte delay time


Return Value:

None

Description:

This is used to set an inter-byte delay when using a buffered data transfer function. Some SPI devices require that there be a time delay between successive bytes in order to receive and process the data correctly. The parameter delay specifies the number of microseconds to wait after sending a byte before sending the next byte of data.

Personal tools