int getFreeBufferCapacity(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 current number of frames which can be stored in the according buffer. It returns -1 if a wrong input value is selected.
| Returns | Description |
|---|---|
| val | the free capacity of the selected buffer |
Example
uart.getFreeBufferCapacity(UART.RXBUFFER);
This method returns the number of available frames that can be stored into the according buffer.
Copyright © demmel products gmbh. All rights reserved.