spyserver_source_c
gr::sync_block
source_iface
spyserver_source_c.h
constexpr unsigned int constexpr unsigned int spyserver_source_c::BufferSize BufferSize spyserver_source_c::BufferSize = 64 * 1024
const uint32_t const uint32_t spyserver_source_c::ProtocolVersion ProtocolVersion spyserver_source_c::ProtocolVersion = SPYSERVER_PROTOCOL_VERSION
const std::string const std::string spyserver_source_c::SoftwareID SoftwareID spyserver_source_c::SoftwareID = std::string("gr-osmosdr")
const std::string const std::string spyserver_source_c::NameNoDevice NameNoDevice spyserver_source_c::NameNoDevice = std::string("SpyServer - No Device")
const std::string const std::string spyserver_source_c::NameAirspyOne NameAirspyOne spyserver_source_c::NameAirspyOne = std::string("SpyServer - Airspy One")
const std::string const std::string spyserver_source_c::NameAirspyHF NameAirspyHF spyserver_source_c::NameAirspyHF = std::string("SpyServer - Airspy HF+")
const std::string const std::string spyserver_source_c::NameRTLSDR NameRTLSDR spyserver_source_c::NameRTLSDR = std::string("SpyServer - RTLSDR")
const std::string const std::string spyserver_source_c::NameUnknown NameUnknown spyserver_source_c::NameUnknown = std::string("SpyServer - Unknown Device")
uint32_t uint32_t spyserver_source_c::minimum_tunable_frequency minimum_tunable_frequency spyserver_source_c::minimum_tunable_frequency
uint32_t uint32_t spyserver_source_c::maximum_tunable_frequency maximum_tunable_frequency spyserver_source_c::maximum_tunable_frequency
uint32_t uint32_t spyserver_source_c::device_center_frequency device_center_frequency spyserver_source_c::device_center_frequency
uint32_t uint32_t spyserver_source_c::channel_center_frequency channel_center_frequency spyserver_source_c::channel_center_frequency
uint32_t uint32_t spyserver_source_c::channel_decimation_stage_count channel_decimation_stage_count spyserver_source_c::channel_decimation_stage_count
tcp_client tcp_client spyserver_source_c::client client spyserver_source_c::client
std::atomic_bool std::atomic_bool spyserver_source_c::terminated terminated spyserver_source_c::terminated
std::atomic_bool std::atomic_bool spyserver_source_c::streaming streaming spyserver_source_c::streaming
std::atomic_bool std::atomic_bool spyserver_source_c::got_device_info got_device_info spyserver_source_c::got_device_info
std::atomic_bool std::atomic_bool spyserver_source_c::got_sync_info got_sync_info spyserver_source_c::got_sync_info
std::atomic_bool std::atomic_bool spyserver_source_c::can_control can_control spyserver_source_c::can_control
std::atomic_bool std::atomic_bool spyserver_source_c::is_connected is_connected spyserver_source_c::is_connected
std::thread * std::thread* spyserver_source_c::receiver_thread receiver_thread spyserver_source_c::receiver_thread
uint32_t uint32_t spyserver_source_c::dropped_buffers dropped_buffers spyserver_source_c::dropped_buffers
std::atomic< int64_t > std::atomic<int64_t> spyserver_source_c::down_stream_bytes down_stream_bytes spyserver_source_c::down_stream_bytes
uint8_t * uint8_t* spyserver_source_c::header_data header_data spyserver_source_c::header_data
uint8_t * uint8_t* spyserver_source_c::body_buffer body_buffer spyserver_source_c::body_buffer
uint64_t uint64_t spyserver_source_c::body_buffer_length body_buffer_length spyserver_source_c::body_buffer_length
uint32_t uint32_t spyserver_source_c::last_sequence_number last_sequence_number spyserver_source_c::last_sequence_number
std::string std::string spyserver_source_c::ip ip spyserver_source_c::ip
int int spyserver_source_c::port port spyserver_source_c::port
DeviceInfo DeviceInfo spyserver_source_c::device_info device_info spyserver_source_c::device_info
MessageHeader MessageHeader spyserver_source_c::header header spyserver_source_c::header
uint32_t uint32_t spyserver_source_c::streaming_mode streaming_mode spyserver_source_c::streaming_mode
boost::circular_buffer< gr_complex > * boost::circular_buffer<gr_complex>* spyserver_source_c::_fifo _fifo spyserver_source_c::_fifo
boost::mutex boost::mutex spyserver_source_c::_fifo_lock _fifo_lock spyserver_source_c::_fifo_lock
boost::condition_variable boost::condition_variable spyserver_source_c::_samp_avail _samp_avail spyserver_source_c::_samp_avail
std::vector< std::pair< double, uint32_t > > std::vector< std::pair<double, uint32_t> > spyserver_source_c::_sample_rates _sample_rates spyserver_source_c::_sample_rates
double double spyserver_source_c::_sample_rate _sample_rate spyserver_source_c::_sample_rate
double double spyserver_source_c::_center_freq _center_freq spyserver_source_c::_center_freq
double double spyserver_source_c::_gain _gain spyserver_source_c::_gain
double double spyserver_source_c::_digitalGain _digitalGain spyserver_source_c::_digitalGain
spyserver_source_c_sptr spyserver_source_c_sptr make_spyserver_source_c (const std::string &args) make_spyserver_source_c spyserver_source_c::make_spyserver_source_c const std::string & args

