GNU Radio's FRAMERS Package
gr_hdlc_framer_b_impl.h
Go to the documentation of this file.
1 #ifndef INCLUDED_FRAMERS_GR_HDLC_FRAMER_B_IMPL_H
2 #define INCLUDED_FRAMERS_GR_HDLC_FRAMER_B_IMPL_H
3 
4 #include <queue>
5 
6 
8 #include <hdlc_framer.h>
9 
10 using std::queue;
11 namespace gr {
12  namespace framers {
13 
15  {
16  private:
17  // This does most of the framing work
18  hdlc_framer d_framer;
19  int d_dlci;
20  queue<unsigned char> d_fifo;
21  int read_packet(unsigned char * packet_buf);
22  int total_packets;
23  public:
24  gr_hdlc_framer_b_impl(int dlci);
26 
27  // Where all the action really happens
28  void forecast (int noutput_items, gr_vector_int &ninput_items_required);
29 
30  int general_work(int noutput_items,
31  gr_vector_int &ninput_items,
32  gr_vector_const_void_star &input_items,
33  gr_vector_void_star &output_items);
34  };
35 
36  } // namespace framers
37 } // namespace gr
38 
39 #endif /* INCLUDED_FRAMERS_GR_HDLC_FRAMER_B_IMPL_H */
40 
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
Definition: gr_hdlc_framer_b_impl.h:14
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
&lt;+description of block+&gt;
Definition: gr_hdlc_framer_b.h:36
Definition: hdlc_framer.h:46