Implementation file for the RadioSocket class.
More...
#include "radio_socket.h"
#include <cassert>
#include <chrono>
#include "logger.h"
#include "utils.h"
|
struct IrisCommData | __attribute__ ((packed)) |
|
static size_t | ValidateSamples (long long &stream_rx_time, const long long &pkt_rx_time, size_t previous_samples, size_t new_samples, size_t requested_samples, size_t burst_samples, size_t output_dim) |
|
Implementation file for the RadioSocket class.
◆ BURST_END_bf
◆ BURST_END_bp
#define BURST_END_bp (22) |
◆ DEBUG_OUTPUT
#define DEBUG_OUTPUT |
( |
|
... | ) |
((void)0) |
◆ HAS_SEQUENCE_bf
◆ HAS_SEQUENCE_bp
#define HAS_SEQUENCE_bp (16) |
◆ HAS_STATUS_bf
◆ HAS_STATUS_bp
#define HAS_STATUS_bp (18) |
◆ HAS_TIME_bf
◆ HAS_TIME_bp
◆ HAS_TIME_RX_bf
◆ HAS_TIME_RX_bp
#define HAS_TIME_RX_bp (31) |
◆ IS_BURST_bf
◆ IS_BURST_bp
◆ IS_TRIGGER_bf
◆ IS_TRIGGER_bp
#define IS_TRIGGER_bp (26) |
◆ OVERFLOW_ERROR_bf
◆ OVERFLOW_ERROR_bp
#define OVERFLOW_ERROR_bp (23) |
◆ RX_OVERFLOW_bf
◆ RX_OVERFLOW_bp
#define RX_OVERFLOW_bp (29) |
◆ RX_TIME_ERROR_bf
◆ RX_TIME_ERROR_bp
#define RX_TIME_ERROR_bp (30) |
◆ SEQ_REQUEST_bf
◆ SEQ_REQUEST_bp
#define SEQ_REQUEST_bp (25) |
◆ SEQUENCE_ERROR_bf
◆ SEQUENCE_ERROR_bp
#define SEQUENCE_ERROR_bp (17) |
◆ SEQUENCE_MASK
#define SEQUENCE_MASK (0xffff) |
Iris tx status header flags.
◆ TIME_ERROR_bf
◆ TIME_ERROR_bp
#define TIME_ERROR_bp (20) |
◆ UNDERFLOW_ERROR_bf
◆ UNDERFLOW_ERROR_bp
#define UNDERFLOW_ERROR_bp (21) |
◆ __attribute__()
◆ ValidateSamples()
static size_t ValidateSamples |
( |
long long & |
stream_rx_time, |
|
|
const long long & |
pkt_rx_time, |
|
|
size_t |
previous_samples, |
|
|
size_t |
new_samples, |
|
|
size_t |
requested_samples, |
|
|
size_t |
burst_samples, |
|
|
size_t |
output_dim |
|
) |
| |
|
inlinestatic |
If Samples to Load > 0 we should stop trying to receive Otherwise, keep trying to get more data
◆ data_
◆ header_
◆ kDebugIrisRx
constexpr bool kDebugIrisRx = false |
|
staticconstexpr |
◆ kMaxMTU
constexpr size_t kMaxMTU = 9000 |
|
staticconstexpr |
◆ kRxBufferSize
constexpr size_t kRxBufferSize = 524288 |
|
staticconstexpr |
◆ kRxSampleRemBufSize
constexpr size_t kRxSampleRemBufSize = 4096 |
|
staticconstexpr |