USRP Hardware Driver and USRP Manual  Version: 3.15.0.HEAD-0-gaea0e2de
UHD and USRP Manual
chdr.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2014 Ettus Research LLC
3 // Copyright 2018 Ettus Research, a National Instruments Company
4 //
5 // SPDX-License-Identifier: GPL-3.0-or-later
6 //
7 
8 #ifndef INCLUDED_UHD_TRANSPORT_CHDR_HPP
9 #define INCLUDED_UHD_TRANSPORT_CHDR_HPP
10 
12 
13 namespace uhd { namespace transport { namespace vrt {
14 
37 namespace chdr {
38 
40 static const size_t max_if_hdr_words64 = 2; // CHDR + tsf (fractional timestamp)
41 
51 UHD_API void if_hdr_pack_be(uint32_t* packet_buff, if_packet_info_t& if_packet_info);
52 
63  const uint32_t* packet_buff, if_packet_info_t& if_packet_info);
64 
74 UHD_API void if_hdr_pack_le(uint32_t* packet_buff, if_packet_info_t& if_packet_info);
75 
86  const uint32_t* packet_buff, if_packet_info_t& if_packet_info);
87 
88 } // namespace chdr
89 
90 }}} // namespace uhd::transport::vrt
91 
92 #endif /* INCLUDED_UHD_TRANSPORT_CHDR_HPP */
Definition: vrt_if_packet.hpp:28
UHD_API void if_hdr_pack_le(uint32_t *packet_buff, if_packet_info_t &if_packet_info)
Definition: build_info.hpp:13
UHD_API void if_hdr_unpack_be(const uint32_t *packet_buff, if_packet_info_t &if_packet_info)
#define UHD_API
Definition: config.h:68
UHD_API void if_hdr_unpack_le(const uint32_t *packet_buff, if_packet_info_t &if_packet_info)
UHD_API void if_hdr_pack_be(uint32_t *packet_buff, if_packet_info_t &if_packet_info)