|
GNU Radio's LORA_SDR Package
|
Go to the documentation of this file.
11 #include <gnuradio/expj.h>
12 #include <gnuradio/io_signature.h>
17 #include <volk/volk.h>
27 #define RESET "\033[0m"
28 #define RED "\033[31m"
37 long mod(
long a,
long b);
55 std::vector<bool>
int2bool(uint8_t integer, uint8_t n_bits);
76 uint32_t
get_symbol_val(
const gr_complex *samples, gr_complex *ref_chirp,
77 uint32_t m_number_of_bins,
89 uint32_t m_samples_per_symbol);
97 uint32_t
bool2int(std::vector<bool> b);
106 void build_ref_chirps(gr_complex *upchirp, gr_complex *downchirp, uint8_t sf);
115 void build_upchirp(gr_complex *chirp, uint32_t
id, uint8_t sf);
std::string random_string(int Nbytes)
Generates a random string of given length.
uint32_t bool2int(std::vector< bool > b)
Convert a MSB first vector of bool to a integer.
std::vector< bool > int2bool(uint8_t integer, uint8_t n_bits)
Convert an integer into a MSB first vector of bool.
float determine_energy(const gr_complex *samples, uint32_t m_samples_per_symbol)
Determine the energy of a symbol.
double double_mod(double a, long b)
Simple modulo the modulus ab between 0 and (b-1) for doubles.
void build_upchirp(gr_complex *chirp, uint32_t id, uint8_t sf)
Return an modulated upchirp using s_f=bw.
long mod(long a, long b)
Simple modulo the modulus ab between 0 and (b-1)
uint32_t get_symbol_val(const gr_complex *samples, gr_complex *ref_chirp, uint32_t m_number_of_bins, uint32_t m_samples_per_symbol, kiss_fft_cpx *cx_in, kiss_fft_cpx *cx_out)
Function that gets the symbol from the received samples.
Definition: kiss_fft.h:67
void build_ref_chirps(gr_complex *upchirp, gr_complex *downchirp, uint8_t sf)
Return the reference chirps using s_f=bw.
void build_upchirp_os_factor(gr_complex *chirp, uint32_t id, uint8_t sf, uint8_t os_factor)
Return an modulated upchirp using s_f=bw with over sampling factor.