24#ifndef INCLUDED_GR_OSCOPE_GUTS_H
25#define INCLUDED_GR_OSCOPE_GUTS_H
51 static const int MAX_CHANNELS = 8;
54 enum scope_state { HOLD_OFF, LOOK_FOR_TRIGGER, POST_TRIGGER };
60 int d_trigger_channel;
63 double d_trigger_level;
66 float* d_buffer[MAX_CHANNELS];
69 int d_decimator_count;
70 int d_decimator_count_init;
72 int d_hold_off_count_init;
73 int d_pre_trigger_count;
74 int d_post_trigger_count;
75 int d_post_trigger_count_init;
82 void trigger_changed();
83 void update_rate_or_decimation_changed();
85 void write_output_records();
87 void enter_hold_off();
88 void enter_look_for_trigger();
89 void enter_post_trigger();
boost::shared_ptr< msg_queue > sptr
Definition: msg_queue.h:47
guts of oscilloscope trigger and buffer module
Definition: oscope_guts.h:49
void process_sample(const float *channel_data)
bool set_update_rate(double update_rate)
trigger_mode get_trigger_mode() const
bool set_trigger_level_auto()
double sample_rate() const
bool set_trigger_mode(trigger_mode mode)
int get_samples_per_output_record() const
bool set_trigger_level(double trigger_level)
int get_trigger_channel() const
int get_decimation_count() const
oscope_guts(double sample_rate, msg_queue::sptr msgq)
trigger_slope get_trigger_slope() const
bool set_decimation_count(int decimation_count)
bool set_trigger_channel(int channel)
bool set_num_channels(int nchannels)
double update_rate() const
bool set_sample_rate(double sample_rate)
bool set_trigger_slope(trigger_slope slope)
double get_trigger_level() const
#define WXGUI_API
Definition: gr-wxgui/include/gnuradio/wxgui/api.h:30
trigger_slope
Definition: gr-wxgui/include/gnuradio/wxgui/trigger_mode.h:36
trigger_mode
Definition: gr-wxgui/include/gnuradio/wxgui/trigger_mode.h:29
Include this header to use the message passing features.
Definition: basic_block.h:45