GNU Radio's HNCHIIO Package
hnchboard2_source_impl.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2014 Analog Devices Inc.
4 * Author: Paul Cercueil <paul.cercueil@analog.com>
5 *
6 * This is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3, or (at your option)
9 * any later version.
10 *
11 * This software is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this software; see the file COPYING. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street,
19 * Boston, MA 02110-1301, USA.
20 */
21
22#ifndef INCLUDED_IIO_HNCHBOARD2_SOURCE_IMPL_H
23#define INCLUDED_IIO_HNCHBOARD2_SOURCE_IMPL_H
24
25#include <string>
26#include <vector>
27
29
30#include "flexi_source_impl.h"
31
32namespace gr {
33 namespace hnchiio {
34
36 , public flexi_source_impl
37 {
38 public:
39 hnchboard2_source_impl(struct iio_context *ctx, unsigned long samplerate, unsigned long lo_freq, double gain_value, unsigned long buffer_size);
40
41 void set_params(unsigned long samplerate, unsigned long lo_freq, double gain_value);
42 };
43
44 } // namespace hnchiio
45} // namespace gr
46
47#endif /* INCLUDED_IIO_HNCHBOARD2_SOURCE_IMPL_H */
unsigned int buffer_size
Definition flexi_source_impl.h:63
flexi_source_impl(struct iio_context *ctx, bool destroy_ctx, const std::string &device, const std::vector< std::string > &channels, const std::string &device_phy, const std::vector< std::string > &devparams, const std::vector< std::string > &phyparams, unsigned int buffer_size=DEFAULT_BUFFER_SIZE, unsigned int decimation=0)
struct iio_context * ctx
Definition flexi_source_impl.h:59
void set_params(unsigned long samplerate, unsigned long lo_freq, double gain_value)
hnchboard2_source_impl(struct iio_context *ctx, unsigned long samplerate, unsigned long lo_freq, double gain_value, unsigned long buffer_size)
<+description of block+>
Definition hnchboard2_source.h:41
Definition device_sink.h:36
Definition device_sink.h:35