2010-09-15 13:01:56 +08:00
|
|
|
/* -*- c++ -*- */
|
|
|
|
|
|
|
|
%include "gnuradio.i" // the common stuff
|
|
|
|
|
|
|
|
%{
|
|
|
|
#include "air_modes_preamble.h"
|
|
|
|
#include "air_modes_slicer.h"
|
2013-07-18 09:03:45 +08:00
|
|
|
#include <gnuradio/msg_queue.h>
|
2010-09-15 13:01:56 +08:00
|
|
|
%}
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------
|
|
|
|
|
|
|
|
/*
|
|
|
|
* First arg is the package prefix.
|
|
|
|
* Second arg is the name of the class minus the prefix.
|
|
|
|
*
|
|
|
|
* This does some behind-the-scenes magic so we can
|
|
|
|
* access howto_square_ff from python as howto.square_ff
|
|
|
|
*/
|
|
|
|
GR_SWIG_BLOCK_MAGIC(air,modes_preamble);
|
|
|
|
|
|
|
|
air_modes_preamble_sptr air_make_modes_preamble (int channel_rate, float threshold_db);
|
|
|
|
|
2013-07-18 09:03:45 +08:00
|
|
|
class air_modes_preamble : public gr::sync_block
|
2010-09-15 13:01:56 +08:00
|
|
|
{
|
2013-06-06 03:56:09 +08:00
|
|
|
set_rate(int channel_rate);
|
|
|
|
set_threshold(float threshold_db);
|
|
|
|
int get_threshold(void);
|
2010-09-15 13:01:56 +08:00
|
|
|
private:
|
|
|
|
air_modes_preamble (int channel_rate, float threshold_db);
|
|
|
|
};
|
|
|
|
|
|
|
|
GR_SWIG_BLOCK_MAGIC(air,modes_slicer);
|
|
|
|
|
2013-07-18 09:03:45 +08:00
|
|
|
air_modes_slicer_sptr air_make_modes_slicer (int channel_rate, gr::msg_queue::sptr queue);
|
2010-09-15 13:01:56 +08:00
|
|
|
|
2013-07-18 09:03:45 +08:00
|
|
|
class air_modes_slicer : public gr::block
|
2010-09-15 13:01:56 +08:00
|
|
|
{
|
2013-06-06 03:56:09 +08:00
|
|
|
set_rate(int channel_rate);
|
2010-09-15 13:01:56 +08:00
|
|
|
private:
|
2013-07-18 09:03:45 +08:00
|
|
|
air_modes_slicer (int channel_rate, gr::msg_queue::sptr queue);
|
2010-09-15 13:01:56 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------
|
|
|
|
|