aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-07-21 07:18:05 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2017-07-21 07:34:05 +0700
commitfbfd836fc2edaf167d4929264bf7c5267368e64f (patch)
treedf20ebc3d9c676008ee1d68f22dc8a15cf8d32b9 /lib
parentccc7183e42d7d29a6bd57fc3a27f79a1f6ae394c (diff)
burst_sdcch_subslot_filter: implement and expose GET/SET API
Diffstat (limited to 'lib')
-rw-r--r--lib/flow_control/burst_sdcch_subslot_filter_impl.cc32
-rw-r--r--lib/flow_control/burst_sdcch_subslot_filter_impl.h7
2 files changed, 39 insertions, 0 deletions
diff --git a/lib/flow_control/burst_sdcch_subslot_filter_impl.cc b/lib/flow_control/burst_sdcch_subslot_filter_impl.cc
index 31e2989..76bf9cd 100644
--- a/lib/flow_control/burst_sdcch_subslot_filter_impl.cc
+++ b/lib/flow_control/burst_sdcch_subslot_filter_impl.cc
@@ -101,5 +101,37 @@ namespace gr {
message_port_pub(pmt::mp("out"), msg);
}
}
+
+ /* External API */
+ unsigned int
+ burst_sdcch_subslot_filter_impl::get_ss(void)
+ {
+ return d_subslot;
+ }
+
+ unsigned int
+ burst_sdcch_subslot_filter_impl::set_ss(unsigned int ss)
+ {
+ if ((d_mode == SS_FILTER_SDCCH8 && ss < 8)
+ || (d_mode == SS_FILTER_SDCCH4 && ss < 4))
+ d_subslot = ss;
+
+ return d_subslot;
+ }
+
+
+ subslot_filter_mode
+ burst_sdcch_subslot_filter_impl::get_mode(void)
+ {
+ return d_mode;
+ }
+
+ subslot_filter_mode
+ burst_sdcch_subslot_filter_impl::set_mode(subslot_filter_mode mode)
+ {
+ d_mode = mode;
+ return d_mode;
+ }
+
} /* namespace gsm */
} /* namespace gr */
diff --git a/lib/flow_control/burst_sdcch_subslot_filter_impl.h b/lib/flow_control/burst_sdcch_subslot_filter_impl.h
index 40a603e..9068140 100644
--- a/lib/flow_control/burst_sdcch_subslot_filter_impl.h
+++ b/lib/flow_control/burst_sdcch_subslot_filter_impl.h
@@ -37,6 +37,13 @@ namespace gr {
burst_sdcch_subslot_filter_impl(subslot_filter_mode mode, unsigned int subslot);
~burst_sdcch_subslot_filter_impl();
void process_burst(pmt::pmt_t msg);
+
+ /* External API */
+ unsigned int get_ss(void);
+ unsigned int set_ss(unsigned int ss);
+
+ subslot_filter_mode get_mode(void);
+ subslot_filter_mode set_mode(subslot_filter_mode mode);
};
} // namespace gsm