USRP Hardware Driver and USRP Manual  Version: 003.009.004-0-g2b5a88bb
UHD and USRP Manual
chdr.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2014 Ettus Research LLC
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16 //
17 
18 #ifndef INCLUDED_UHD_TRANSPORT_CHDR_HPP
19 #define INCLUDED_UHD_TRANSPORT_CHDR_HPP
20 
22 
23 namespace uhd{ namespace transport{ namespace vrt{
24 
47 namespace chdr{
48 
50  static const size_t max_if_hdr_words64 = 2; // CHDR + tsf (fractional timestamp)
51 
62  boost::uint32_t *packet_buff,
63  if_packet_info_t &if_packet_info
64  );
65 
76  const boost::uint32_t *packet_buff,
77  if_packet_info_t &if_packet_info
78  );
79 
90  boost::uint32_t *packet_buff,
91  if_packet_info_t &if_packet_info
92  );
93 
104  const boost::uint32_t *packet_buff,
105  if_packet_info_t &if_packet_info
106  );
107 
108 } //namespace chdr
109 
110 }}} //namespace uhd::transport::vrt
111 
112 #endif /* INCLUDED_UHD_TRANSPORT_CHDR_HPP */
113 
Definition: vrt_if_packet.hpp:40
UHD_API void if_hdr_pack_le(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)
Definition: convert.hpp:28
UHD_API void if_hdr_unpack_be(const boost::uint32_t *packet_buff, if_packet_info_t &if_packet_info)
#define UHD_API
Definition: config.h:66
UHD_API void if_hdr_unpack_le(const boost::uint32_t *packet_buff, if_packet_info_t &if_packet_info)