28#ifndef INCLUDED_BAZ_FASTRAK_DECODER_H
29#define INCLUDED_BAZ_FASTRAK_DECODER_H
31#include <gnuradio/sync_block.h>
46typedef boost::shared_ptr<baz_fastrak_decoder> baz_fastrak_decoder_sptr;
71 float d_sync_threshold;
74 std::string d_last_id_string;
85 typedef enum packet_type
90 packet_type_t d_current_packet_type;
91 typedef std::map<packet_type_t,int> TypeLengthMap;
92 TypeLengthMap d_type_length_map;
94 unsigned long long d_bit_buffer;
96 int d_sub_symbol_counter;
97 int d_payload_bit_counter;
100 unsigned char d_crc_buffer;
101 int d_total_bit_counter;
103 int d_crc_bit_counter;
104 unsigned int d_last_id;
105 unsigned int d_last_id_count;
107 void enter_state(state_t state);
117 {
return d_last_id; }
119 int work (
int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items);
#define BAZ_API
Definition: api.h:19
BAZ_API baz_fastrak_decoder_sptr baz_make_fastrak_decoder(int sample_rate)
Return a shared_ptr to a new instance of baz_fastrak_decoder.
class BAZ_API baz_fastrak_decoder
Definition: baz_fastrak_decoder.h:33
square2 a stream of floats.
Definition: baz_fastrak_decoder.h:64
unsigned int last_id() const
Definition: baz_fastrak_decoder.h:116
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
void set_sync_threshold(float threshold)
unsigned int last_id_count(bool reset=false)
friend BAZ_API baz_fastrak_decoder_sptr baz_make_fastrak_decoder(int sample_rate)
Return a shared_ptr to a new instance of baz_fastrak_decoder.