summaryrefslogtreecommitdiff
path: root/gr-pager/lib/pager_flex_deinterleave.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-pager/lib/pager_flex_deinterleave.cc')
-rw-r--r--gr-pager/lib/pager_flex_deinterleave.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/gr-pager/lib/pager_flex_deinterleave.cc b/gr-pager/lib/pager_flex_deinterleave.cc
index a51670b22..f7f1d9f69 100644
--- a/gr-pager/lib/pager_flex_deinterleave.cc
+++ b/gr-pager/lib/pager_flex_deinterleave.cc
@@ -1,18 +1,18 @@
/*
* Copyright 2004,2006,2010 Free Software Foundation, Inc.
- *
+ *
* This file is part of GNU Radio
- *
+ *
* GNU Radio 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, or (at your option)
* any later version.
- *
+ *
* GNU Radio 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 GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
@@ -46,7 +46,7 @@ int pager_flex_deinterleave::work(int noutput_items,
gr_vector_void_star &output_items)
{
const unsigned char *in = (const unsigned char *)input_items[0];
- gr_int32 *out = (gr_int32 *)output_items[0];
+ gr_int32 *out = (gr_int32 *)output_items[0];
// FLEX codewords are interleaved in blocks of 256 bits or 8, 32 bit
// codes. To deinterleave we parcel each incoming bit into the MSB
@@ -56,7 +56,7 @@ int pager_flex_deinterleave::work(int noutput_items,
// conversion to data words.
//
// FLEX data words are recovered by reversing the bit order of the code
- // word, masking off the (reversed) ECC, and inverting the remainder of
+ // word, masking off the (reversed) ECC, and inverting the remainder of
// the bits (!).
//
// The data portion of a FLEX frame consists of 11 of these deinterleaved
@@ -73,14 +73,14 @@ int pager_flex_deinterleave::work(int noutput_items,
}
}
- // Now convert code words into data words
+ // Now convert code words into data words
for (j = 0; j < 8; j++) {
gr_int32 codeword = d_codewords[j];
-
+
// Apply BCH 32,21 error correction
// TODO: mark dataword when codeword fails ECC
pageri_bch3221(codeword);
-
+
// Reverse bit order
codeword = pageri_reverse_bits32(codeword);
@@ -89,6 +89,6 @@ int pager_flex_deinterleave::work(int noutput_items,
*out++ = codeword;
}
-
+
return j;
}