8 #ifndef INCLUDED_UHD_TRANSPORT_VRT_IF_PACKET_HPP 9 #define INCLUDED_UHD_TRANSPORT_VRT_IF_PACKET_HPP 15 namespace uhd{
namespace transport{
20 static const size_t num_vrl_words32 = 3;
23 static const size_t max_if_hdr_words32 = 7;
46 PACKET_TYPE_DATA = 0x0,
47 PACKET_TYPE_IF_EXT = 0x1,
48 PACKET_TYPE_CONTEXT = 0x2,
53 PACKET_TYPE_ACK = 0x1,
54 PACKET_TYPE_CMD = 0x2,
55 PACKET_TYPE_RESP = 0x3,
56 PACKET_TYPE_ERROR = 0x3
74 bool has_sid; uint32_t
sid;
78 bool has_tsi; uint32_t
tsi;
80 bool has_tsf; uint64_t
tsf;
82 bool has_tlr; uint32_t
tlr;
111 uint32_t *packet_buff,
149 const uint32_t *packet_buff,
162 uint32_t *packet_buff,
175 const uint32_t *packet_buff,
180 link_type(LINK_TYPE_NONE),
181 packet_type(PACKET_TYPE_DATA),
182 num_payload_words32(0),
183 num_payload_bytes(0),
184 num_header_words32(0),
185 num_packet_words32(0),
187 sob(false), eob(false),
189 has_sid(false), sid(0),
190 has_cid(false), cid(0),
191 has_tsi(false), tsi(0),
192 has_tsf(false), tsf(0),
193 has_tlr(false), tlr(0)
Definition: vrt_if_packet.hpp:30
size_t num_packet_words32
Definition: vrt_if_packet.hpp:63
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:179
packet_type_t
Definition: vrt_if_packet.hpp:43
uint64_t tsf
Definition: vrt_if_packet.hpp:80
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:35
uint32_t tlr
Definition: vrt_if_packet.hpp:82
Definition: build_info.hpp:14
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:70
size_t num_payload_bytes
Definition: vrt_if_packet.hpp:61
#define UHD_INLINE
Definition: config.h:53
size_t packet_count
Definition: vrt_if_packet.hpp:66
#define UHD_API
Definition: config.h:63
size_t num_payload_words32
Definition: vrt_if_packet.hpp:60
UHD_API void if_hdr_pack_le(uint32_t *packet_buff, if_packet_info_t &if_packet_info)
size_t num_header_words32
Definition: vrt_if_packet.hpp:62
bool sob
Asserted for start- or end-of-burst.
Definition: vrt_if_packet.hpp:68
uint32_t tsi
Definition: vrt_if_packet.hpp:78