Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

gr_correlate_access_code_bb Class Reference
[Signal Processing Blocks]

#include <gr_correlate_access_code_bb.h>

Inheritance diagram for gr_correlate_access_code_bb:

Inheritance graph
[legend]
Collaboration diagram for gr_correlate_access_code_bb:

Collaboration graph
[legend]
List of all members.

Detailed Description

Examine input for specified access code, one bit at a time.

input: stream of bits, 1 bit per input byte (data in LSB) output: stream of bits, 2 bits per output byte (data in LSB, flag in next higher bit)

Each output byte contains two valid bits, the data bit, and the flag bit. The LSB (bit 0) is the data bit, and is the original input data, delayed 64 bits. Bit 1 is the flag bit and is 1 if the corresponding data bit is the first data bit following the access code. Otherwise the flag bit is 0.


Public Member Functions

 ~gr_correlate_access_code_bb ()
int work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
 just like gr_block::general_work, only this arranges to call consume_each for you
bool set_access_code (const std::string &access_code)

Protected Member Functions

 gr_correlate_access_code_bb (const std::string &access_code, int threshold)

Friends

gr_correlate_access_code_bb_sptr gr_make_correlate_access_code_bb (const std::string &access_code, int threshold)


Constructor & Destructor Documentation

gr_correlate_access_code_bb::gr_correlate_access_code_bb const std::string &  access_code,
int  threshold
[protected]
 

gr_correlate_access_code_bb::~gr_correlate_access_code_bb  ) 
 


Member Function Documentation

bool gr_correlate_access_code_bb::set_access_code const std::string &  access_code  ) 
 

Parameters:
access_code is represented with 1 byte per bit, e.g., "010101010111000100"

int gr_correlate_access_code_bb::work int  noutput_items,
gr_vector_const_void_star input_items,
gr_vector_void_star output_items
[virtual]
 

just like gr_block::general_work, only this arranges to call consume_each for you

The user must override work to define the signal processing code

Implements gr_sync_block.


Friends And Related Function Documentation

gr_correlate_access_code_bb_sptr gr_make_correlate_access_code_bb const std::string &  access_code,
int  threshold
[friend]
 

Parameters:
access_code is represented with 1 byte per bit, e.g., "010101010111000100"
threshold maximum number of bits that may be wrong


The documentation for this class was generated from the following files:
Generated on Sat Jul 8 17:11:43 2006 for GNU Radio 2.x by  doxygen 1.4.1