diff options
author | ptrkrysik <ptrkrysik@gmail.com> | 2015-04-04 12:28:20 +0200 |
---|---|---|
committer | ptrkrysik <ptrkrysik@gmail.com> | 2015-04-04 12:28:20 +0200 |
commit | c2cba97103fc33ef449f732b7bb082d15fd3d54a (patch) | |
tree | 2e697ab55408ad51bf2416e12940e0c548d63c69 /include/grgsm/receiver | |
parent | d369c87d3aa8e3fda382d84b36f2d731d0a88378 (diff) |
Reimplemented clock_offset_control block in C++
Diffstat (limited to 'include/grgsm/receiver')
-rw-r--r-- | include/grgsm/receiver/CMakeLists.txt | 1 | ||||
-rw-r--r-- | include/grgsm/receiver/clock_offset_control.h | 60 |
2 files changed, 61 insertions, 0 deletions
diff --git a/include/grgsm/receiver/CMakeLists.txt b/include/grgsm/receiver/CMakeLists.txt index 4b92f7f..99ebf4f 100644 --- a/include/grgsm/receiver/CMakeLists.txt +++ b/include/grgsm/receiver/CMakeLists.txt @@ -21,5 +21,6 @@ # Install public header files ######################################################################## install(FILES + clock_offset_control.h receiver.h DESTINATION include/grgsm/receiver ) diff --git a/include/grgsm/receiver/clock_offset_control.h b/include/grgsm/receiver/clock_offset_control.h new file mode 100644 index 0000000..981c0dc --- /dev/null +++ b/include/grgsm/receiver/clock_offset_control.h @@ -0,0 +1,60 @@ +/* -*- c++ -*- */ +/* + * @file + * @author Piotr Krysik <ptrkrysik@gmail.com> + * @section LICENSE + * + * Gr-gsm 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. + * + * Gr-gsm 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 gr-gsm; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, + * Boston, MA 02110-1301, USA. + * + */ + + +#ifndef INCLUDED_GSM_CLOCK_OFFSET_CONTROL_H +#define INCLUDED_GSM_CLOCK_OFFSET_CONTROL_H + +#include <grgsm/api.h> +#include <gnuradio/block.h> + +namespace gr { + namespace gsm { + + /*! + * \brief <+description of block+> + * \ingroup gsm + * + */ + class GSM_API clock_offset_control : virtual public gr::block + { + public: + typedef boost::shared_ptr<clock_offset_control> sptr; + + /*! + * \brief Return a shared_ptr to a new instance of gsm::clock_offset_control. + * + * To avoid accidental use of raw pointers, gsm::clock_offset_control's + * constructor is in a private implementation + * class. gsm::clock_offset_control::make is the public interface for + * creating new instances. + */ + static sptr make(float fc); + virtual void set_fc(float fc) = 0; + }; + + } // namespace gsm +} // namespace gr + +#endif /* INCLUDED_GSM_CLOCK_OFFSET_CONTROL_H */ + |