GNU Radio's SATELLITES Package
level_to_message_impl.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2025 Daniel Estevez <daniel@destevez.net>.
4 *
5 * This file is part of gr-satellites
6 *
7 * SPDX-License-Identifier: GPL-3.0-or-later
8 */
9
10#ifndef INCLUDED_SATELLITES_LEVEL_TO_MESSAGE_IMPL_H
11#define INCLUDED_SATELLITES_LEVEL_TO_MESSAGE_IMPL_H
12
14
15namespace gr {
16namespace satellites {
17
19{
20private:
21 const float d_threshold;
22 const pmt::pmt_t d_out_port;
23 const pmt::pmt_t d_above_tag;
24 bool d_above_threshold = false;
25
26public:
27 level_to_message_impl(float threshold);
29
30 int work(int noutput_items,
31 gr_vector_const_void_star& input_items,
32 gr_vector_void_star& output_items) override;
33};
34
35} // namespace satellites
36} // namespace gr
37
38#endif /* INCLUDED_SATELLITES_LEVEL_TO_MESSAGE_IMPL_H */
Definition: level_to_message_impl.h:19
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) override
Converts changes in signal level to messages.
Definition: level_to_message.h:33
Definition: ax100_decode.h:17