Return a shared_ptr to a new instance of spyserver_source_c.

To avoid accidental use of raw pointers, spyserver_source_c's constructor is private. make_spyserver_source_c is the public interface for creating new instances.

spyserver_source_c::spyserver_source_c
(const std::string &args)
spyserver_source_c
spyserver_source_c::spyserver_source_c
const std::string & args

Provides a stream of complex samples.

void void spyserver_source_c::connect () connect spyserver_source_c::connect
void void spyserver_source_c::disconnect () disconnect spyserver_source_c::disconnect
void void spyserver_source_c::thread_loop () thread_loop spyserver_source_c::thread_loop
bool bool spyserver_source_c::say_hello () say_hello spyserver_source_c::say_hello
void void spyserver_source_c::cleanup () cleanup spyserver_source_c::cleanup
void void spyserver_source_c::on_connect () on_connect spyserver_source_c::on_connect
bool bool spyserver_source_c::set_setting (uint32_t settingType, std::vector< uint32_t > params) set_setting spyserver_source_c::set_setting uint32_t settingType std::vector< uint32_t > params
bool bool spyserver_source_c::send_command (uint32_t cmd, std::vector< uint8_t > args) send_command spyserver_source_c::send_command uint32_t cmd std::vector< uint8_t > args
void void spyserver_source_c::process_device_info () process_device_info spyserver_source_c::process_device_info
void void spyserver_source_c::process_client_sync () process_client_sync spyserver_source_c::process_client_sync
void void spyserver_source_c::process_uint8_samples () process_uint8_samples spyserver_source_c::process_uint8_samples
void void spyserver_source_c::process_int16_samples () process_int16_samples spyserver_source_c::process_int16_samples
void void spyserver_source_c::process_float_samples () process_float_samples spyserver_source_c::process_float_samples
void void spyserver_source_c::process_uint8_fft () process_uint8_fft spyserver_source_c::process_uint8_fft
void void spyserver_source_c::handle_new_message () handle_new_message spyserver_source_c::handle_new_message
void void spyserver_source_c::set_stream_state () set_stream_state spyserver_source_c::set_stream_state
spyserver_source_c::~spyserver_source_c
()
~spyserver_source_c
spyserver_source_c::~spyserver_source_c
bool bool spyserver_source_c::start () start spyserver_source_c::start
bool bool spyserver_source_c::stop () stop spyserver_source_c::stop
int int spyserver_source_c::work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) work spyserver_source_c::work int noutput_items gr_vector_const_void_star & input_items gr_vector_void_star & output_items
size_t size_t spyserver_source_c::get_num_channels (void) get_num_channels spyserver_source_c::get_num_channels get_num_channels void

Get the number of channels the underlying radio hardware offers.

the number of available channels

osmosdr::meta_range_t osmosdr::meta_range_t spyserver_source_c::get_sample_rates (void) get_sample_rates spyserver_source_c::get_sample_rates get_sample_rates void

Get the possible sample rates for the underlying radio hardware.

a range of rates in Sps

double double spyserver_source_c::set_sample_rate (double rate) set_sample_rate spyserver_source_c::set_sample_rate set_sample_rate double rate

Set the sample rate for the underlying radio hardware. This also will select the appropriate IF bandpass, if applicable. rate

a new rate in Sps

double double spyserver_source_c::get_sample_rate (void) get_sample_rate spyserver_source_c::get_sample_rate get_sample_rate void

