18 #ifndef INCLUDED_UHD_TRANSPORT_VRT_IF_PACKET_HPP 19 #define INCLUDED_UHD_TRANSPORT_VRT_IF_PACKET_HPP 22 #include <boost/cstdint.hpp> 25 namespace uhd{
namespace transport{
30 static const size_t num_vrl_words32 = 3;
33 static const size_t max_if_hdr_words32 = 7;
55 PACKET_TYPE_DATA = 0x0,
56 PACKET_TYPE_IF_EXT = 0x1,
57 PACKET_TYPE_CONTEXT = 0x2,
71 bool has_sid; boost::uint32_t
sid;
73 bool has_tsi; boost::uint32_t
tsi;
74 bool has_tsf; boost::uint64_t
tsf;
75 bool has_tlr; boost::uint32_t
tlr;
84 boost::uint32_t *packet_buff,
94 const boost::uint32_t *packet_buff,
104 boost::uint32_t *packet_buff,
114 const boost::uint32_t *packet_buff,
119 link_type(LINK_TYPE_NONE),
120 packet_type(PACKET_TYPE_DATA),
121 num_payload_words32(0),
122 num_payload_bytes(0),
123 num_header_words32(0),
124 num_packet_words32(0),
126 sob(false), eob(false),
127 has_sid(false), sid(0),
128 has_cid(false), cid(0),
129 has_tsi(false), tsi(0),
130 has_tsf(false), tsf(0),
131 has_tlr(false), tlr(0)
boost::uint32_t tlr
Definition: vrt_if_packet.hpp:75
Definition: vrt_if_packet.hpp:40
boost::uint32_t tsi
Definition: vrt_if_packet.hpp:73
size_t num_packet_words32
Definition: vrt_if_packet.hpp:64
UHD_API void if_hdr_pack_le(boost::uint32_t *packet_buff, if_packet_info_t &if_packet_info)
if_packet_info_t(void)
Definition: vrt_if_packet.hpp:118
packet_type_t
Definition: vrt_if_packet.hpp:53
boost::uint64_t tsf
Definition: vrt_if_packet.hpp:74
bool has_cid
Definition: vrt_if_packet.hpp:72
link_type_t
Definition: vrt_if_packet.hpp:45
UHD_API void if_hdr_unpack_be(const boost::uint32_t *packet_buff, if_packet_info_t &if_packet_info)
UHD_API void if_hdr_pack_be(boost::uint32_t *packet_buff, if_packet_info_t &if_packet_info)
#define UHD_API
Definition: config.hpp:79
Definition: convert.hpp:28
#define UHD_INLINE
Definition: config.hpp:69
size_t num_payload_bytes
Definition: vrt_if_packet.hpp:62
UHD_API void if_hdr_unpack_le(const boost::uint32_t *packet_buff, if_packet_info_t &if_packet_info)
size_t packet_count
Definition: vrt_if_packet.hpp:67
size_t num_payload_words32
Definition: vrt_if_packet.hpp:61
size_t num_header_words32
Definition: vrt_if_packet.hpp:63
bool sob
Definition: vrt_if_packet.hpp:68
boost::uint32_t sid
Definition: vrt_if_packet.hpp:71