Package comm
Class SPI

Public Method clearBuffer

static void clearBuffer(byte rxtxBuffer)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Parameter Range Description
rxtxBuffer SPI.RXBUFFER or SPI.TXBUFFER the according buffer that should be cleared

Clears the according buffer. All stored frames in the according buffer gets lost.


Example

   SPI.clearBuffer(SPI.RXBUFFER);

The example above clears the RX buffer.