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 max_if_hdr_words32 = 7;
40 PACKET_TYPE_DATA = 0x0,
41 PACKET_TYPE_EXTENSION = 0x1,
42 PACKET_TYPE_CONTEXT = 0x2
55 bool has_sid; boost::uint32_t
sid;
57 bool has_tsi; boost::uint32_t
tsi;
58 bool has_tsf; boost::uint64_t
tsf;
59 bool has_tlr; boost::uint32_t
tlr;
68 boost::uint32_t *packet_buff,
78 const boost::uint32_t *packet_buff,
88 boost::uint32_t *packet_buff,
98 const boost::uint32_t *packet_buff,
boost::uint32_t tlr
Definition: vrt_if_packet.hpp:59
Definition: vrt_if_packet.hpp:37
boost::uint32_t tsi
Definition: vrt_if_packet.hpp:57
size_t num_packet_words32
Definition: vrt_if_packet.hpp:48
UHD_API void if_hdr_pack_le(boost::uint32_t *packet_buff, if_packet_info_t &if_packet_info)
packet_type_t
Definition: vrt_if_packet.hpp:39
boost::uint64_t tsf
Definition: vrt_if_packet.hpp:58
bool has_cid
Definition: vrt_if_packet.hpp:56
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:76
Definition: convert.hpp:28
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:51
size_t num_payload_words32
Definition: vrt_if_packet.hpp:46
size_t num_header_words32
Definition: vrt_if_packet.hpp:47
bool sob
Definition: vrt_if_packet.hpp:52
boost::uint32_t sid
Definition: vrt_if_packet.hpp:55