SoDaRadio-12.2.0-cut_dependencies:6c82803
Loading...
Searching...
No Matches
RTLSDRRadio.hxx
Go to the documentation of this file.
1#pragma once
2/*
3Copyright (c) 2026 Matthew H. Reilly (kb1vc)
4All rights reserved.
5
6Redistribution and use in source and binary forms, with or without
7modification, are permitted provided that the following conditions are
8met:
9
10 Redistributions of source code must retain the above copyright
11 notice, this list of conditions and the following disclaimer.
12 Redistributions in binary form must reproduce the above copyright
13 notice, this list of conditions and the following disclaimer in
14 the documentation and/or other materials provided with the
15 distribution.
16
17THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28*/
29
43
44#include "Radio.hxx"
45#include "Params.hxx"
46#include "RTLSDRDev.hxx"
47#include "RTLSDRCtrl.hxx"
48#include "RTLSDRRX.hxx"
49#include "RTLSDRTX.hxx"
50#include <memory>
51
52namespace SoDa {
53
54 class RTLSDRRadio;
55 using RTLSDRRadioPtr = std::shared_ptr<RTLSDRRadio>;
56
57 class RTLSDRRadio : public Radio {
58 protected:
60
61 public:
62 static RadioPtr make(ParamsPtr params) {
63 return std::shared_ptr<Radio>(new RTLSDRRadio(params));
64 }
65
66 void init();
67
68 private:
73 };
74
75} // namespace SoDa
RadioControl implementation for RTL-SDR dongles (librtlsdr).
Shared RAII wrapper for an rtlsdr_dev_t handle.
RadioRX implementation for RTL-SDR dongles.
Stub RadioTX for RTL-SDR dongles (RX-only hardware).
Base class for all hardware modules (USRP, Pluto, RTLSDR, etc) that starts all required processes (e....
RTLSDRCtrlPtr ctrl
static RadioPtr make(ParamsPtr params)
void init()
do whatever initialization we might need to do.
RTLSDRDevPtr dev
RTLSDRRadio(ParamsPtr params)
Radio(ParamsPtr params)
create the base radio.
Definition Radio.hxx:59
std::shared_ptr< RTLSDRDev > RTLSDRDevPtr
Definition RTLSDRDev.hxx:62
std::shared_ptr< Params > ParamsPtr
Definition Params.hxx:42
std::shared_ptr< Radio > RadioPtr
Definition Radio.hxx:52
std::shared_ptr< RTLSDRRadio > RTLSDRRadioPtr
std::shared_ptr< RTLSDRCtrl > RTLSDRCtrlPtr
std::shared_ptr< RTLSDRRX > RTLSDRRXPtr
Definition RTLSDRRX.hxx:61
std::shared_ptr< RTLSDRTX > RTLSDRTXPtr
Definition RTLSDRTX.hxx:50