GNU Radio's FRAMERS Package
gr_hdlc_deframer_b_impl.h
Go to the documentation of this file.
1 #ifndef INCLUDED_FRAMERS_GR_HDLC_DEFRAMER_B_IMPL_H
2 #define INCLUDED_FRAMERS_GR_HDLC_DEFRAMER_B_IMPL_H
3 
4 #include <hdlc_deframer.h>
6 
7 namespace gr {
8  namespace framers {
9 
11  {
12 
13  private:
14  int total_packets;
15  // Private Attributes ---------
16  hdlc_deframer d_deframer;
17  // Frame Relay's Data Link Channel Indicator
18  int d_dlci;
19 
20  // Private Methods ----------
21 
22  void route_packet(const int hdlc_frame_size,
23  const unsigned char * hdlc_frame);
24 
25  protected:
26 
27  public:
28  gr_hdlc_deframer_b_impl(int dlci);
30 
31  // Where all the action really happens
32  void forecast (int noutput_items, gr_vector_int &ninput_items_required);
33 
34  int general_work(int noutput_items,
35  gr_vector_int &ninput_items,
36  gr_vector_const_void_star &input_items,
37  gr_vector_void_star &output_items);
38 
39  // Getters for public statistics
40  float get_ber();
41  };
42 
43  } // namespace framers
44 } // namespace gr
45 
46 #endif /* INCLUDED_FRAMERS_GR_HDLC_DEFRAMER_B_IMPL_H */
47 
&lt;+description of block+&gt;
Definition: gr_hdlc_deframer_b.h:37
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
Definition: hdlc_deframer.h:7
Definition: gr_hdlc_deframer_b_impl.h:10