GNU Radio Manual and C++ API Reference  3.7.13.2
The Free & Open Software Radio Ecosystem
freedv_api.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2016-2018 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * GNU Radio is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3, or (at your option)
10  * any later version.
11  *
12  * GNU Radio is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with GNU Radio; see the file COPYING. If not, write to
19  * the Free Software Foundation, Inc., 51 Franklin Street,
20  * Boston, MA 02110-1301, USA.
21  */
22 
23 #ifndef _VOCODER_FREEDV_H_
24 #define _VOCODER_FREEDV_H_
25 
26 #include <gnuradio/vocoder/api.h>
27 
28 extern "C" {
29 #include <codec2/codec2.h>
30 #include <codec2/freedv_api.h>
31 #include <codec2/modem_stats.h>
32 }
33 
34 namespace gr {
35  namespace vocoder {
36 
38  public:
39 
40  enum freedv_modes {
41 #ifdef FREEDV_MODE_1600
42  MODE_1600 = FREEDV_MODE_1600,
43 #endif
44 #ifdef FREEDV_MODE_700
45  MODE_700 = FREEDV_MODE_700,
46 #endif
47 #ifdef FREEDV_MODE_700B
48  MODE_700B = FREEDV_MODE_700B,
49 #endif
50 #ifdef FREEDV_MODE_2400A
51  MODE_2400A = FREEDV_MODE_2400A,
52 #endif
53 #ifdef FREEDV_MODE_2400B
54  MODE_2400B = FREEDV_MODE_2400B,
55 #endif
56 #ifdef FREEDV_MODE_800XA
57  MODE_800XA = FREEDV_MODE_800XA,
58 #endif
59 #ifdef FREEDV_MODE_700C
60  MODE_700C = FREEDV_MODE_700C,
61 #endif
62 #ifdef FREEDV_MODE_700D
63  MODE_700D = FREEDV_MODE_700D,
64  SYNC_UNSYNC = FREEDV_SYNC_UNSYNC,
65  SYNC_AUTO = FREEDV_SYNC_AUTO,
66  SYNC_MANUAL = FREEDV_SYNC_MANUAL,
67 #endif
68  };
69 
70  private:
71 
72  };
73 
74  } /* namespace vocoder */
75 } /* namespace gr */
76 
77 #endif /* _VOCODER_FREEDV_H_ */
freedv_modes
Definition: freedv_api.h:40
Include this header to use the message passing features.
Definition: basic_block.h:45
#define VOCODER_API
Definition: gr-vocoder/include/gnuradio/vocoder/api.h:30
Definition: freedv_api.h:37