22 #ifndef INCLUDED_CYBERRADIO_VITA_UDP_RX_H 23 #define INCLUDED_CYBERRADIO_VITA_UDP_RX_H 25 #include <gnuradio/block.h> 29 namespace CyberRadio {
43 using sptr = boost::shared_ptr<vita_udp_rx>;
57 bool uses_v49_1 =
true;
58 bool narrowband =
false;
69 static auto make(
Cfg const& cfg) ->
sptr;
70 static auto make(
const std::string &src_ip,
72 unsigned int header_byte_offset,
73 int samples_per_packet,
84 bool start()
override = 0;
85 bool stop()
override = 0;
88 using BaseBlock::block;
94 #endif // INCLUDED_CYBERRADIO_VITA_UDP_RX_H
gr::block BaseBlock
Definition: vita_udp_rx.h:42
<+description of block+>
Definition: vita_udp_rx.h:39
#define CYBERRADIO_API
Definition: api.h:30
bool swap_bytes
if the packet should be byteswapped
Definition: vita_udp_rx.h:54
Definition: vita_udp_rx.h:48
boost::shared_ptr< vita_udp_rx > sptr
Definition: vita_udp_rx.h:43
bool swap_iq
change from IQ to QI (or from QI to IQ)
Definition: vita_udp_rx.h:55
Provides GNU Radio blocks.
Definition: NDR651_duc_sink_mk2.h:21
bool tag_packets
add GR tags to the stream
Definition: vita_udp_rx.h:56
short port
source port to bind to
Definition: vita_udp_rx.h:50
std::string src_ip
source IP address to bind to
Definition: vita_udp_rx.h:49
unsigned header_byte_offset
number of bytes in the V49 header
Definition: vita_udp_rx.h:51
int bytes_per_packet
total size of the V49 packet
Definition: vita_udp_rx.h:53
int samples_per_packet
number of samples in a packet
Definition: vita_udp_rx.h:52