/* FILE...: ldpc_enc.c AUTHOR.: Bill Cowley, David Rowe CREATED: Sep 2016 RA LDPC encoder program. Using the elegant back substitution of RA LDPC codes. building: gcc ldpc_enc.c -o ldpc_enc -Wall -g */ #include #include #include #include #include #include "mpdecode_core_test.h" #include "ofdm_internal.h" /* generated by ldpc_fsk_lib.m:ldpc_decode() */ #include "H2064_516_sparse_test.h" #include "HRA_112_112_test.h" int opt_exists(char *argv[], int argc, char opt[]) { int i; for (i=0; i 16384; } } encode(&ldpc, ibits, pbits); if (sd) { /* map to BPSK symbols */ for (i=0; i= Nframes)) { goto finished; } } finished: fclose(fin); fclose(fout); return 1; }