GNU Radio's SATELLITES Package
frame_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_FRAME_COUNTER_IMPL_H
11 #define INCLUDED_SATELLITES_FRAME_COUNTER_IMPL_H
12 
13 #include <pmt/pmt.h>
15 #include <cstdint>
16 
17 namespace gr {
18 namespace satellites {
19 
21 {
22 private:
23  const size_t d_itemsize;
24  const size_t d_frame_size;
25  const pmt::pmt_t d_count_port;
26  uint64_t d_count = 0;
27  uint64_t d_last = 0;
28 
29 public:
30  frame_counter_impl(size_t itemsize, size_t frame_size);
32 
33  int work(int noutput_items,
34  gr_vector_const_void_star& input_items,
35  gr_vector_void_star& output_items);
36 };
37 
38 } // namespace satellites
39 } // namespace gr
40 
41 #endif /* INCLUDED_SATELLITES_FRAME_COUNTER_IMPL_H */
Definition: frame_counter_impl.h:21
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
frame_counter_impl(size_t itemsize, size_t frame_size)
Counts frames of fixed size.
Definition: frame_counter.h:29
Definition: ax100_decode.h:17