Skip to content
Snippets Groups Projects
Select Git revision
  • 7f649e42ae767ff6d99df462cd9c3e9320af85f7
  • master default protected
2 results

ChoroplethMap.js

Blame
  • bladerf_source_c.cc 19.84 KiB
    /* -*- c++ -*- */
    /*
     * Copyright 2013-2017 Nuand LLC
     * Copyright 2013 Dimitri Stolnikov <horiz0n@gmx.net>
     *
     * GNU Radio is free software; you can redistribute it and/or modify
     * it under the terms of the GNU General Public License as published by
     * the Free Software Foundation; either version 3, or (at your option)
     * any later version.
     *
     * GNU Radio is distributed in the hope that it will be useful,
     * but WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     * GNU General Public License for more details.
     *
     * You should have received a copy of the GNU General Public License
     * along with GNU Radio; see the file COPYING.  If not, write to
     * the Free Software Foundation, Inc., 51 Franklin Street,
     * Boston, MA 02110-1301, USA.
     */
    
    /*
     * config.h is generated by configure.  It contains the results
     * of probing for features, options etc.  It should be the first
     * file included in your .cc file.
     */
    #ifdef HAVE_CONFIG_H
    #include "config.h"
    #endif
    
    #include <iostream>
    
    #include <boost/assign.hpp>
    #include <boost/format.hpp>
    #include <boost/lexical_cast.hpp>
    
    #include <gnuradio/io_signature.h>
    
    #include <volk/volk.h>
    
    #include "arg_helpers.h"
    #include "bladerf_source_c.h"
    #include "osmosdr/source.h"
    
    using namespace boost::assign;
    
    /******************************************************************************
     * Functions
     ******************************************************************************/
    
    /*
     * Create a new instance of bladerf_source_c and return
     * a boost shared_ptr.  This is effectively the public constructor.
     */
    bladerf_source_c_sptr make_bladerf_source_c(const std::string &args)
    {
      return gnuradio::get_initial_sptr(new bladerf_source_c(args));
    }
    
    /******************************************************************************
     * Private methods
     ******************************************************************************/
    
    /*
     * The private constructor
     */
    bladerf_source_c::bladerf_source_c(const std::string &args) :
      gr::sync_block( "bladerf_source_c",
                      gr::io_signature::make(0, 0, 0),
                      args_to_io_signature(args)),