aboutsummaryrefslogtreecommitdiff
path: root/src/interldpc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/interldpc.h')
-rw-r--r--src/interldpc.h23
1 files changed, 15 insertions, 8 deletions
diff --git a/src/interldpc.h b/src/interldpc.h
index 2c18f62..3b1d1ca 100644
--- a/src/interldpc.h
+++ b/src/interldpc.h
@@ -35,20 +35,27 @@
#include "ofdm_internal.h"
/* LDPC unequal protection modes */
-#define LDPC_PROT_EQUAL 0 /* all bits in LDPC codeword used, e.g. 700D/700E */
-#define LDPC_PROT_2020 1 /* (504,396) but some data bits unused */
-#define LDPC_PROT_2020B 3 /* (112,56) but we only protect stage1 VQ in each LPCNet frame */
+#define LDPC_PROT_EQUAL 0 /* all bits in LDPC codeword used, e.g. 700D/700E */
+#define LDPC_PROT_2020 1 /* (504,396) but some data bits unused */
+#define LDPC_PROT_2020B \
+ 3 /* (112,56) but we only protect stage1 VQ in each LPCNet frame */
void set_up_ldpc_constants(struct LDPC *ldpc, int code_length, int parity_bits);
void set_data_bits_per_frame(struct LDPC *ldpc, int new_data_bits_per_frame);
void ldpc_mode_specific_setup(struct OFDM *ofdm, struct LDPC *ldpc);
-void ldpc_encode_frame(struct LDPC *ldpc, int codeword[], unsigned char tx_bits_char[]);
+void ldpc_encode_frame(struct LDPC *ldpc, int codeword[],
+ unsigned char tx_bits_char[]);
void qpsk_modulate_frame(COMP tx_symbols[], int codeword[], int n);
-void ldpc_decode_frame(struct LDPC *ldpc, int *parityCheckCount, int *iter, uint8_t out_char[], float llr[]);
-int count_uncoded_errors(struct LDPC *ldpc, struct OFDM_CONFIG *config, COMP codeword_symbols_de[], int crc16);
+void ldpc_decode_frame(struct LDPC *ldpc, int *parityCheckCount, int *iter,
+ uint8_t out_char[], float llr[]);
+int count_uncoded_errors(struct LDPC *ldpc, struct OFDM_CONFIG *config,
+ COMP codeword_symbols_de[], int crc16);
int count_errors(uint8_t tx_bits[], uint8_t rx_bits[], int n);
-void count_errors_protection_mode(int protection_mode, int *pNerrs, int *pNcoded, uint8_t tx_bits[],
+void count_errors_protection_mode(int protection_mode, int *pNerrs,
+ int *pNcoded, uint8_t tx_bits[],
uint8_t rx_bits[], int n);
-void ofdm_ldpc_interleave_tx(struct OFDM *ofdm, struct LDPC *ldpc, complex float tx_sams[], uint8_t tx_bits[], uint8_t txt_bits[]);
+void ofdm_ldpc_interleave_tx(struct OFDM *ofdm, struct LDPC *ldpc,
+ complex float tx_sams[], uint8_t tx_bits[],
+ uint8_t txt_bits[]);
#endif