GNU Radio's LORA_SDR Package
frame_detector_timeout.h
Go to the documentation of this file.
1/**
2 * @file frame_detector_timeout.h
3 * @author Martyn van Dijke (martijnvdijke600@gmail.com)
4 * @brief
5 * @version 0.1
6 * @date 2021-06-21
7 *
8 *
9 */
10
11#ifndef INCLUDED_LORA_SDR_FRAME_DETECTOR_TIMEOUT_H
12#define INCLUDED_LORA_SDR_FRAME_DETECTOR_TIMEOUT_H
13
14#include <lora_sdr/api.h>
15#include <gnuradio/block.h>
16
17namespace gr {
18 namespace lora_sdr {
19
20 /*!
21 * \brief Frame detector block, looks for a LoRa frame given SF, sapling rate and BW.
22 Once this block has found the preamble upchirps the block will output n_bytes to its output.
23 * \ingroup lora_sdr
24 *
25 */
26 class LORA_SDR_API frame_detector_timeout : virtual public gr::block
27 {
28 public:
29 typedef std::shared_ptr<frame_detector_timeout> sptr;
30
31 /*!
32 * \brief Return a shared_ptr to a new instance of lora_sdr::frame_detector_timeout.
33 *
34 * To avoid accidental use of raw pointers, lora_sdr::frame_detector_timeout's
35 * constructor is in a private implementation
36 * class. lora_sdr::frame_detector_timeout::make is the public interface for
37 * creating new instances.
38 */
39 static sptr make(uint8_t sf, uint32_t samp_rate, uint32_t bw,
40 uint8_t n_bytes, bool detect_second_packet);
41 };
42
43 } // namespace lora_sdr
44} // namespace gr
45
46#endif /* INCLUDED_LORA_SDR_FRAME_DETECTOR_TIMEOUT_H */
47
#define LORA_SDR_API
Definition: api.h:19
Frame detector block, looks for a LoRa frame given SF, sapling rate and BW. Once this block has found...
Definition: frame_detector_timeout.h:27
std::shared_ptr< frame_detector_timeout > sptr
Definition: frame_detector_timeout.h:29
static sptr make(uint8_t sf, uint32_t samp_rate, uint32_t bw, uint8_t n_bytes, bool detect_second_packet)
Return a shared_ptr to a new instance of lora_sdr::frame_detector_timeout.
Definition: add_crc.h:28