SoDaRadio-12.2.0-cut_dependencies:6c82803
Loading...
Searching...
No Matches
SoDa::RTLSDRTX Class Reference

#include <RTLSDRTX.hxx>

Inheritance diagram for SoDa::RTLSDRTX:
SoDa::RadioTX SoDa::Thread SoDa::Base SoDa::Debug

Public Member Functions

 ~RTLSDRTX ()=default
void init () override
 Some initialization must occurr after all the components are created.
bool transmitSwitch (bool) override
 RTL-SDR cannot transmit — always report TX off.
bool put (CBufPtr) override
 Accept but discard all TX sample buffers.
RadioTXPtr getSelfPtr () override
Public Member Functions inherited from SoDa::RadioTX
 RadioTX (ParamsPtr params, const std::string &name)
 Constructor for RF Transmit/modulator process.
Public Member Functions inherited from SoDa::Thread
void registerThread (SoDa::ThreadPtr me)
void operator() ()
void start ()
 Execute the thread's run loop.
void join ()
 more properly "Wait for this thread to exit its run loop".
void execCommand (CommandPtr cmd)
 Execute (dispatch) a message removed from the command stream to one of the basic Command handler functions.
virtual void shutDown ()
 optional method that performs cleanup – may not delete.
void sleep_ms (unsigned int milliseconds)
void sleep_us (unsigned int microseconds)
uint32_t getID ()
 Get the process/thread ID for this thread – helps with figuring out who caused a segfault.
Public Member Functions inherited from SoDa::Base
 Base (const std::string &oname)
 The constructor – pass a name for the object.
void registerSelf (BasePtr ptr)
std::string & getObjName ()
 get the name of this object
BasePtr findSoDaObject (const std::string &oname)
 find a SoDa Object by name.
double getTime ()
 Get a time stamp in nS resolution that monotonically increases and that is very inexpensive (typically < 100nS).
BasePtr getSelfPtr ()
 get a pointer to myself.
Public Member Functions inherited from SoDa::Debug
 Debug (std::string _unit_name=std::string("UNKNOWN"))
 Debug (const char *_unit_name_cstr)
 Debug (unsigned int _debug_level, std::string _unit_name=std::string("UNKNOWN"))
 Debug (unsigned int _debug_level, const char *_unit_name_cstr)
void debugMsg (const std::string &msg, unsigned int threshold=1)
void debugMsg (const SoDa::Format &fmt, unsigned int threshold=1)
void debugMsg (const char *msg, unsigned int threshold=1)
void setDebugLevel (unsigned int v)
unsigned int getDebugLevel ()

Static Public Member Functions

static RTLSDRTXPtr make (ParamsPtr params)
Static Public Member Functions inherited from SoDa::Debug
static void setDefaultLevel (unsigned int v)
static unsigned int getDefaultLevel ()
static void setGlobalLevel (unsigned int v)
static unsigned int getGlobalLevel ()

Protected Member Functions

 RTLSDRTX (ParamsPtr params)
Protected Member Functions inherited from SoDa::RadioTX
virtual void subExecCommand (CommandPtr cmd)
 Some hardware radio modules might want to watch or publish to the command mailbox.
virtual void subExecGetCommand (CommandPtr cmd)
virtual void subExecSetCommand (CommandPtr cmd)
virtual void subExecRepCommand (CommandPtr cmd)
Protected Member Functions inherited from SoDa::Thread
 Thread (const std::string &oname, const std::string &version=std::string("12.2.0"))
 make the thread object.
Protected Member Functions inherited from SoDa::Debug
std::string curDateTime ()

Private Attributes

std::weak_ptr< RTLSDRTXself

Additional Inherited Members

Static Public Attributes inherited from SoDa::Debug
static std::mutex debug_msg_mutex
Protected Attributes inherited from SoDa::RadioTX
bool tx_enabled
 if true, we're transmitting.
CBufPtr zero_buf
 envelope for dead silence.
Protected Attributes inherited from SoDa::Thread
std::weak_ptr< Threadself
 A pointer to ourself.
Protected Attributes inherited from SoDa::Debug
std::string unit_name
 the name of the unit reporting status
unsigned int debug_level
 the debug level (threshold) for messages
Static Protected Attributes inherited from SoDa::Debug
static unsigned int default_debug_level
static unsigned int global_debug_level

Detailed Description

Definition at line 52 of file RTLSDRTX.hxx.

Constructor & Destructor Documentation

◆ RTLSDRTX()

SoDa::RTLSDRTX::RTLSDRTX ( ParamsPtr params)
inlineprotected

Definition at line 54 of file RTLSDRTX.hxx.

References SoDa::RadioTX::RadioTX().

Referenced by make().

◆ ~RTLSDRTX()

SoDa::RTLSDRTX::~RTLSDRTX ( )
default

Member Function Documentation

◆ getSelfPtr()

RadioTXPtr SoDa::RTLSDRTX::getSelfPtr ( )
inlineoverridevirtual

Implements SoDa::RadioTX.

Definition at line 74 of file RTLSDRTX.hxx.

References self.

◆ init()

void SoDa::RTLSDRTX::init ( )
inlineoverridevirtual

Some initialization must occurr after all the components are created.

Units may optionally implement this method to do that.

Reimplemented from SoDa::RadioTX.

Definition at line 66 of file RTLSDRTX.hxx.

◆ make()

RTLSDRTXPtr SoDa::RTLSDRTX::make ( ParamsPtr params)
inlinestatic

Definition at line 59 of file RTLSDRTX.hxx.

References RTLSDRTX().

◆ put()

bool SoDa::RTLSDRTX::put ( CBufPtr )
inlineoverridevirtual

Accept but discard all TX sample buffers.

Implements SoDa::RadioTX.

Definition at line 72 of file RTLSDRTX.hxx.

◆ transmitSwitch()

bool SoDa::RTLSDRTX::transmitSwitch ( bool )
inlineoverridevirtual

RTL-SDR cannot transmit — always report TX off.

Implements SoDa::RadioTX.

Definition at line 69 of file RTLSDRTX.hxx.

Member Data Documentation

◆ self

std::weak_ptr<RTLSDRTX> SoDa::RTLSDRTX::self
private

Definition at line 77 of file RTLSDRTX.hxx.

Referenced by getSelfPtr().


The documentation for this class was generated from the following file: