7e3107282a
This block takes PDU messages as input, looks for a "csi" entry in the meta dictionary, and if found outputs a complex CSI vector on a stream output. The meta is also sent along as stream tags.
101 lines
3.5 KiB
OpenEdge ABL
101 lines
3.5 KiB
OpenEdge ABL
/* -*- c++ -*- */
|
|
/*
|
|
* Copyright 2013, 2019 Bastian Bloessl <mail@bastibl.net>
|
|
*
|
|
* This program 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 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program 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 program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
#define IEEE802_11_API
|
|
#define DIGITAL_API
|
|
|
|
%include "gnuradio.i" // the common stuff
|
|
|
|
//load generated python docstrings
|
|
%include "ieee802_11_swig_doc.i"
|
|
|
|
%{
|
|
#include "ieee802_11/chunks_to_symbols.h"
|
|
#include "ieee802_11/constellations.h"
|
|
#include "ieee802_11/decode_mac.h"
|
|
#include "ieee802_11/ether_encap.h"
|
|
#include "ieee802_11/extract_csi.h"
|
|
#include "ieee802_11/frame_equalizer.h"
|
|
#include "ieee802_11/mac.h"
|
|
#include "ieee802_11/mapper.h"
|
|
#include "ieee802_11/parse_mac.h"
|
|
#include "ieee802_11/signal_field.h"
|
|
#include "ieee802_11/sync_long.h"
|
|
#include "ieee802_11/sync_short.h"
|
|
%}
|
|
|
|
%include "gnuradio/digital/packet_header_default.h"
|
|
|
|
%ignore gr::digital::constellation_bpsk;
|
|
%ignore gr::digital::constellation_qpsk;
|
|
%ignore gr::digital::constellation_16qam;
|
|
%include "gnuradio/digital/constellation.h"
|
|
|
|
%include "ieee802_11/chunks_to_symbols.h"
|
|
%include "ieee802_11/constellations.h"
|
|
%include "ieee802_11/decode_mac.h"
|
|
%include "ieee802_11/ether_encap.h"
|
|
%include "ieee802_11/extract_csi.h"
|
|
%include "ieee802_11/frame_equalizer.h"
|
|
%include "ieee802_11/mac.h"
|
|
%include "ieee802_11/mapper.h"
|
|
%include "ieee802_11/parse_mac.h"
|
|
%include "ieee802_11/signal_field.h"
|
|
%include "ieee802_11/sync_long.h"
|
|
%include "ieee802_11/sync_short.h"
|
|
|
|
GR_SWIG_BLOCK_MAGIC2(ieee802_11, chunks_to_symbols);
|
|
GR_SWIG_BLOCK_MAGIC2(ieee802_11, decode_mac);
|
|
GR_SWIG_BLOCK_MAGIC2(ieee802_11, ether_encap);
|
|
GR_SWIG_BLOCK_MAGIC2(ieee802_11, extract_csi);
|
|
GR_SWIG_BLOCK_MAGIC2(ieee802_11, frame_equalizer);
|
|
GR_SWIG_BLOCK_MAGIC2(ieee802_11, mac);
|
|
GR_SWIG_BLOCK_MAGIC2(ieee802_11, mapper);
|
|
GR_SWIG_BLOCK_MAGIC2(ieee802_11, parse_mac);
|
|
GR_SWIG_BLOCK_MAGIC2(ieee802_11, sync_long);
|
|
GR_SWIG_BLOCK_MAGIC2(ieee802_11, sync_short);
|
|
|
|
%template(signal_field_sptr) boost::shared_ptr<gr::ieee802_11::signal_field>;
|
|
%pythoncode %{
|
|
signal_field_sptr.__repr__ = lambda self: "<signal_field>"
|
|
signal_field = signal_field.make;
|
|
%}
|
|
|
|
%template(constellation_bpsk_sptr) boost::shared_ptr<gr::ieee802_11::constellation_bpsk>;
|
|
%pythoncode %{
|
|
constellation_bpsk_sptr.__repr__ = lambda self: "<constellation BPSK>"
|
|
constellation_bpsk = constellation_bpsk.make;
|
|
%}
|
|
|
|
%template(constellation_qpsk_sptr) boost::shared_ptr<gr::ieee802_11::constellation_qpsk>;
|
|
%pythoncode %{
|
|
constellation_qpsk_sptr.__repr__ = lambda self: "<constellation QPSK>"
|
|
constellation_qpsk = constellation_qpsk.make;
|
|
%}
|
|
|
|
%template(constellation_16qam_sptr) boost::shared_ptr<gr::ieee802_11::constellation_16qam>;
|
|
%pythoncode %{
|
|
constellation_16qam_sptr.__repr__ = lambda self: "<constellation 16QAM>"
|
|
constellation_16qam = constellation_16qam.make;
|
|
%}
|
|
|
|
%template(constellation_64qam_sptr) boost::shared_ptr<gr::ieee802_11::constellation_64qam>;
|
|
%pythoncode %{
|
|
constellation_64qam_sptr.__repr__ = lambda self: "<constellation 64QAM>"
|
|
constellation_64qam = constellation_64qam.make;
|
|
%}
|