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();
102 void process_sample(
const float *channel_data);
104 bool set_update_rate(
double update_rate);
105 bool set_decimation_count(
int decimation_count);
106 bool set_trigger_channel(
int channel);
109 bool set_trigger_level(
double trigger_level);
110 bool set_trigger_level_auto();
111 bool set_sample_rate(
double sample_rate);
112 bool set_num_channels(
int nchannels);
115 int num_channels()
const;
116 double sample_rate()
const;
117 double update_rate()
const;
118 int get_decimation_count()
const;
119 int get_trigger_channel()
const;
122 double get_trigger_level()
const;
125 int get_samples_per_output_record()
const;
boost::shared_ptr< msg_queue > sptr
Definition: msg_queue.h:47
guts of oscilloscope trigger and buffer module
Definition: oscope_guts.h:48
trigger_mode
Definition: gr-wxgui/include/gnuradio/wxgui/trigger_mode.h:29
Include this header to use the message passing features.
Definition: logger.h:131
trigger_slope
Definition: gr-wxgui/include/gnuradio/wxgui/trigger_mode.h:36
#define WXGUI_API
Definition: gr-wxgui/include/gnuradio/wxgui/api.h:30