summaryrefslogtreecommitdiff
path: root/gr-trellis/lib/permutation_impl.cc
diff options
context:
space:
mode:
authorAchilleas Anastasopoulos <anastas@umich.edu>2014-10-01 17:51:12 -0400
committeranastas <anastas@umich.edu>2014-10-08 00:05:33 -0400
commit46e9dfed237990da20b5fb054b7fd33b1c152b4a (patch)
treef39ec7c3a4c89ad46989667962f493f5ab3da49a /gr-trellis/lib/permutation_impl.cc
parentd598e49b4ca0a63985c675a12dc78cbc2a8931ee (diff)
Added set_ methods for most parameters in (almost) all gr-trellis blocks
Added FSM functionality + minor fixes
Diffstat (limited to 'gr-trellis/lib/permutation_impl.cc')
-rw-r--r--gr-trellis/lib/permutation_impl.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/gr-trellis/lib/permutation_impl.cc b/gr-trellis/lib/permutation_impl.cc
index 06bba1e11f..0d9d3593bf 100644
--- a/gr-trellis/lib/permutation_impl.cc
+++ b/gr-trellis/lib/permutation_impl.cc
@@ -49,10 +49,22 @@ namespace gr {
d_SYMS_PER_BLOCK(SYMS_PER_BLOCK),
d_BYTES_PER_SYMBOL(BYTES_PER_SYMBOL)
{
- set_output_multiple(d_K*SYMS_PER_BLOCK);
+ set_output_multiple(d_K*d_SYMS_PER_BLOCK);
//std::cout << d_K << "\n";
}
+ void permutation_impl::set_K(int K)
+ {
+ d_K=K;
+ set_output_multiple(d_K*d_SYMS_PER_BLOCK);
+ }
+
+ void permutation_impl::set_SYMS_PER_BLOCK(int spb)
+ {
+ d_SYMS_PER_BLOCK=spb;
+ set_output_multiple(d_K*d_SYMS_PER_BLOCK);
+ }
+
permutation_impl::~permutation_impl()
{
}