From: baobrien Date: Fri, 13 Jan 2017 07:30:22 +0000 (+0000) Subject: Fixed freedv_tx issue on 2400A X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=5809bf44b44397e206e9e82bcd91941b0034efb7;p=freetel-svn-tracking.git Fixed freedv_tx issue on 2400A git-svn-id: https://svn.code.sf.net/p/freetel/code@2965 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/codec2-dev/src/freedv_tx.c b/codec2-dev/src/freedv_tx.c index df8b481f..5565fb41 100644 --- a/codec2-dev/src/freedv_tx.c +++ b/codec2-dev/src/freedv_tx.c @@ -132,7 +132,6 @@ int main(int argc, char *argv[]) { } freedv = freedv_open(mode); - freedv_set_alt_modem_samp_rate(freedv,96000); assert(freedv != NULL); use_codectx = 0; diff --git a/codec2-dev/src/tdma.h b/codec2-dev/src/tdma.h index ec7f54aa..f0e45898 100644 --- a/codec2-dev/src/tdma.h +++ b/codec2-dev/src/tdma.h @@ -25,6 +25,8 @@ along with this program; if not, see . */ +#ifndef __CODEC_2_TDMA_H +#define __CODEC_2_TDMA_H #include "fsk.h" #include "freedv_vhf_framing.h" @@ -34,7 +36,7 @@ enum slot_state { rx_no_sync, /* Not synched */ rx_sync, /* Sunk */ tx_client, /* TX but timed from a different master */ - tx_master + tx_master /* TX in master mode */ }; /* The state of the entire TDMA modem */ @@ -42,6 +44,7 @@ enum tdma_state { no_sync, /* No sync */ pilot_sync, /* Pilot modem has gotten sync, but slots haven't*/ slot_sync, /* One or more slots are sunk */ + master_sync, /* This modem is the TDMA master */ }; /* TDMA slot struct */ @@ -50,4 +53,10 @@ struct TDMA_SLOT { struct FSK * fsk; /* The FSK modem for this slot */ enum slot_state state; }; + +/* TDMA modem */ +struct TDMA_MODEM { +}; + +#endif