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