RadioInterface read buffers.
More...
#include <yateradio.h>
|
|
unsigned int | m_bufSamples |
| |
|
unsigned int | m_validMin |
| |
RadioInterface read buffers.
Keeps buffers used by RadioInterface::read()
◆ RadioReadBufs()
| RadioReadBufs |
( |
unsigned int | len = 0, |
|
|
unsigned int | validThres = 0 ) |
|
inline |
Constructor
- Parameters
-
| len | Single buffer length (in sample periods) |
| validThres | Optional threshold for valid samples. Used when read timestamp data is in the future and a portion of the buffer need to be reset. If valid samples are below threshold data won't be set or copied |
◆ bufSamples()
| unsigned int bufSamples |
( |
| ) |
const |
|
inline |
Retrieve the length of a single buffer
- Returns
- Buffer length (in sample periods)
◆ dump()
Dump data for debug purposes
- Parameters
-
- Returns
- Destination buffer reference
◆ full()
Check if a given buffer is full (offset is at least buffer length)
- Parameters
-
- Returns
- True if the given buffer is full, false otherwise
◆ reset()
| void reset |
( |
unsigned int | len, |
|
|
unsigned int | validThres ) |
|
inline |
Reset buffers
- Parameters
-
| len | Single buffer length (in sample periods) |
| validThres | Optional threshold for valid samples |
◆ valid()
Check if a given is valid (have enough valid samples)
- Parameters
-
- Returns
- True if the given buffer is valid, false otherwise
References RadioBufDesc::validSamples().
The documentation for this class was generated from the following file: