Package comm
Class UART

Public Method getBufferCapacity

int getBufferCapacity(byte rxtxBuffer)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Parameter Range Description
rxtxBuffer UART.RXBUFFER or UART.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

   uart.getBufferCapacity(UART.RXBUFFER);

This method returns the buffer capacity of the according buffer.