Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

GrOscopeSinkX.h

Go to the documentation of this file.
00001 /* -*- c++ -*- */ 00002 /* 00003 * Copyright 2003 Free Software Foundation, Inc. 00004 * 00005 * This file is part of GNU Radio 00006 * 00007 * GNU Radio is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2, or (at your option) 00010 * any later version. 00011 * 00012 * GNU Radio is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with GNU Radio; see the file COPYING. If not, write to 00019 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00020 * Boston, MA 02111-1307, USA. 00021 */ 00022 00023 #ifndef _GROSCOPESINKX_H_ 00024 #define _GROSCOPESINKX_H_ 00025 00026 #include <GrSink.h> 00027 #include <gr_TriggerMode.h> 00028 00029 class gr_OscopeGuts; 00030 00031 00036 class GrOscopeSinkX : public GrSink 00037 { 00038 protected: 00039 gr_OscopeGuts *d_guts; 00040 00041 public: 00042 GrOscopeSinkX (int input_itemsize); 00043 ~GrOscopeSinkX (); 00044 00045 bool setUpdateRate (double update_rate); 00046 bool setDecimationCount (int decimation_count); 00047 bool setTriggerChannel (int channel); 00048 bool setTriggerMode (gr_TriggerMode mode); 00049 bool setTriggerLevel (double trigger_level); 00050 bool setTriggerLevelAuto (); // set to 50% level 00051 00052 00053 // ACCESSORS 00054 int getNumChannels () const; 00055 double getSamplingRate () const; 00056 double getUpdateRate () const; 00057 int getDecimationCount () const; 00058 int getTriggerChannel () const; 00059 gr_TriggerMode getTriggerMode () const; 00060 double getTriggerLevel () const; 00061 00062 // # of samples written to each output record. 00063 int getSamplesPerOutputRecord () const; 00064 00065 }; 00066 00067 #endif /* _GROSCOPESINKX_H_ */

Generated on Wed Aug 4 02:22:04 2004 for GNU Radio by doxygen 1.3.8