GNU Radio 3.7.1 C++ API
gr::digital::correlate_access_code_bb Class Reference

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

#include <correlate_access_code_bb.h>

Inheritance diagram for gr::digital::correlate_access_code_bb:

List of all members.

Public Types

typedef boost::shared_ptr
< correlate_access_code_bb
sptr

Public Member Functions

virtual bool set_access_code (const std::string &access_code)=0

Static Public Member Functions

static sptr make (const std::string &access_code, int threshold)

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.


Member Typedef Documentation


Member Function Documentation

static sptr gr::digital::correlate_access_code_bb::make ( const std::string &  access_code,
int  threshold 
) [static]

Make a correlate_access_code block.

Parameters:
access_codeis represented with 1 byte per bit, e.g., "010101010111000100"
thresholdmaximum number of bits that may be wrong
virtual bool gr::digital::correlate_access_code_bb::set_access_code ( const std::string &  access_code) [pure virtual]

Set a new access code.

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

The documentation for this class was generated from the following file: