Package comm
Class SPI

Public Method getBufferCapacity

static int getBufferCapacity(byte rxtxBuffer)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Parameter Range Description
rxtxBuffer SPI.RXBUFFER or SPI.TXBUFFER the according buffer

This method is used to get the buffer capacity of the RX or TX buffer. It returns -1 if a wrong input value is selected.

Returns Description
val the capacity of the selected buffer

Example

   SPI.getBufferCapacity(SPI.RXBUFFER);

This method returns the buffer capacity of the according buffer.