aboutsummaryrefslogtreecommitdiff
path: root/src/codec2_ofdm.h
diff options
context:
space:
mode:
authordrowe67 <[email protected]>2023-07-20 08:59:48 +0930
committerGitHub <[email protected]>2023-07-20 08:59:48 +0930
commit06d4c11e699b0351765f10398abb4f663a984f36 (patch)
tree33e22af0814c5b6c3d676f096ae8c2ac8a3ed9f0 /src/codec2_ofdm.h
parent6588e77f38bdebd7adffe091b22e7760d95d0ccb (diff)
parent4d6c143c0abec15e1d6ed1fd95d36f80e6cb7df8 (diff)
Merge pull request #3 from drowe67/dr-cleanup21.2.0
Cleanup Part 2
Diffstat (limited to 'src/codec2_ofdm.h')
-rw-r--r--src/codec2_ofdm.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/codec2_ofdm.h b/src/codec2_ofdm.h
index 0804ba0..a56c740 100644
--- a/src/codec2_ofdm.h
+++ b/src/codec2_ofdm.h
@@ -42,25 +42,27 @@
extern "C" {
#endif
-#define OFDM_PEAK 16384 /* peak level of OFDM TX signal */
-#define OFDM_CLIP (32767*0.35) /* experimentally derived constant to reduce PAPR to about 8dB */
+#define OFDM_PEAK 16384 /* peak level of OFDM TX signal */
+#define OFDM_CLIP \
+ (32767 * \
+ 0.35) /* experimentally derived constant to reduce PAPR to about 8dB */
-#define UN_SYNC 0 /* Used with the ofdm_set_sync() */
-#define AUTO_SYNC 1
-#define MANUAL_SYNC 2
+#define UN_SYNC 0 /* Used with the ofdm_set_sync() */
+#define AUTO_SYNC 1
+#define MANUAL_SYNC 2
-#define AUTO_PHASE_EST 0
+#define AUTO_PHASE_EST 0
#define LOCKED_PHASE_EST 1
-#define LOW_BW 0
-#define HIGH_BW 1
+#define LOW_BW 0
+#define HIGH_BW 1
struct OFDM_CONFIG;
struct OFDM;
/* create and destroy modem states */
-struct OFDM *ofdm_create(const struct OFDM_CONFIG * config);
+struct OFDM *ofdm_create(const struct OFDM_CONFIG *config);
void ofdm_destroy(struct OFDM *);
void ofdm_init_mode(char mode[], struct OFDM_CONFIG *config);
@@ -69,8 +71,8 @@ void ofdm_init_mode(char mode[], struct OFDM_CONFIG *config);
void ofdm_mod(struct OFDM *, COMP *, const int *);
void ofdm_demod(struct OFDM *, int *, COMP *);
void ofdm_demod_shorts(struct OFDM *, int *, short *, float);
-int ofdm_sync_search(struct OFDM *, COMP *);
-int ofdm_sync_search_shorts(struct OFDM *, short *, float);
+int ofdm_sync_search(struct OFDM *, COMP *);
+int ofdm_sync_search_shorts(struct OFDM *, short *, float);
void ofdm_sync_state_machine(struct OFDM *, uint8_t *);
void ofdm_sync_state_machine2(struct OFDM *, uint8_t *);