Skip to content

File async_dsss_receiver_private.h

File List > async_dsss_receiver > async_dsss_receiver_private.h

Go to the documentation of this file

#ifndef ASYNC_DSSS_RECEIVER_PRIVATE_H
#define ASYNC_DSSS_RECEIVER_PRIVATE_H

#include "doppler/async_dsss_receiver/async_dsss_receiver_core.h"
#include "doppler/correlator/correlator_core.h"

#include <math.h>
#include <stdbool.h>
#include <stddef.h>

#ifdef __cplusplus
extern "C"
{
#endif

int dp_async_dsss_receiver_set_pooled (dp_async_dsss_receiver_state_t *state,
                                       bool on);

int dp_async_dsss_receiver_set_search_only (
    dp_async_dsss_receiver_state_t *state, size_t n_picks);

size_t dp_async_dsss_receiver_take_picks (
    dp_async_dsss_receiver_state_t *state, double *chip_phase,
    double *doppler_hz, double *cn0_dbhz, size_t max);

int dp__async_dsss_receiver_refine_decided (
    const dp_async_dsss_receiver_state_t *state);

static inline void
dp__async_dsss_receiver_sym_t_off (dp_async_dsss_receiver_state_t *s, int off)
{
  s->sym_t_off = off != 0;
}

#ifdef __cplusplus
}
#endif

#endif /* ASYNC_DSSS_RECEIVER_PRIVATE_H */