aboutsummaryrefslogtreecommitdiff
path: root/src/codec2_cohpsk.h
diff options
context:
space:
mode:
authordrowe67 <[email protected]>2023-07-14 12:36:50 +0930
committerDavid Rowe <[email protected]>2023-07-14 12:36:50 +0930
commitb86e88413d4c6ec428aaedb147f7675f28882fe4 (patch)
treece360925856e25d4343d59a37e2e6bac142d3752 /src/codec2_cohpsk.h
parent0c2e969cfbe85548801eeb20ad8113969604892a (diff)
clang-format -i applied to src unittest misc
Diffstat (limited to 'src/codec2_cohpsk.h')
-rw-r--r--src/codec2_cohpsk.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/codec2_cohpsk.h b/src/codec2_cohpsk.h
index 33ab21d..bad530c 100644
--- a/src/codec2_cohpsk.h
+++ b/src/codec2_cohpsk.h
@@ -28,15 +28,16 @@
#ifndef __CODEC2_COHPSK__
#define __CODEC2_COHPSK__
-#define COHPSK_BITS_PER_FRAME 56
-#define COHPSK_NC 7 /* number of carriers */
+#define COHPSK_BITS_PER_FRAME 56
+#define COHPSK_NC 7 /* number of carriers */
#define COHPSK_NOM_SAMPLES_PER_FRAME 600
-#define COHPSK_MAX_SAMPLES_PER_FRAME 625
-#define COHPSK_RS 75 /* symbol rate of each carrier */
-#define COHPSK_FS 7500 /* note this is a weird value to get an integer
- oversampling rate */
-#define COHPSK_CLIP 6.5 /* hard clipping for Nc*Nc=14 to reduce PAPR */
-#define COHPSK_SCALE 975 /* suggested scaling for 16 bit shorts */
+#define COHPSK_MAX_SAMPLES_PER_FRAME 625
+#define COHPSK_RS 75 /* symbol rate of each carrier */
+#define COHPSK_FS \
+ 7500 /* note this is a weird value to get an integer \
+ oversampling rate */
+#define COHPSK_CLIP 6.5 /* hard clipping for Nc*Nc=14 to reduce PAPR */
+#define COHPSK_SCALE 975 /* suggested scaling for 16 bit shorts */
#include "comp.h"
#include "modem_stats.h"
@@ -49,7 +50,8 @@ struct COHPSK *cohpsk_create(void);
void cohpsk_destroy(struct COHPSK *coh);
void cohpsk_mod(struct COHPSK *cohpsk, COMP tx_fdm[], int tx_bits[], int nbits);
void cohpsk_clip(COMP tx_fdm[], float clip_thresh, int n);
-void cohpsk_demod(struct COHPSK *cohpsk, float rx_bits[], int *sync, COMP rx_fdm[], int *nin_frame);
+void cohpsk_demod(struct COHPSK *cohpsk, float rx_bits[], int *sync,
+ COMP rx_fdm[], int *nin_frame);
void cohpsk_get_demod_stats(struct COHPSK *cohpsk, struct MODEM_STATS *stats);
void cohpsk_set_verbose(struct COHPSK *coh, int verbose);
void cohpsk_get_test_bits(struct COHPSK *coh, int rx_bits[]);
@@ -57,8 +59,8 @@ void cohpsk_put_test_bits(struct COHPSK *coh, int *state, short error_pattern[],
int *bit_errors, char rx_bits[], int channel);
int cohpsk_error_pattern_size(void);
void cohpsk_set_frame(struct COHPSK *coh, int frame);
-void fdmdv_freq_shift_coh(COMP rx_fdm_fcorr[], COMP rx_fdm[], float foff, float Fs,
- COMP *foff_phase_rect, int nin);
+void fdmdv_freq_shift_coh(COMP rx_fdm_fcorr[], COMP rx_fdm[], float foff,
+ float Fs, COMP *foff_phase_rect, int nin);
void cohpsk_set_freq_est_mode(struct COHPSK *coh, int used_simple_mode);