Get the sample rate for the underlying radio hardware. This is the actual sample rate and may differ from the rate set.

the actual rate in Sps

osmosdr::freq_range_t osmosdr::freq_range_t spyserver_source_c::get_freq_range (size_t chan=0) get_freq_range spyserver_source_c::get_freq_range get_freq_range size_t chan 0

Get the tunable frequency range for the underlying radio hardware. chan

the channel index 0 to N-1

the frequency range in Hz

double double spyserver_source_c::set_center_freq (double freq, size_t chan=0) set_center_freq spyserver_source_c::set_center_freq set_center_freq double freq size_t chan 0

Tune the underlying radio hardware to the desired center frequency. This also will select the appropriate RF bandpass. freq

the desired frequency in Hz

chan

the channel index 0 to N-1

the actual frequency in Hz

double double spyserver_source_c::get_center_freq (size_t chan=0) get_center_freq spyserver_source_c::get_center_freq get_center_freq size_t chan 0

Get the center frequency the underlying radio hardware is tuned to. This is the actual frequency and may differ from the frequency set. chan

the channel index 0 to N-1

the frequency in Hz

double double spyserver_source_c::set_freq_corr (double ppm, size_t chan=0) set_freq_corr spyserver_source_c::set_freq_corr set_freq_corr double ppm size_t chan 0

Set the frequency correction value in parts per million. ppm

the desired correction value in parts per million

chan

the channel index 0 to N-1

correction value in parts per million

double double spyserver_source_c::get_freq_corr (size_t chan=0) get_freq_corr spyserver_source_c::get_freq_corr get_freq_corr size_t chan 0

Get the frequency correction value. chan

the channel index 0 to N-1

correction value in parts per million

std::vector< std::string > std::vector< std::string > spyserver_source_c::get_gain_names (size_t chan=0) get_gain_names spyserver_source_c::get_gain_names get_gain_names size_t chan 0

Get the gain stage names of the underlying radio hardware. chan

the channel index 0 to N-1

a vector of strings containing the names of gain stages

osmosdr::gain_range_t osmosdr::gain_range_t spyserver_source_c::get_gain_range (size_t chan=0) get_gain_range spyserver_source_c::get_gain_range get_gain_range size_t chan 0

Get the settable overall gain range for the underlying radio hardware. chan

the channel index 0 to N-1

the gain range in dB

osmosdr::gain_range_t osmosdr::gain_range_t spyserver_source_c::get_gain_range (const std::string &name, size_t chan=0) get_gain_range spyserver_source_c::get_gain_range get_gain_range const std::string & name size_t chan 0

Get the settable gain range for a specific gain stage. name

the name of the gain stage

chan

the channel index 0 to N-1

the gain range in dB

bool bool spyserver_source_c::set_gain_mode (bool automatic, size_t chan=0) set_gain_mode spyserver_source_c::set_gain_mode set_gain_mode bool automatic size_t chan 0

Set the gain mode for the underlying radio hardware. This might be supported only for certain hardware types. automatic

the gain mode (true means automatic gain mode)

chan

the channel index 0 to N-1

the actual gain mode

bool bool spyserver_source_c::get_gain_mode (size_t chan=0) get_gain_mode spyserver_source_c::get_gain_mode get_gain_mode size_t chan 0

Get the gain mode selected for the underlying radio hardware. chan

the channel index 0 to N-1

the actual gain mode (true means automatic gain mode)

double double spyserver_source_c::set_gain (double gain, size_t chan=0) set_gain spyserver_source_c::set_gain set_gain double gain size_t chan 0

Set the gain for the underlying radio hardware. This function will automatically distribute the desired gain value over available gain stages in an appropriate way and return the actual value. gain

the gain in dB

chan

the channel index 0 to N-1

the actual gain in dB

double double spyserver_source_c::set_gain (double gain, const std::string &name, size_t chan=0) set_gain spyserver_source_c::set_gain set_gain double gain const std::string & name size_t chan 0

Set the named gain on the underlying radio hardware. gain

the gain in dB

name

the name of the gain stage

chan

the channel index 0 to N-1

the actual gain in dB

double double spyserver_source_c::get_gain (size_t chan=0) get_gain spyserver_source_c::get_gain get_gain size_t chan 0

Get the actual gain setting of the underlying radio hardware. chan

the channel index 0 to N-1

the actual gain in dB

