void ofdm_set_timing_enable(struct OFDM *, bool);
void ofdm_set_foff_est_enable(struct OFDM *, bool);
void ofdm_set_phase_est_enable(struct OFDM *, bool);
-void ofdm_set_foff_est_gain(struct OFDM *, float);
void ofdm_set_off_est_hz(struct OFDM *, float);
#ifdef __cplusplus
/* default settings of options and states */
ofdm->verbose = 0;
- ofdm->timing_en = false;
- ofdm->foff_est_en = false;
- ofdm->phase_est_en = false;
+ ofdm->timing_en = true;
+ ofdm->foff_est_en = true;
+ ofdm->phase_est_en = true;
ofdm->foff_est_gain = 0.01f;
ofdm->foff_est_hz = 0.0f;
ofdm->phase_est_en = val;
}
-void ofdm_set_foff_est_gain(struct OFDM *ofdm, float val) {
- ofdm->foff_est_gain = val;
-}
-
void ofdm_set_off_est_hz(struct OFDM *ofdm, float val) {
ofdm->foff_est_hz = val;
}
* ^
*/
-// UNTESTED
-
void ofdm_demod(struct OFDM *ofdm, int *rx_bits, COMP *rxbuf_in) {
complex float aphase_est_pilot_rect;
float aphase_est_pilot[OFDM_NC + 2];