Loading...
Searching...
No Matches
freedv_api.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2016-2019 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef _VOCODER_FREEDV_H_
#define _VOCODER_FREEDV_H_
#include <gnuradio/vocoder/api.h>
// version >=0.9.1 contains fixes that doesn't require "extern C"
// between 0.8.1 and 0.9.1 the build fail
#ifdef CODEC2_LEGACY
extern "C" {
#endif
#include <codec2/codec2.h>
#include <codec2/freedv_api.h>
#include <codec2/modem_stats.h>
#ifdef CODEC2_LEGACY
}
#endif
namespace gr {
namespace vocoder {
class VOCODER_API freedv_api
{
public:
enum freedv_modes {
#ifdef FREEDV_MODE_1600
MODE_1600 = FREEDV_MODE_1600,
#endif
#ifdef FREEDV_MODE_700
MODE_700 = FREEDV_MODE_700,
#endif
#ifdef FREEDV_MODE_700B
MODE_700B = FREEDV_MODE_700B,
#endif
#ifdef FREEDV_MODE_2400A
MODE_2400A = FREEDV_MODE_2400A,
#endif
#ifdef FREEDV_MODE_2400B
MODE_2400B = FREEDV_MODE_2400B,
#endif
#ifdef FREEDV_MODE_800XA
MODE_800XA = FREEDV_MODE_800XA,
#endif
#ifdef FREEDV_MODE_700C
MODE_700C = FREEDV_MODE_700C,
#endif
#ifdef FREEDV_MODE_700D
MODE_700D = FREEDV_MODE_700D,
SYNC_UNSYNC = FREEDV_SYNC_UNSYNC,
SYNC_AUTO = FREEDV_SYNC_AUTO,
SYNC_MANUAL = FREEDV_SYNC_MANUAL,
#endif
#ifdef FREEDV_MODE_2020
MODE_2020 = FREEDV_MODE_2020,
#endif
#ifdef FREEDV_MODE_2020B
MODE_2020B = FREEDV_MODE_2020B,
#endif
#ifdef FREEDV_MODE_700E
MODE_700E = FREEDV_MODE_700E,
#endif
#ifdef FREEDV_MODE_FSK_LDPC
MODE_FSK_LDPC = FREEDV_MODE_FSK_LDPC,
#endif
#ifdef FREEDV_MODE_DATAC1
MODE_DATAC1 = FREEDV_MODE_DATAC1,
#endif
#ifdef FREEDV_MODE_DATAC3
MODE_DATAC3 = FREEDV_MODE_DATAC3,
#endif
#ifdef FREEDV_MODE_DATAC0
MODE_DATAC0 = FREEDV_MODE_DATAC0,
#endif
};
private:
};
} /* namespace vocoder */
} /* namespace gr */
#endif /* _VOCODER_FREEDV_H_ */
gr::vocoder::freedv_api
Definition freedv_api.h:32
gr::vocoder::freedv_api::freedv_modes
freedv_modes
Definition freedv_api.h:34
api.h
VOCODER_API
#define VOCODER_API
Definition gr-vocoder/include/gnuradio/vocoder/api.h:18
gr::vocoder
Definition alaw_decode_bs.h:18
gr
GNU Radio logging wrapper.
Definition basic_block.h:29