From 61856fa56d84dc4a7bbf64b4adc0ba253ce55e00 Mon Sep 17 00:00:00 2001 From: drowe67 Date: Sat, 17 Mar 2018 23:43:30 +0000 Subject: [PATCH] added raw mode after diucssion with Mark git-svn-id: https://svn.code.sf.net/p/freetel/code@3415 01035d8c-6547-0410-b346-abe4f91aad63 --- codec2-dev/src/horus_api.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/codec2-dev/src/horus_api.h b/codec2-dev/src/horus_api.h index 0a7debf0..9c60559b 100644 --- a/codec2-dev/src/horus_api.h +++ b/codec2-dev/src/horus_api.h @@ -32,8 +32,9 @@ #ifndef __HORUS_API__ -#define HORUS_MODE_RTTY 0 +#define HORUS_MODE_RAW 0 #define HORUS_MODE_BINARY 1 +#define HORUS_MODE_RTTY 2 struct MODEM_STATS; @@ -41,13 +42,16 @@ struct horus *horus_open (int mode); void horus_close (struct horus *hstates); int horus_nin (struct horus *hstates); -int horus_rx (struct horus *hstates, char telemetry_out[], short demod_in[]); +int horus_rx (struct horus *hstates, char frame_out[], short demod_in[]); int horus_get_version (void); int horus_get_mode (struct horus *hstates); void horus_get_modem_stats (struct horus *hstates, int *sync, float *snr_est); void horus_get_modem_extended_stats (struct horus *hstates, struct MODEM_STATS *stats); +int horus_set_modem (struct horus *hstates, int Rs, int mFSK); +int horus_set_raw (struct horus *hstates, int *uw, int nuw_bits, int nbits_per_frame); + #endif #ifdef __cplusplus -- 2.25.1