GNU Radio's SATELLITES Package
message_counter_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_MESSAGE_COUNTER_IMPL_H
11#define INCLUDED_SATELLITES_MESSAGE_COUNTER_IMPL_H
12
13#include <pmt/pmt.h>
15#include <cstdint>
16
17namespace gr {
18namespace satellites {
19
21{
22private:
23 const pmt::pmt_t d_out_port;
24 const pmt::pmt_t d_count_port;
25 uint64_t d_count = 0;
26
27public:
30
31 int work(int noutput_items,
32 gr_vector_const_void_star& input_items,
33 gr_vector_void_star& output_items) override;
34
35 void msg_handler(const pmt::pmt_t& pmt_msg);
36};
37
38} // namespace satellites
39} // namespace gr
40
41#endif /* INCLUDED_SATELLITES_MESSAGE_COUNTER_IMPL_H */
Definition: message_counter_impl.h:21
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) override
void msg_handler(const pmt::pmt_t &pmt_msg)
Counts messages.
Definition: message_counter.h:29
Definition: ax100_decode.h:17