GNU Radio 3.6.5 C++ API
|
00001 /* 00002 * Copyright 2011 Free Software Foundation, Inc. 00003 * 00004 * This file is part of GNU Radio 00005 * 00006 * GNU Radio is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 3, or (at your option) 00009 * any later version. 00010 * 00011 * GNU Radio is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with GNU Radio; see the file COPYING. If not, write to 00018 * the Free Software Foundation, Inc., 51 Franklin Street, 00019 * Boston, MA 02110-1301, USA. 00020 */ 00021 00022 #ifndef INCLUDED_GR_UHD_AMSG_SOURCE_H 00023 #define INCLUDED_GR_UHD_AMSG_SOURCE_H 00024 00025 #include <gr_uhd_api.h> 00026 #include <uhd/usrp/multi_usrp.hpp> 00027 #include <gr_msg_queue.h> 00028 00029 class uhd_amsg_source; 00030 00031 /*! 00032 * \brief Make a new USRP asynchronous message-based source block. 00033 * \ingroup uhd_blk 00034 */ 00035 GR_UHD_API boost::shared_ptr<uhd_amsg_source> uhd_make_amsg_source( 00036 const uhd::device_addr_t &device_addr, 00037 gr_msg_queue_sptr msgq 00038 ); 00039 00040 class GR_UHD_API uhd_amsg_source{ 00041 public: 00042 /*! 00043 * Convert a raw asynchronous message to an asynchronous metatdata object. 00044 * \return The asynchronous metadata object. 00045 */ 00046 static uhd::async_metadata_t msg_to_async_metadata_t(const gr_message_sptr msg); 00047 00048 }; 00049 00050 #endif /* INCLUDED_GR_UHD_AMSG_SOURCE_H */