Add mechanism that allows the waveform to know when the radio is unkeying.

This is needed so that DSTAR can encode it's end bits.
This commit is contained in:
Ed Gonzalez 2015-08-24 15:05:03 -05:00
parent edd809c269
commit c742d3b3ff
3 changed files with 17 additions and 0 deletions

View file

@ -201,6 +201,9 @@ static int _dv_serial_fd = 0;
static GMSK_DEMOD _gmsk_demod = NULL;
static GMSK_MOD _gmsk_mod = NULL;
static DSTAR_MACHINE _dstar = NULL;
static _end_of_transmission = FALSE;
#define FREEDV_NSAMPLES 160
@ -345,6 +348,12 @@ void sched_waveform_setFD(int fd)
_dv_serial_fd = fd;
}
void sched_waveform_setEndOfTX(BOOL end_of_transmission)
{
_end_of_transmission = TRUE;
}
static void* _sched_waveform_thread(void* param)
{
int nout;