The Baseclass for all SoDa objects, and useful commonly used classes.
The Thread baseclass for all SoDa thread objects.
unsigned int cmd_subs
subscription for command stream
float * beacon_envelope
the currently generated envelope
CmdMBox * cmd_stream
stream of commands to modify radio state
void execSetCommand(Command *cmd)
handle SET commands from the command channel
This class handles command line parameters and built-ins.
void run()
CWTX run loop: translate text to CW envelopes, handle incoming commands.
void execGetCommand(Command *cmd)
execute GET commands from the command channel
std::queue< int > break_notification_id_queue
tags inserted into text stream – send tag when the CW envelope generator gets to this character...
bool sendAvailChar()
if a character is available, encode it into an envelope
CWTX(Params *params, CmdMBox *cwtxt_stream, DatMBox *cw_env_stream, CmdMBox *cmd_stream)
Constructor.
The CW text-to-envelope converter run loop.
std::queue< char > text_queue
characters waiting to be sent
This is a list of all the commands that can "do something" to one or more components in the SoDa radi...
double rf_sample_rate
samples/sec for generating the envelope
void clearTextQueue()
forget all enqueued text
void execRepCommand(Command *cmd)
handle Report commands from the command channel
CmdMBox * cwtxt_stream
stream of characters to be encoded (from UI or elsewhere)
unsigned int cwtxt_subs
subscription for text stream
boost::mutex text_lock
lock for text_queue
boost::mutex break_id_lock
lock for break_notification queue
unsigned int rf_buffer_size
the size of the envelope buffer
bool txmode_is_cw
if true, we're transmitting a CW stream
CWGenerator * cwgen
Pointer to a text-to-morse translator.
bool tx_on
if true, we're transmitting a CW stream or a beacon
void enqueueText(const char *buf)
add text to the outbound text queue
DatMBox * cw_env_stream
stream carrying cw envelope buffers to USRPTX
A text to morse envelope converter.
bool old_txmode_is_cw
remember the mode we were in