Modification of the burst sink to read bursts with headers - incomplete
This commit is contained in:
parent
27f003267c
commit
ebf8880709
|
@ -25,6 +25,7 @@
|
|||
|
||||
#include <grgsm/api.h>
|
||||
#include <gnuradio/block.h>
|
||||
#include <pmt/pmt.h>
|
||||
|
||||
namespace gr {
|
||||
namespace gsm {
|
||||
|
@ -52,6 +53,7 @@ namespace gr {
|
|||
virtual std::vector<int> get_framenumbers() = 0;
|
||||
virtual std::vector<int> get_timeslots() = 0;
|
||||
virtual std::vector<std::string> get_burst_data() = 0;
|
||||
virtual pmt::pmt_t get_bursts() = 0;
|
||||
};
|
||||
} // namespace gsm
|
||||
} // namespace gr
|
||||
|
|
|
@ -47,7 +47,8 @@ namespace gr {
|
|||
burst_sink_impl::burst_sink_impl()
|
||||
: gr::block("burst_sink",
|
||||
gr::io_signature::make(0, 0, 0),
|
||||
gr::io_signature::make(0, 0, 0))
|
||||
gr::io_signature::make(0, 0, 0)),
|
||||
d_bursts(pmt::PMT_NIL)
|
||||
{
|
||||
message_port_register_in(pmt::mp("in"));
|
||||
set_msg_handler(pmt::mp("in"), boost::bind(&burst_sink_impl::process_burst, this, _1));
|
||||
|
@ -105,7 +106,10 @@ namespace gr {
|
|||
{
|
||||
return d_burst_data;
|
||||
}
|
||||
|
||||
pmt::pmt_t burst_sink_impl::get_bursts()
|
||||
{
|
||||
return d_bursts;
|
||||
}
|
||||
} /* namespace gsm */
|
||||
} /* namespace gr */
|
||||
|
||||
|
|
|
@ -35,6 +35,7 @@ namespace gr {
|
|||
std::vector<int> d_framenumbers;
|
||||
std::vector<int> d_timeslots;
|
||||
std::vector<std::string> d_burst_data;
|
||||
pmt::pmt_t d_bursts;
|
||||
public:
|
||||
burst_sink_impl();
|
||||
~burst_sink_impl();
|
||||
|
@ -42,6 +43,7 @@ namespace gr {
|
|||
virtual std::vector<int> get_framenumbers();
|
||||
virtual std::vector<int> get_timeslots();
|
||||
virtual std::vector<std::string> get_burst_data();
|
||||
virtual pmt::pmt_t get_bursts();
|
||||
};
|
||||
|
||||
} // namespace gsm
|
||||
|
|
Loading…
Reference in New Issue