GNU Radio's OsmoSDR Package
soapy_common.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
/*
3
* Copyright 2017 Josh Blum <josh@joshknows.com>
4
*
5
* GNU Radio is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 3, or (at your option)
8
* any later version.
9
*
10
* GNU Radio is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with GNU Radio; see the file COPYING. If not, write to
17
* the Free Software Foundation, Inc., 51 Franklin Street,
18
* Boston, MA 02110-1301, USA.
19
*/
20
21
#ifndef INCLUDED_SOAPY_COMMON_H
22
#define INCLUDED_SOAPY_COMMON_H
23
24
#include <
osmosdr/ranges.h
>
25
#include <SoapySDR/Types.hpp>
26
#include <boost/thread/mutex.hpp>
27
28
/*!
29
* Convert a soapy range to a gain range.
30
* Careful to deal with the step size when zero.
31
*/
32
osmosdr::gain_range_t
soapy_range_to_gain_range
(
const
SoapySDR::Range &r);
33
34
/*!
35
* Global mutex to protect factory routines.
36
* (optional under 0.5 release above)
37
*/
38
boost::mutex &
get_soapy_maker_mutex
(
void
);
39
40
#endif
/* INCLUDED_SOAPY_COMMON_H */
osmosdr::meta_range_t
Definition:
ranges.h:75
ranges.h
soapy_range_to_gain_range
osmosdr::gain_range_t soapy_range_to_gain_range(const SoapySDR::Range &r)
get_soapy_maker_mutex
boost::mutex & get_soapy_maker_mutex(void)
lib
soapy
soapy_common.h
Generated by
1.8.15