GNU Radio Manual and C++ API Reference
3.9.1.0
The Free & Open Software Radio Ecosystem
correlate_access_code_tag_ff.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
/*
3
* Copyright 2005,2006,2011,2012,2017 Free Software Foundation, Inc.
4
*
5
* This file is part of GNU Radio
6
*
7
* SPDX-License-Identifier: GPL-3.0-or-later
8
*
9
*/
10
11
#ifndef INCLUDED_DIGITAL_CORRELATE_ACCESS_CODE_TAG_FF_H
12
#define INCLUDED_DIGITAL_CORRELATE_ACCESS_CODE_TAG_FF_H
13
14
#include <
gnuradio/digital/api.h
>
15
#include <
gnuradio/sync_block.h
>
16
#include <string>
17
18
namespace
gr
{
19
namespace
digital {
20
21
/*!
22
* \brief Examine input for specified access code, one bit at a time.
23
* \ingroup packet_operators_blk
24
*
25
* \details
26
* input: stream of floats (generally, soft decisions)
27
* output: unaltered stream of bits (plus tags)
28
*
29
* This block annotates the input stream with tags. The tags have
30
* key name [tag_name], specified in the constructor. Used for
31
* searching an input data stream for preambles, etc., by slicing
32
* the soft decision symbol inputs.
33
*/
34
class
DIGITAL_API
correlate_access_code_tag_ff
:
virtual
public
sync_block
35
{
36
public
:
37
// gr::digital::correlate_access_code_tag_ff::sptr
38
typedef
std::shared_ptr<correlate_access_code_tag_ff>
sptr
;
39
40
/*!
41
* \param access_code is represented with 1 byte per bit,
42
* e.g., "010101010111000100"
43
* \param threshold maximum number of bits that may be wrong
44
* \param tag_name key of the tag inserted into the tag stream
45
*/
46
static
sptr
47
make(
const
std::string& access_code,
int
threshold,
const
std::string& tag_name);
48
49
/*!
50
* \param access_code is represented with 1 byte per bit,
51
* e.g., "010101010111000100"
52
*/
53
virtual
bool
set_access_code(
const
std::string& access_code) = 0;
54
virtual
void
set_threshold(
int
threshold) = 0;
55
virtual
void
set_tagname(
const
std::string& tagname) = 0;
56
};
57
58
}
/* namespace digital */
59
}
/* namespace gr */
60
61
#endif
/* INCLUDED_DIGITAL_CORRELATE_ACCESS_CODE_TAG_FF_H */
gr::sync_block
synchronous 1:1 input to output with history
Definition:
sync_block.h:25
DIGITAL_API
#define DIGITAL_API
Definition:
gr-digital/include/gnuradio/digital/api.h:18
sync_block.h
api.h
gr::digital::correlate_access_code_tag_ff::sptr
std::shared_ptr< correlate_access_code_tag_ff > sptr
Definition:
correlate_access_code_tag_ff.h:38
gr
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition:
basic_block.h:29
gr::digital::correlate_access_code_tag_ff
Examine input for specified access code, one bit at a time.
Definition:
correlate_access_code_tag_ff.h:34
gr-digital
include
gnuradio
digital
correlate_access_code_tag_ff.h
Generated by
1.8.17