double double spyserver_source_c::get_gain (const std::string &name, size_t chan=0) get_gain spyserver_source_c::get_gain get_gain const std::string & name size_t chan 0

Get the actual gain setting of a named stage. name

the name of the gain stage

chan

the channel index 0 to N-1

the actual gain in dB

double double spyserver_source_c::set_lna_gain (double gain, size_t chan=0) set_lna_gain spyserver_source_c::set_lna_gain double gain size_t chan 0
double double spyserver_source_c::set_mix_gain (double gain, size_t chan=0) set_mix_gain spyserver_source_c::set_mix_gain double gain size_t chan 0 set_bb_gain
double double spyserver_source_c::set_if_gain (double gain, size_t chan=0) set_if_gain spyserver_source_c::set_if_gain set_if_gain double gain size_t chan 0

Set the IF gain for the underlying radio hardware. This function will automatically distribute the desired gain value over available IF gain stages in an appropriate way and return the actual value. gain

the gain in dB

chan

the channel index 0 to N-1

the actual gain in dB

double double spyserver_source_c::set_bb_gain (double gain, size_t chan=0) set_bb_gain spyserver_source_c::set_bb_gain set_bb_gain double gain size_t chan 0

Set the BB gain for the underlying radio hardware. This function will automatically distribute the desired gain value over available BB gain stages in an appropriate way and return the actual value. gain

the gain in dB

chan

the channel index 0 to N-1

the actual gain in dB

set_mix_gain
std::vector< std::string > std::vector< std::string > spyserver_source_c::get_antennas (size_t chan=0) get_antennas spyserver_source_c::get_antennas get_antennas size_t chan 0

Get the available antennas of the underlying radio hardware. chan

the channel index 0 to N-1

a vector of strings containing the names of available antennas

std::string std::string spyserver_source_c::set_antenna (const std::string &antenna, size_t chan=0) set_antenna spyserver_source_c::set_antenna set_antenna const std::string & antenna size_t chan 0

Select the active antenna of the underlying radio hardware. chan

the channel index 0 to N-1

the actual antenna's name

std::string std::string spyserver_source_c::get_antenna (size_t chan=0) get_antenna spyserver_source_c::get_antenna get_antenna size_t chan 0

Get the actual underlying radio hardware antenna setting. chan

the channel index 0 to N-1

the actual antenna's name

double double spyserver_source_c::set_bandwidth (double bandwidth, size_t chan=0) set_bandwidth spyserver_source_c::set_bandwidth set_bandwidth double bandwidth size_t chan 0

Set the bandpass filter on the radio frontend. bandwidth

the filter bandwidth in Hz, set to 0 for automatic selection

chan

the channel index 0 to N-1

the actual filter bandwidth in Hz

double double spyserver_source_c::get_bandwidth (size_t chan=0) get_bandwidth spyserver_source_c::get_bandwidth get_bandwidth size_t chan 0

Get the actual bandpass filter setting on the radio frontend. chan

the channel index 0 to N-1

the actual filter bandwidth in Hz

osmosdr::freq_range_t osmosdr::freq_range_t spyserver_source_c::get_bandwidth_range (size_t chan=0) get_bandwidth_range spyserver_source_c::get_bandwidth_range get_bandwidth_range size_t chan 0

Get the possible bandpass filter settings on the radio frontend. chan

the channel index 0 to N-1

a range of bandwidths in Hz

void void spyserver_source_c::set_biast (bool enabled) set_biast spyserver_source_c::set_biast bool enabled
bool bool spyserver_source_c::get_biast () get_biast spyserver_source_c::get_biast
std::vector< std::string > static std::vector< std::string > spyserver_source_c::get_devices (bool fake=false) get_devices spyserver_source_c::get_devices bool fake false

Provides a stream of complex samples.

gr::sync_block
source_iface
spyserver_source_c
gr::sync_block
source_iface
spyserver_source_c
- spyserver_source_c
  _center_freq
- spyserver_source_c
  _digitalGain
- spyserver_source_c
  _fifo
- spyserver_source_c
  _fifo_lock
- spyserver_source_c
  _gain
- spyserver_source_c
  _samp_avail
- spyserver_source_c
  _sample_rate
- spyserver_source_c
  _sample_rates
- spyserver_source_c
  body_buffer
- spyserver_source_c
  body_buffer_length
- spyserver_source_c
  BufferSize
- spyserver_source_c
  can_control
- spyserver_source_c
  channel_center_frequency
