|
Yate
|
A fixed length byte accumulator used by an UART. More...
#include <yatemodem.h>
Public Member Functions | |
| UARTBuffer (UART *client) | |
| const DataBlock & | buffer () const |
| unsigned int | free () const |
| void | reset (unsigned int len=0) |
| bool | accumulate (unsigned char value) |
A fixed length byte accumulator used by an UART.
This class is used by an UART to accumulate messages with known length
| UARTBuffer | ( | UART * | client | ) | [inline] |
Constructor
| client | The client of this buffer |
| bool accumulate | ( | unsigned char | value | ) | [inline] |
Accumulate data
| value | The value to append to the buffer |
References TelEngine::Debug().
| unsigned int free | ( | ) | const [inline] |
Get the free space length in the buffer
| void reset | ( | unsigned int | len = 0 | ) | [inline] |
Reset the buffer
| len | The new length of the buffer. Set to 0 to left the length unchanged |
1.7.6.1