op25/op25/gr-op25_repeater/lib/ambe_encoder.h

45 lines
1.4 KiB
C
Raw Normal View History

2016-12-18 15:21:10 +00:00
// P25 TDMA Decoder (C) Copyright 2013, 2014 Max H. Parke KA1RBI
//
// This file is part of OP25
//
// OP25 is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3, or (at your option)
// any later version.
//
// OP25 is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
// License for more details.
//
// You should have received a copy of the GNU General Public License
// along with OP25; see the file COPYING. If not, write to the Free
// Software Foundation, Inc., 51 Franklin Street, Boston, MA
// 02110-1301, USA.
#ifndef INCLUDED_AMBE_ENCODER_H
#define INCLUDED_AMBE_ENCODER_H
#include <stdint.h>
class ambe_encoder {
public:
void encode(int16_t samples[], uint8_t codeword[]);
ambe_encoder(void);
2017-02-26 22:17:26 +00:00
void set_49bit_mode(void);
2017-03-06 14:17:16 +00:00
void set_dstar_mode(void);
2017-11-03 00:31:01 +00:00
void set_gain_adjust(const float gain_adjust) {d_gain_adjust = gain_adjust;}
void set_alt_dstar_interleave(const bool v) { d_alt_dstar_interleave = v; }
2016-12-18 15:21:10 +00:00
private:
imbe_vocoder vocoder;
p25p2_vf interleaver;
mbe_parms cur_mp;
mbe_parms prev_mp;
2017-02-26 22:17:26 +00:00
bool d_49bit_mode;
2017-03-06 14:17:16 +00:00
bool d_dstar_mode;
2017-03-19 21:09:05 +00:00
float d_gain_adjust;
2017-11-03 00:31:01 +00:00
bool d_alt_dstar_interleave;
2016-12-18 15:21:10 +00:00
};
#endif /* INCLUDED_AMBE_ENCODER_H */