estimator_sync_pulse_c_impl.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2014 Communications Engineering Lab, KIT.
*
* This 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.
*
* This software 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 this software; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
* Boston, MA 02110-1301, USA.
*/
#ifndef INCLUDED_RADAR_ESTIMATOR_SYNC_PULSE_C_IMPL_H
#define INCLUDED_RADAR_ESTIMATOR_SYNC_PULSE_C_IMPL_H
#include <radar/estimator_sync_pulse_c.h>
namespace gr {
namespace radar {
class estimator_sync_pulse_c_impl : public estimator_sync_pulse_c
{
private:
// Nothing to declare in this block.
protected:
int calculate_output_stream_length(const gr_vector_int& ninput_items);
public:
estimator_sync_pulse_c_impl(int num_xcorr, const std::string len_key);
~estimator_sync_pulse_c_impl();
void set_num_xcorr(int num);
int d_num_xcorr;
pmt::pmt_t d_port_id;
int d_noutput_items_vec;
std::vector<float> d_in_tx_real, d_in_rx_real;
// Where all the action really happens
int work(int noutput_items,
gr_vector_int& ninput_items,
gr_vector_const_void_star& input_items,
gr_vector_void_star& output_items);
};
} // namespace radar
} // namespace gr
#endif /* INCLUDED_RADAR_ESTIMATOR_SYNC_PULSE_C_IMPL_H */
gr::radar::estimator_sync_pulse_c_impl::calculate_output_stream_length
int calculate_output_stream_length(const gr_vector_int &ninput_items)
gr::radar::estimator_sync_pulse_c_impl::d_in_rx_real
std::vector< float > d_in_rx_real
Definition estimator_sync_pulse_c_impl.h:45
gr::radar::estimator_sync_pulse_c_impl::set_num_xcorr
void set_num_xcorr(int num)
gr::radar::estimator_sync_pulse_c_impl::work
int work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
gr::radar::estimator_sync_pulse_c_impl::~estimator_sync_pulse_c_impl
~estimator_sync_pulse_c_impl()
gr::radar::estimator_sync_pulse_c_impl::d_in_tx_real
std::vector< float > d_in_tx_real
Definition estimator_sync_pulse_c_impl.h:45
gr::radar::estimator_sync_pulse_c_impl::d_num_xcorr
int d_num_xcorr
Definition estimator_sync_pulse_c_impl.h:42
gr::radar::estimator_sync_pulse_c_impl::d_noutput_items_vec
int d_noutput_items_vec
Definition estimator_sync_pulse_c_impl.h:44
gr::radar::estimator_sync_pulse_c_impl::d_port_id
pmt::pmt_t d_port_id
Definition estimator_sync_pulse_c_impl.h:43
gr::radar::estimator_sync_pulse_c_impl::estimator_sync_pulse_c_impl
estimator_sync_pulse_c_impl(int num_xcorr, const std::string len_key)
gr::radar::estimator_sync_pulse_c
This block can be used to estimate the shift of a signal on input 1 in relation to another on input 2...
Definition estimator_sync_pulse_c.h:46
estimator_sync_pulse_c.h
gr::radar
Definition crop_matrix_vcvc.h:29
gr
Definition crop_matrix_vcvc.h:28