diff options
author | Achilleas Anastasopoulos <anastas@umich.edu> | 2014-10-01 17:51:12 -0400 |
---|---|---|
committer | anastas <anastas@umich.edu> | 2014-10-08 00:05:33 -0400 |
commit | 46e9dfed237990da20b5fb054b7fd33b1c152b4a (patch) | |
tree | f39ec7c3a4c89ad46989667962f493f5ab3da49a /gr-trellis/lib/permutation_impl.cc | |
parent | d598e49b4ca0a63985c675a12dc78cbc2a8931ee (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.cc | 14 |
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() { } |