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

📄 gr_complex_to_xxx.h

📁 gnuradio软件无线电源程序.现在的手机多基于软件无线电
💻 H
字号:
/* -*- 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 2, 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., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */#ifndef INCLUDED_GR_COMPLEX_TO_XXX_H#define INCLUDED_GR_COMPLEX_TO_XXX_H#include <gr_sync_block.h>#include <gr_complex.h>class gr_complex_to_float;class gr_complex_to_real;class gr_complex_to_imag;class gr_complex_to_mag;class gr_complex_to_arg;typedef boost::shared_ptr<gr_complex_to_float> gr_complex_to_float_sptr;typedef boost::shared_ptr<gr_complex_to_real> gr_complex_to_real_sptr;typedef boost::shared_ptr<gr_complex_to_imag> gr_complex_to_imag_sptr;typedef boost::shared_ptr<gr_complex_to_mag> gr_complex_to_mag_sptr;typedef boost::shared_ptr<gr_complex_to_arg> gr_complex_to_arg_sptr;gr_complex_to_float_sptr gr_make_complex_to_float (unsigned int vlen=1);gr_complex_to_real_sptr gr_make_complex_to_real (unsigned int vlen=1);gr_complex_to_imag_sptr gr_make_complex_to_imag (unsigned int vlen=1);gr_complex_to_mag_sptr gr_make_complex_to_mag (unsigned int vlen=1);gr_complex_to_arg_sptr gr_make_complex_to_arg (unsigned int vlen=1);/*! * \brief convert a stream of gr_complex to 1 or 2 streams of float * \ingroup converter * \param vlen	vector len (default 1) */class gr_complex_to_float : public gr_sync_block{  friend gr_complex_to_float_sptr gr_make_complex_to_float (unsigned int vlen);  gr_complex_to_float (unsigned int vlen);  unsigned int	d_vlen; public:  virtual int work (int noutput_items,		    gr_vector_const_void_star &input_items,		    gr_vector_void_star &output_items);};/*! * \brief complex in, real out (float) * \ingroup converter * \param vlen	vector len (default 1) */class gr_complex_to_real : public gr_sync_block{  friend gr_complex_to_real_sptr gr_make_complex_to_real (unsigned int vlen);  gr_complex_to_real (unsigned int vlen);  unsigned int	d_vlen; public:  virtual int work (int noutput_items,		    gr_vector_const_void_star &input_items,		    gr_vector_void_star &output_items);};/*! * \brief complex in, imaginary out (float) * \ingroup converter * \param vlen	vector len (default 1) */class gr_complex_to_imag : public gr_sync_block{  friend gr_complex_to_imag_sptr gr_make_complex_to_imag (unsigned int vlen);  gr_complex_to_imag (unsigned int vlen);  unsigned int	d_vlen; public:  virtual int work (int noutput_items,		    gr_vector_const_void_star &input_items,		    gr_vector_void_star &output_items);};/*! * \brief complex in, magnitude out (float) * \ingroup converter * \param vlen	vector len (default 1) */class gr_complex_to_mag : public gr_sync_block{  friend gr_complex_to_mag_sptr gr_make_complex_to_mag (unsigned int vlen);  gr_complex_to_mag (unsigned int vlen);  unsigned int	d_vlen; public:  virtual int work (int noutput_items,		    gr_vector_const_void_star &input_items,		    gr_vector_void_star &output_items);};/*! * \brief complex in, angle out (float)  * \ingroup converter * \param vlen	vector len (default 1) */class gr_complex_to_arg : public gr_sync_block{  friend gr_complex_to_arg_sptr gr_make_complex_to_arg (unsigned int vlen);  gr_complex_to_arg (unsigned int vlen);  unsigned int	d_vlen; public:  virtual int work (int noutput_items,		    gr_vector_const_void_star &input_items,		    gr_vector_void_star &output_items);};#endif /* INCLUDED_GR_COMPLEX_TO_XXX_H */

⌨️ 快捷键说明

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