GNU Radio's TEST 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
27
#include <mutex>
28
29
/*!
30
* Convert a soapy range to a gain range.
31
* Careful to deal with the step size when zero.
32
*/
33
osmosdr::gain_range_t
soapy_range_to_gain_range
(
const
SoapySDR::Range &r);
34
35
/*!
36
* Global mutex to protect factory routines.
37
* (optional under 0.5 release above)
38
*/
39
std::mutex &
get_soapy_maker_mutex
(
void
);
40
41
#endif
/* INCLUDED_SOAPY_COMMON_H */
ranges.h
get_soapy_maker_mutex
std::mutex & get_soapy_maker_mutex(void)
soapy_range_to_gain_range
osmosdr::gain_range_t soapy_range_to_gain_range(const SoapySDR::Range &r)
osmosdr::meta_range_t
Definition:
ranges.h:75
lib
soapy
soapy_common.h
Generated by
1.9.1