#include <uhd/deprecated.hpp>
Public Types | |
enum | { BO_NATIVE = int('='), BO_LITTLE_ENDIAN = int('<'), BO_BIG_ENDIAN = int('>'), BO_NOT_APPLICABLE = int('|') } |
Public Member Functions | |
size_t | get_sample_size (void) const |
otw_type_t (void) | |
Public Attributes | |
size_t | width |
size_t | shift |
enum uhd::otw_type_t:: { ... } | byteorder |
Description for over-the-wire integers: The DSP units in the FPGA deal with signed 16-bit integers. The width and shift define the translation between OTW and DSP, defined by the following relation: otw_int = dsp_int >> shift
Note: possible combinations of width, shift, and byteorder depend on the internals of the FPGA. Not all are supported!
anonymous enum |
uhd::otw_type_t::otw_type_t | ( | void | ) |
size_t uhd::otw_type_t::get_sample_size | ( | void | ) | const |
Get the sample size of this otw type.
enum { ... } uhd::otw_type_t::byteorder |
Constants for byte order (borrowed from numpy's dtype)
size_t uhd::otw_type_t::shift |
Shift of an over-the-wire integer in bits. otw_int = dsp_int >> shift dsp_int = otw_int << shift
size_t uhd::otw_type_t::width |
Width of an over-the-wire integer in bits.