8 #ifndef INCLUDED_UHD_TRANSPORT_VRT_IF_PACKET_HPP 9 #define INCLUDED_UHD_TRANSPORT_VRT_IF_PACKET_HPP 15 namespace uhd {
namespace transport {
namespace vrt {
18 static const size_t num_vrl_words32 = 3;
21 static const size_t max_if_hdr_words32 = 7;
42 PACKET_TYPE_DATA = 0x0,
43 PACKET_TYPE_IF_EXT = 0x1,
44 PACKET_TYPE_CONTEXT = 0x2,
49 PACKET_TYPE_ACK = 0x1,
50 PACKET_TYPE_CMD = 0x2,
51 PACKET_TYPE_RESP = 0x3,
174 : link_type(LINK_TYPE_NONE)
175 , packet_type(PACKET_TYPE_DATA)
176 , num_payload_words32(0)
177 , num_payload_bytes(0)
178 , num_header_words32(0)
179 , num_packet_words32(0)
uint64_t cid
Definition: vrt_if_packet.hpp:77
Definition: vrt_if_packet.hpp:28
size_t num_packet_words32
Definition: vrt_if_packet.hpp:60
UHD_API void if_hdr_unpack_le(const uint32_t *packet_buff, if_packet_info_t &if_packet_info)
if_packet_info_t(void)
Definition: vrt_if_packet.hpp:173
packet_type_t
Definition: vrt_if_packet.hpp:40
uint64_t tsf
Definition: vrt_if_packet.hpp:83
UHD_API void if_hdr_unpack_be(const uint32_t *packet_buff, if_packet_info_t &if_packet_info)
bool has_cid
Class ID.
Definition: vrt_if_packet.hpp:76
link_type_t
Definition: vrt_if_packet.hpp:33
uint32_t tlr
Definition: vrt_if_packet.hpp:86
Definition: build_info.hpp:13
uint32_t sid
Definition: vrt_if_packet.hpp:74
UHD_API void if_hdr_pack_be(uint32_t *packet_buff, if_packet_info_t &if_packet_info)
bool error
This is asserted for command responses that are errors (CHDR only)
Definition: vrt_if_packet.hpp:67
size_t num_payload_bytes
Definition: vrt_if_packet.hpp:58
bool has_tsi
Integer timestamp.
Definition: vrt_if_packet.hpp:79
#define UHD_INLINE
Definition: config.h:53
bool has_tsf
Fractional timestamp.
Definition: vrt_if_packet.hpp:82
size_t packet_count
Definition: vrt_if_packet.hpp:63
#define UHD_API
Definition: config.h:68
bool has_sid
Stream ID (SID). See uhd::sid_t.
Definition: vrt_if_packet.hpp:73
size_t num_payload_words32
Definition: vrt_if_packet.hpp:57
bool fc_ack
This is asserted for flow control packets are ACKS (CHDR only)
Definition: vrt_if_packet.hpp:69
UHD_API void if_hdr_pack_le(uint32_t *packet_buff, if_packet_info_t &if_packet_info)
bool has_tlr
Trailer.
Definition: vrt_if_packet.hpp:85
size_t num_header_words32
Definition: vrt_if_packet.hpp:59
bool sob
Asserted for start- or end-of-burst.
Definition: vrt_if_packet.hpp:65
uint32_t tsi
Definition: vrt_if_packet.hpp:80