diff options
| author | drowe67 <[email protected]> | 2023-07-20 08:59:48 +0930 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-07-20 08:59:48 +0930 |
| commit | 06d4c11e699b0351765f10398abb4f663a984f36 (patch) | |
| tree | 33e22af0814c5b6c3d676f096ae8c2ac8a3ed9f0 /src/mpdecode_core.h | |
| parent | 6588e77f38bdebd7adffe091b22e7760d95d0ccb (diff) | |
| parent | 4d6c143c0abec15e1d6ed1fd95d36f80e6cb7df8 (diff) | |
Merge pull request #3 from drowe67/dr-cleanup21.2.0
Cleanup Part 2
Diffstat (limited to 'src/mpdecode_core.h')
| -rw-r--r-- | src/mpdecode_core.h | 61 |
1 files changed, 33 insertions, 28 deletions
diff --git a/src/mpdecode_core.h b/src/mpdecode_core.h index 86dcf02..95ead46 100644 --- a/src/mpdecode_core.h +++ b/src/mpdecode_core.h @@ -16,41 +16,46 @@ #include "comp.h" struct LDPC { - char name[32]; - int max_iter; - int dec_type; - int q_scale_factor; - int r_scale_factor; - int CodeLength; - int NumberParityBits; - int NumberRowsHcols; - int max_row_weight; - int max_col_weight; - - uint16_t *H_rows; - uint16_t *H_cols; - - /* these two are fixed to code params */ - int ldpc_data_bits_per_frame; - int ldpc_coded_bits_per_frame; - - /* support for partial use of data bits in codeword and unequal protection schemes */ - int protection_mode; - int data_bits_per_frame; - int coded_bits_per_frame; + char name[32]; + int max_iter; + int dec_type; + int q_scale_factor; + int r_scale_factor; + int CodeLength; + int NumberParityBits; + int NumberRowsHcols; + int max_row_weight; + int max_col_weight; + + uint16_t *H_rows; + uint16_t *H_cols; + + /* these two are fixed to code params */ + int ldpc_data_bits_per_frame; + int ldpc_coded_bits_per_frame; + + /* support for partial use of data bits in codeword and unequal protection + * schemes */ + int protection_mode; + int data_bits_per_frame; + int coded_bits_per_frame; }; void encode(struct LDPC *ldpc, unsigned char ibits[], unsigned char pbits[]); -int run_ldpc_decoder(struct LDPC *ldpc, uint8_t out_char[], float input[], int *parityCheckCount); +int run_ldpc_decoder(struct LDPC *ldpc, uint8_t out_char[], float input[], + int *parityCheckCount); void sd_to_llr(float llr[], float sd[], int n); -void Demod2D(float symbol_likelihood[], COMP r[], COMP S_matrix[], float EsNo, float fading[], float mean_amp, int number_symbols); -void Somap(float bit_likelihood[], float symbol_likelihood[], int M, int bps, int number_symbols); -void symbols_to_llrs(float llr[], COMP rx_qpsk_symbols[], float rx_amps[], float EsNo, float mean_amp, int nsyms); -void fsk_rx_filt_to_llrs(float llr[], float rx_filt[], float v_est, float SNRest, int M, int nsyms); +void Demod2D(float symbol_likelihood[], COMP r[], COMP S_matrix[], float EsNo, + float fading[], float mean_amp, int number_symbols); +void Somap(float bit_likelihood[], float symbol_likelihood[], int M, int bps, + int number_symbols); +void symbols_to_llrs(float llr[], COMP rx_qpsk_symbols[], float rx_amps[], + float EsNo, float mean_amp, int nsyms); +void fsk_rx_filt_to_llrs(float llr[], float rx_filt[], float v_est, + float SNRest, int M, int nsyms); void ldpc_print_info(struct LDPC *ldpc); - #endif |
