added raw mode after diucssion with Mark
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Sat, 17 Mar 2018 23:43:30 +0000 (23:43 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Sat, 17 Mar 2018 23:43:30 +0000 (23:43 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@3415 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/src/horus_api.h

index 0a7debf0aee0e87ca2c283f3f8e4325317ca29fa..9c60559bd8c87f4991c17edc05fc73e239811de6 100644 (file)
@@ -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