Skip to content

File wfm_core.h

File List > inc > wfm > wfm_core.h

Go to the documentation of this file

#ifndef WFM_CORE_H
#define WFM_CORE_H

#include "clib_common.h"

#ifdef __cplusplus
extern "C" {
#endif

void bpsk_map(const uint8_t *bits, size_t bits_len, float complex *out);

void qpsk_map(const uint8_t *syms, size_t syms_len, float complex *out);

float wfm_awgn_amplitude(float snr_db, float signal_power);

float wfm_ebno_to_snr_db(float ebno_db, int bits_per_symbol, float samples_per_symbol);

uint64_t mls_poly(uint32_t n);
void rrc_taps(double beta, int sps, int span, float *out);
void dsss_spread(const float complex *syms, size_t syms_len, const uint8_t *code, size_t code_len, int sf, float complex *out);
#ifdef __cplusplus
}
#endif

#endif /* WFM_CORE_H */