From: drowe67 Date: Sun, 25 Mar 2018 21:42:16 +0000 (+0000) Subject: edited state names X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=ec1288f8433478224d3df768390ef6673647bea7;p=freetel-svn-tracking.git edited state names git-svn-id: https://svn.code.sf.net/p/freetel/code@3439 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/codec2-dev/src/codec2_ofdm.h b/codec2-dev/src/codec2_ofdm.h index 5b00876d..a8e63c46 100644 --- a/codec2-dev/src/codec2_ofdm.h +++ b/codec2-dev/src/codec2_ofdm.h @@ -45,15 +45,25 @@ struct OFDM; /* Constant declarations */ +#define OFDM_SEARCHING 1 +#define OFDM_SYNCED 2 + /* Default configuration for '700D' mode */ const struct OFDM_CONFIG * OFDM_CONFIG_700D; -/* getters */ +/* create and destroy modem states */ struct OFDM *ofdm_create(const struct OFDM_CONFIG * config); void ofdm_destroy(struct OFDM *); + +/* signal processing */ + void ofdm_mod(struct OFDM *, COMP *, const int *); void ofdm_demod(struct OFDM *, int *, COMP *); +int ofdm_sync_search(struct OFDM *ofdm, COMP *rxbuf_in); + +/* getters */ + int ofdm_get_nin(struct OFDM *); int ofdm_get_samples_per_frame(void); int ofdm_get_max_samples_per_frame(void);