GNU Radio Manual and C++ API Reference  3.7.10
The Free & Open Software Radio Ecosystem
gr::wxgui::oscope_guts Class Reference

guts of oscilloscope trigger and buffer module More...

#include <gnuradio/wxgui/oscope_guts.h>

Public Member Functions

 oscope_guts (double sample_rate, msg_queue::sptr msgq)
 
 ~oscope_guts ()
 
void process_sample (const float *channel_data)
 
bool set_update_rate (double update_rate)
 
bool set_decimation_count (int decimation_count)
 
bool set_trigger_channel (int channel)
 
bool set_trigger_mode (trigger_mode mode)
 
bool set_trigger_slope (trigger_slope slope)
 
bool set_trigger_level (double trigger_level)
 
bool set_trigger_level_auto ()
 
bool set_sample_rate (double sample_rate)
 
bool set_num_channels (int nchannels)
 
int num_channels () const
 
double sample_rate () const
 
double update_rate () const
 
int get_decimation_count () const
 
int get_trigger_channel () const
 
trigger_mode get_trigger_mode () const
 
trigger_slope get_trigger_slope () const
 
double get_trigger_level () const
 
int get_samples_per_output_record () const
 

Static Public Attributes

static const int MAX_CHANNELS = 8
 

Detailed Description

guts of oscilloscope trigger and buffer module

This module processes sets of samples provided the process_sample method. When appropriate given the updateRate, sampleRate and trigger conditions, process_sample will periodically write output records of captured data to output_fd. For each trigger event, nchannels records will be written. Each record consists of get_samples_per_output_record binary floats. The trigger instant occurs at the 1/2 way point in the buffer. Thus, output records consist of 50% pre-trigger data and 50% post-trigger data.

Constructor & Destructor Documentation

◆ oscope_guts()

gr::wxgui::oscope_guts::oscope_guts ( double  sample_rate,
msg_queue::sptr  msgq 
)

◆ ~oscope_guts()

gr::wxgui::oscope_guts::~oscope_guts ( )

Member Function Documentation

◆ get_decimation_count()

int gr::wxgui::oscope_guts::get_decimation_count ( ) const

◆ get_samples_per_output_record()

int gr::wxgui::oscope_guts::get_samples_per_output_record ( ) const

◆ get_trigger_channel()

int gr::wxgui::oscope_guts::get_trigger_channel ( ) const

◆ get_trigger_level()

double gr::wxgui::oscope_guts::get_trigger_level ( ) const

◆ get_trigger_mode()

trigger_mode gr::wxgui::oscope_guts::get_trigger_mode ( ) const

◆ get_trigger_slope()

trigger_slope gr::wxgui::oscope_guts::get_trigger_slope ( ) const

◆ num_channels()

int gr::wxgui::oscope_guts::num_channels ( ) const

◆ process_sample()

void gr::wxgui::oscope_guts::process_sample ( const float *  channel_data)
Parameters
channel_datapoints to nchannels float values. These are the values for each channel at this sample time.

◆ sample_rate()

double gr::wxgui::oscope_guts::sample_rate ( ) const

◆ set_decimation_count()

bool gr::wxgui::oscope_guts::set_decimation_count ( int  decimation_count)

◆ set_num_channels()

bool gr::wxgui::oscope_guts::set_num_channels ( int  nchannels)

◆ set_sample_rate()

bool gr::wxgui::oscope_guts::set_sample_rate ( double  sample_rate)

◆ set_trigger_channel()

bool gr::wxgui::oscope_guts::set_trigger_channel ( int  channel)

◆ set_trigger_level()

bool gr::wxgui::oscope_guts::set_trigger_level ( double  trigger_level)

◆ set_trigger_level_auto()

bool gr::wxgui::oscope_guts::set_trigger_level_auto ( )

◆ set_trigger_mode()

bool gr::wxgui::oscope_guts::set_trigger_mode ( trigger_mode  mode)

◆ set_trigger_slope()

bool gr::wxgui::oscope_guts::set_trigger_slope ( trigger_slope  slope)

◆ set_update_rate()

bool gr::wxgui::oscope_guts::set_update_rate ( double  update_rate)

◆ update_rate()

double gr::wxgui::oscope_guts::update_rate ( ) const

Member Data Documentation

◆ MAX_CHANNELS

const int gr::wxgui::oscope_guts::MAX_CHANNELS = 8
static

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