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
56 bool has_sid; boost::uint32_t
sid;
58 bool has_tsi; boost::uint32_t
tsi;
59 bool has_tsf; boost::uint64_t
tsf;
60 bool has_tlr; boost::uint32_t
tlr;
69 boost::uint32_t *packet_buff,
79 const boost::uint32_t *packet_buff,
89 boost::uint32_t *packet_buff,
99 const boost::uint32_t *packet_buff,
boost::uint32_t tlr
Definition: vrt_if_packet.hpp:60
Definition: vrt_if_packet.hpp:37
boost::uint32_t tsi
Definition: vrt_if_packet.hpp:58
size_t num_packet_words32
Definition: vrt_if_packet.hpp:49
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:59
bool has_cid
Definition: vrt_if_packet.hpp:57
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
size_t num_payload_bytes
Definition: vrt_if_packet.hpp:47
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:52
size_t num_payload_words32
Definition: vrt_if_packet.hpp:46
size_t num_header_words32
Definition: vrt_if_packet.hpp:48
bool sob
Definition: vrt_if_packet.hpp:53
boost::uint32_t sid
Definition: vrt_if_packet.hpp:56