- spyserver_source_c
  channel_decimation_stage_count
- spyserver_source_c
  cleanup
- spyserver_source_c
  client
- spyserver_source_c
  connect
- spyserver_source_c
  device_center_frequency
- spyserver_source_c
  device_info
- spyserver_source_c
  disconnect
- spyserver_source_c
  down_stream_bytes
- spyserver_source_c
  dropped_buffers
- spyserver_source_c
  get_antenna
- spyserver_source_c
  get_antennas
- spyserver_source_c
  get_bandwidth
- spyserver_source_c
  get_bandwidth_range
- spyserver_source_c
  get_biast
- spyserver_source_c
  get_center_freq
- spyserver_source_c
  get_clock_rate
- spyserver_source_c
  get_clock_source
- spyserver_source_c
  get_clock_sources
- spyserver_source_c
  get_devices
- spyserver_source_c
  get_freq_corr
- spyserver_source_c
  get_freq_range
- spyserver_source_c
  get_gain
- spyserver_source_c
  get_gain
- spyserver_source_c
  get_gain_mode
- spyserver_source_c
  get_gain_names
- spyserver_source_c
  get_gain_range
- spyserver_source_c
  get_gain_range
- spyserver_source_c
  get_num_channels
- spyserver_source_c
  get_sample_rate
- spyserver_source_c
  get_sample_rates
- spyserver_source_c
  get_time_last_pps
- spyserver_source_c
  get_time_now
- spyserver_source_c
  get_time_source
- spyserver_source_c
  get_time_sources
- spyserver_source_c
  got_device_info
- spyserver_source_c
  got_sync_info
- spyserver_source_c
  handle_new_message
- spyserver_source_c
  header
- spyserver_source_c
  header_data
- spyserver_source_c
  ip
- spyserver_source_c
  is_connected
- spyserver_source_c
  last_sequence_number
- spyserver_source_c
  make_spyserver_source_c
- spyserver_source_c
  maximum_tunable_frequency
- spyserver_source_c
  minimum_tunable_frequency
- spyserver_source_c
  NameAirspyHF
- spyserver_source_c
  NameAirspyOne
- spyserver_source_c
  NameNoDevice
- spyserver_source_c
  NameRTLSDR
- spyserver_source_c
  NameUnknown
- spyserver_source_c
  on_connect
- spyserver_source_c
  port
- spyserver_source_c
  process_client_sync
- spyserver_source_c
  process_device_info
- spyserver_source_c
  process_float_samples
- spyserver_source_c
  process_int16_samples
- spyserver_source_c
  process_uint8_fft
- spyserver_source_c
  process_uint8_samples
- spyserver_source_c
  ProtocolVersion
- spyserver_source_c
  receiver_thread
- spyserver_source_c
  say_hello
- spyserver_source_c
  seek
- spyserver_source_c
  send_command
- spyserver_source_c
  set_antenna
- spyserver_source_c
  set_bandwidth
- spyserver_source_c
  set_bb_gain
- spyserver_source_c
  set_biast
- spyserver_source_c
  set_center_freq
- spyserver_source_c
  set_clock_rate
- spyserver_source_c
  set_clock_source
- spyserver_source_c
  set_dc_offset
- spyserver_source_c
  set_dc_offset_mode
- spyserver_source_c
  set_freq_corr
- spyserver_source_c
  set_gain
- spyserver_source_c
  set_gain
- spyserver_source_c
  set_gain_mode
- spyserver_source_c
  set_if_gain
- spyserver_source_c
  set_iq_balance
- spyserver_source_c
  set_iq_balance_mode
- spyserver_source_c
  set_lna_gain
- spyserver_source_c
  set_mix_gain
- spyserver_source_c
  set_sample_rate
- spyserver_source_c
  set_setting
- spyserver_source_c
  set_stream_state
- spyserver_source_c
  set_time_next_pps
- spyserver_source_c
  set_time_now
- spyserver_source_c
  set_time_source
- spyserver_source_c
  set_time_unknown_pps
- spyserver_source_c
  SoftwareID
- spyserver_source_c
  spyserver_source_c
- spyserver_source_c
  start
- spyserver_source_c
  stop
- spyserver_source_c
  streaming
- spyserver_source_c
  streaming_mode
- spyserver_source_c
  terminated
- spyserver_source_c
  thread_loop
- spyserver_source_c
  work
- spyserver_source_c
  ~spyserver_source_c