GNU Radio 3.3.0 C++ API
|
#include <rx_16sc_handler.h>
Public Types | |
typedef boost::shared_ptr < rx_16sc_handler > | sptr |
Public Member Functions | |
bool | operator() (const uint32_t *items, size_t nitems, const usrp2::rx_metadata *metadata) |
~rx_16sc_handler () | |
Static Public Member Functions | |
static sptr | make (uint64_t max_samples, uint64_t max_quantum, std::complex< int16_t > *dest) |
Reimplemented from usrp2::rx_nop_handler.
rx_16sc_handler::~rx_16sc_handler | ( | ) |
static sptr rx_16sc_handler::make | ( | uint64_t | max_samples, |
uint64_t | max_quantum, | ||
std::complex< int16_t > * | dest | ||
) | [inline, static] |
bool rx_16sc_handler::operator() | ( | const uint32_t * | items, |
size_t | nitems, | ||
const usrp2::rx_metadata * | metadata | ||
) | [inline, virtual] |
Function operator invoked by USRP2 RX API. Derived classes must override this method but then invoke it at the start of their processing. This operator will always be called at least once.
items | points to the first 32-bit word of uninterpreted sample data in the frame. |
nitems | is the number of entries in the frame in units of uint32_t's. |
metadata | is the additional per frame data provided by the USRP2 FPGA. |
items
points to the raw sample data received off of the ethernet. The data is packed into big-endian 32-bit unsigned ints for transport, but the actual format of the data is dependent on the current configuration of the USRP2. The most common format is 16-bit I & Q, with I in the top of the 32-bit word.
Reimplemented from usrp2::rx_nop_handler.