SoDaRadio-12.2.0-cut_dependencies:6c82803
Loading...
Searching...
No Matches
USRPRadio.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
39
40#include "Radio.hxx"
41#include "Params.hxx"
42#include "USRPCtrl.hxx"
43#include "USRPRX.hxx"
44#include "USRPTX.hxx"
45
46#include <memory>
47
48namespace SoDa {
49
50 class USRPRadio;
51 typedef std::shared_ptr<USRPRadio> USRPRadioPtr;
52
53 class USRPRadio : public Radio {
54 protected:
56
57 public:
63 static RadioPtr make(ParamsPtr params) {
64 return std::shared_ptr<Radio>(new USRPRadio(params));
65 }
66
72 void init();
73
74 private:
78 };
79}
80
81
82
Base class for all hardware modules (USRP, Pluto, RTLSDR, etc) that starts all required processes (e....
Thread class that owns the USRP control channel and functions.
Radio(ParamsPtr params)
create the base radio.
Definition Radio.hxx:59
USRPRadio(ParamsPtr params)
USRPCtrlPtr ctrl
Definition USRPRadio.hxx:75
void init()
initialize the control, rx, tx, and any other hardware specific processes.
static RadioPtr make(ParamsPtr params)
Create a radio object.
Definition USRPRadio.hxx:63
std::shared_ptr< Params > ParamsPtr
Definition Params.hxx:42
std::shared_ptr< USRPRX > USRPRXPtr
Definition USRPRX.hxx:50
std::shared_ptr< Radio > RadioPtr
Definition Radio.hxx:52
std::shared_ptr< USRPCtrl > USRPCtrlPtr
Definition USRPCtrl.hxx:62
std::shared_ptr< USRPRadio > USRPRadioPtr
Definition USRPRadio.hxx:51
std::shared_ptr< USRPTX > USRPTXPtr
Definition USRPTX.hxx:45