⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gr_oscope_sink.i

📁 这是用python语言写的一个数字广播的信号处理工具包。利用它
💻 I
字号:
/* -*- c++ -*- *//* * Copyright 2004 Free Software Foundation, Inc. *  * This file is part of GNU Radio *  * GNU Radio is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3, or (at your option) * any later version. *  * GNU Radio is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. *  * You should have received a copy of the GNU General Public License * along with GNU Radio; see the file COPYING.  If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, * Boston, MA 02110-1301, USA. */enum gr_trigger_mode {  gr_TRIG_AUTO,			// auto trigger (on anything)  gr_TRIG_POS_SLOPE,		// trigger on positive slope across trigger level  gr_TRIG_NEG_SLOPE		// trigger on negative slope across trigger level};// GR_SWIG_BLOCK_MAGIC(gr,oscope_sink_x)%ignore gr_oscope_sink_x;class gr_oscope_sink_x : public gr_sync_block{ protected:  gr_oscope_sink_x (const std::string name,		    gr_io_signature_sptr input_sig,		    double sample_rate); public:  ~gr_oscope_sink_x ();  bool set_update_rate (double update_rate);  bool set_decimation_count (int decimation_count);  bool set_trigger_channel (int channel);  bool set_trigger_mode (gr_trigger_mode mode);  bool set_trigger_level (double trigger_level);  bool set_trigger_level_auto ();				// set to 50% level  bool set_sample_rate(double sample_rate);  // ACCESSORS  int num_channels () const;  double sample_rate () const;  double update_rate () const;  int get_decimation_count () const;  int get_trigger_channel () const;  gr_trigger_mode get_trigger_mode () const;  double get_trigger_level () const;  // # of samples written to each output record.  int get_samples_per_output_record () const;};// ----------------------------------------------------------------GR_SWIG_BLOCK_MAGIC(gr,oscope_sink_f)gr_oscope_sink_f_sptrgr_make_oscope_sink_f (double sample_rate, gr_msg_queue_sptr msgq);class gr_oscope_sink_f : public gr_oscope_sink_x{private:  gr_oscope_sink_f (double sample_rate, gr_msg_queue_sptr msgq);public:  ~gr_oscope_sink_f ();};// ----------------------------------------------------------------

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -