GNU Radio 3.7.1 C++ API
|
Examine input for specified access code, one bit at a time. More...
#include <correlate_access_code_bb.h>
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) |
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.
static sptr gr::digital::correlate_access_code_bb::make | ( | const std::string & | access_code, |
int | threshold | ||
) | [static] |
Make a correlate_access_code block.
access_code | is represented with 1 byte per bit, e.g., "010101010111000100" |
threshold | maximum 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.
access_code | is represented with 1 byte per bit, e.g., "010101010111000100" |