28#ifndef INCLUDED_BAZ_ACARS_H
29#define INCLUDED_BAZ_ACARS_H
31#include <gnuradio/sync_block.h>
32#include <gnuradio/msg_queue.h>
48typedef boost::shared_ptr<baz_acars_decoder> baz_acars_decoder_sptr;
84 const static int MAX_ACARS_PACKET_SIZE = 252;
99 float reference_level;
100 float prekey_average;
102 unsigned char byte_data[MAX_ACARS_PACKET_SIZE];
103 unsigned char byte_error[MAX_ACARS_PACKET_SIZE];
104 int parity_error_count;
112 unsigned long d_preamble_state;
113 int d_preamble_threshold;
114 struct packet d_current_packet;
116 unsigned char d_current_byte;
118 unsigned char d_flags;
119 gr::msg_queue::sptr d_msgq;
120 unsigned char d_prev_bit;
122 std::string d_station_name;
132 {
return d_preamble_threshold; }
134 {
return d_frequency; }
136 {
return d_station_name.c_str(); }
138 int work (
int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items);
baz_acars_decoder_sptr baz_make_acars_decoder(gr::msg_queue::sptr msgq)
Return a shared_ptr to a new instance of baz_acars_decoder.
acars a stream of floats.
Definition baz_acars_decoder.h:66
friend baz_acars_decoder_sptr baz_make_acars_decoder(gr::msg_queue::sptr msgq)
Return a shared_ptr to a new instance of baz_acars_decoder.
int preamble_threshold() const
Definition baz_acars_decoder.h:131
void set_frequency(float frequency)
void set_preamble_threshold(int threshold)
const char * station_name() const
Definition baz_acars_decoder.h:135
void set_station_name(const char *station_name)
float frequency() const
Definition baz_acars_decoder.h:133
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)