GNU Radio 3.6.4.1 C++ API
gr_sig_source_s.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
/*
3
* Copyright 2004 Free Software Foundation, Inc.
4
*
5
* This file is part of GNU Radio
6
*
7
* GNU Radio is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 3, or (at your option)
10
* any later version.
11
*
12
* GNU Radio is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with GNU Radio; see the file COPYING. If not, write to
19
* the Free Software Foundation, Inc., 51 Franklin Street,
20
* Boston, MA 02110-1301, USA.
21
*/
22
23
// WARNING: this file is machine generated. Edits will be overwritten
24
25
#ifndef INCLUDED_GR_GR_SIG_SOURCE_S_H
26
#define INCLUDED_GR_GR_SIG_SOURCE_S_H
27
28
#include <
gr_core_api.h
>
29
#include <
gr_sync_block.h
>
30
#include <
gr_sig_source_waveform.h
>
31
#include <
gr_fxpt_nco.h
>
32
33
class
gr_sig_source_s
;
34
typedef
boost::shared_ptr<gr_sig_source_s>
gr_sig_source_s_sptr
;
35
36
/*!
37
* \brief signal generator with short output.
38
* \ingroup source_blk
39
*/
40
41
class
GR_CORE_API
gr_sig_source_s
:
public
gr_sync_block
{
42
friend
GR_CORE_API
gr_sig_source_s_sptr
43
gr_make_sig_source_s
(
double
sampling_freq,
gr_waveform_t
waveform,
44
double
frequency,
double
ampl,
short
offset);
45
46
double
d_sampling_freq;
47
gr_waveform_t
d_waveform;
48
double
d_frequency;
49
double
d_ampl;
50
short
d_offset;
51
gr_fxpt_nco
d_nco;
52
53
54
gr_sig_source_s
(
double
sampling_freq,
gr_waveform_t
waveform,
55
double
wave_freq,
double
ampl,
short
offset);
56
57
public
:
58
virtual
int
work
(
int
noutput_items,
59
gr_vector_const_void_star
&input_items,
60
gr_vector_void_star
&output_items);
61
62
// ACCESSORS
63
double
sampling_freq
()
const
{
return
d_sampling_freq; }
64
gr_waveform_t
waveform
()
const
{
return
d_waveform; }
65
double
frequency
()
const
{
return
d_frequency; }
66
double
amplitude
()
const
{
return
d_ampl; }
67
short
offset
()
const
{
return
d_offset; }
68
69
// MANIPULATORS
70
void
set_sampling_freq (
double
sampling_freq);
71
void
set_waveform (
gr_waveform_t
waveform);
72
void
set_frequency (
double
frequency);
73
void
set_amplitude (
double
ampl);
74
void
set_offset (
short
offset);
75
};
76
77
GR_CORE_API
gr_sig_source_s_sptr
78
gr_make_sig_source_s
(
double
sampling_freq,
gr_waveform_t
waveform,
79
double
wave_freq,
double
ampl,
short
offset = 0);
80
81
82
#endif
gnuradio-core
src
lib
gengen
gr_sig_source_s.h
Generated on Sun Apr 28 2013 20:26:35 for GNU Radio 3.6.4.1 C++ API by
1.8.3.1