GNU Radio's MIXALOT Package
pocencode_impl.h
Go to the documentation of this file.
1/* Written by Brandon Creighton <cstone@pobox.com>.
2 *
3 * This code is in the public domain; however, note that most of its
4 * dependent code, including GNU Radio, is not.
5 */
6
7#ifndef INCLUDED_MIXALOT_POCENCODE_IMPL_H
8#define INCLUDED_MIXALOT_POCENCODE_IMPL_H
9
11#include <queue>
12#include <itpp/comm/bch.h>
13
14using namespace itpp;
15using std::string;
16using std::shared_ptr;
17
18
19namespace gr {
20 namespace mixalot {
21
23 {
24 private:
25 std::queue<bool> d_bitqueue; // Queue of symbols to be sent out.
26 int d_msgtype; // message type
27 unsigned int d_baudrate; // baud rate to transmit at -- should be 512, 1200, or 2400 (although others will work!)
28 unsigned int d_capcode; // capcode (pager ID)
29 unsigned long d_symrate; // output symbol rate (must be evenly divisible by the baud rate)
30 std::string d_message; // message to send
31
32 inline void queuebit(bool bit);
33
34 public:
35 pocencode_impl(int msgtype, unsigned int baudrate, unsigned int capcode, std::string message, unsigned long symrate);
37
38 // Where all the action really happens
40 void queue(shared_ptr<bvec> bvptr);
41 void queue(uint32_t val);
42 int work(int noutput_items,
43 gr_vector_const_void_star &input_items,
44 gr_vector_void_star &output_items);
45 };
46
47
48 } // namespace mixalot
49} // namespace gr
50
51#endif /* INCLUDED_MIXALOT_POCENCODE_IMPL_H */
Definition pocencode_impl.h:23
void queue(shared_ptr< bvec > bvptr)
void queue(uint32_t val)
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
pocencode_impl(int msgtype, unsigned int baudrate, unsigned int capcode, std::string message, unsigned long symrate)
<+description of block+>
Definition pocencode.h:22
Definition flexencode.h:13