GNU Radio's SATELLITES Package
frame_counter.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_FRAME_COUNTER_H
11#define INCLUDED_SATELLITES_FRAME_COUNTER_H
12
13#include <gnuradio/sync_block.h>
14#include <satellites/api.h>
15
16namespace gr {
17namespace satellites {
18
19/*!
20 * \brief Counts frames of fixed size.
21 * \ingroup satellites
22 *
23 * \details
24 * The Frame Counter block counts frames of a fixed size that cross
25 * the block and outputs a message every time that new frames have
26 * crossed the block. The message contains the count.
27 */
28class SATELLITES_API frame_counter : virtual public gr::sync_block
29{
30public:
31 typedef std::shared_ptr<frame_counter> sptr;
32
33 /*!
34 * \brief Build the Frame Counter block.
35 *
36 * \param itemsize Size of the stream items.
37 * \param frame_size Size of the frames.
38 */
39 static sptr make(size_t itemsize, size_t frame_size);
40};
41
42} // namespace satellites
43} // namespace gr
44
45#endif /* INCLUDED_SATELLITES_FRAME_COUNTER_H */
#define SATELLITES_API
Definition api.h:31
Counts frames of fixed size.
Definition frame_counter.h:29
std::shared_ptr< frame_counter > sptr
Definition frame_counter.h:31
static sptr make(size_t itemsize, size_t frame_size)
Build the Frame Counter block.
Definition ax100_decode.h:18
Definition ax100_decode.h:17