summaryrefslogtreecommitdiff
path: root/gr-fec/lib/ldpc_bit_flip_decoder_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'gr-fec/lib/ldpc_bit_flip_decoder_impl.h')
-rw-r--r--gr-fec/lib/ldpc_bit_flip_decoder_impl.h63
1 files changed, 31 insertions, 32 deletions
diff --git a/gr-fec/lib/ldpc_bit_flip_decoder_impl.h b/gr-fec/lib/ldpc_bit_flip_decoder_impl.h
index ba331bed62..8bb3f6dc30 100644
--- a/gr-fec/lib/ldpc_bit_flip_decoder_impl.h
+++ b/gr-fec/lib/ldpc_bit_flip_decoder_impl.h
@@ -24,38 +24,37 @@
#include <gnuradio/fec/ldpc_bit_flip_decoder.h>
namespace gr {
- namespace fec {
- namespace code {
-
- class FEC_API ldpc_bit_flip_decoder_impl : public ldpc_bit_flip_decoder
- {
- private:
- // Plug into the generic FEC API:
- int get_input_size(); // n, # of bits in the received block
- int get_output_size(); // k, # of bits in the info word
- int d_input_size;
- int d_output_size;
-
- double d_rate;
-
- // FEC matrix object to use for decoding
- fec_mtrx_sptr d_mtrx;
-
- // Maximum number of iterations to do in decoding algorithm
- unsigned int d_max_iterations;
-
- public:
- ldpc_bit_flip_decoder_impl(const fec_mtrx_sptr mtrx_obj,
- unsigned int max_iter=100);
- ~ldpc_bit_flip_decoder_impl();
-
- void generic_work(void *inbuffer, void *outbuffer);
- bool set_frame_size(unsigned int frame_size);
- double rate();
- };
-
- } /* namespace code */
- } /* namespace fec */
+namespace fec {
+namespace code {
+
+class FEC_API ldpc_bit_flip_decoder_impl : public ldpc_bit_flip_decoder
+{
+private:
+ // Plug into the generic FEC API:
+ int get_input_size(); // n, # of bits in the received block
+ int get_output_size(); // k, # of bits in the info word
+ int d_input_size;
+ int d_output_size;
+
+ double d_rate;
+
+ // FEC matrix object to use for decoding
+ fec_mtrx_sptr d_mtrx;
+
+ // Maximum number of iterations to do in decoding algorithm
+ unsigned int d_max_iterations;
+
+public:
+ ldpc_bit_flip_decoder_impl(const fec_mtrx_sptr mtrx_obj, unsigned int max_iter = 100);
+ ~ldpc_bit_flip_decoder_impl();
+
+ void generic_work(void* inbuffer, void* outbuffer);
+ bool set_frame_size(unsigned int frame_size);
+ double rate();
+};
+
+} /* namespace code */
+} /* namespace fec */
} /* namespace gr */
#endif /* INCLUDED_FEC_LDPC_BIT_FLIP_DECODER_IMPL_H */