8#ifndef INCLUDED_M17_M17_DECODER_H
9#define INCLUDED_M17_M17_DECODER_H
11#include <gnuradio/block.h>
27 typedef std::shared_ptr < m17_decoder >
sptr;
44 static sptr make (
bool debug_data,
bool debug_ctrl,
float sw_threshold,
45 float vt_threshold,
bool callsign,
bool signed_str,
int encr_type,
46 std::string key, std::string seed, std::string pub_key =
"",
47 int undecodable_out = 0);
48 virtual void set_debug_data (
bool debug) = 0;
49 virtual void set_debug_ctrl (
bool debug) = 0;
54 virtual void set_key (std::string key) = 0;
58 virtual void parse_raw_key_string (uint8_t * dest,
const char *inp) = 0;
61 uint32_t key,
int fn) = 0;
#define M17_API
Definition api.h:19
<+description of block+>
Definition m17_decoder.h:25
virtual void scrambler_sequence_generator()=0
virtual void set_signed(bool signed_str)=0
virtual void set_vt_threshold(float vt_threshold)=0
virtual void set_seed(std::string seed)=0
virtual void set_sw_threshold(float sw_threshold)=0
virtual uint32_t scrambler_seed_calculation(int8_t subtype, uint32_t key, int fn)=0
virtual void set_callsign(bool callsign)=0
virtual void set_pub_key(std::string pub_key)=0
std::shared_ptr< m17_decoder > sptr
Definition m17_decoder.h:27
virtual void set_undecodable_out(int mode)=0
virtual void set_key(std::string key)=0
static sptr make(bool debug_data, bool debug_ctrl, float sw_threshold, float vt_threshold, bool callsign, bool signed_str, int encr_type, std::string key, std::string seed, std::string pub_key="", int undecodable_out=0)
Return a shared_ptr to a new instance of m17::m17_decoder.
@ ENCR_RES
Definition m17_decoder.h:33
@ ENCR_SCRAM
Definition m17_decoder.h:31
@ ENCR_AES
Definition m17_decoder.h:32
@ ENCR_NONE
Definition m17_decoder.h:30
Definition codec2_decoder.h:17
Definition codec2_decoder.h:15