17 #ifndef INCLUDED_RDS_ENCODER_IMPL_H
18 #define INCLUDED_RDS_ENCODER_IMPL_H
21 #include <gnuradio/thread/thread.h>
29 encoder_impl(
unsigned char pty_locale,
int pty,
bool ms, std::string ps,
30 double af1,
bool tp,
bool ta,
int pi_country_code,
31 int pi_coverage_area,
int pi_reference_number,
32 std::string radiotext);
39 int work(
int noutput_items,
40 gr_vector_const_void_star &input_items,
41 gr_vector_void_star &output_items);
43 unsigned int infoword[4];
44 unsigned int checkword[4];
45 unsigned int block[4];
46 unsigned char **buffer;
47 unsigned char pty_locale;
51 unsigned char radiotext[64];
63 gr::thread::mutex d_mutex;
76 int d_buffer_bit_counter;
86 void set_af1(
double af1);
87 void set_pty(
unsigned int pty);
88 void set_pi(
unsigned int pty);
89 void set_radiotext(std::string text);
92 void create_group(
const int,
const bool);
93 void prepare_group0(
const bool);
94 void prepare_group1a();
95 void prepare_group2(
const bool);
96 void prepare_group3a();
97 void prepare_group4a();
98 void prepare_group8a();
99 void prepare_group11a();
100 void prepare_buffer(
int);
101 unsigned int encode_af(
double);
102 unsigned int calc_syndrome(
unsigned long,
unsigned char);
103 void rds_in(pmt::pmt_t msg);
Definition: encoder_impl.h:27
encoder_impl(unsigned char pty_locale, int pty, bool ms, std::string ps, double af1, bool tp, bool ta, int pi_country_code, int pi_coverage_area, int pi_reference_number, std::string radiotext)
virtual void set_ps(std::string ps)