GNU Radio's LORA_SDR Package
utilities.h File Reference
#include <cstdint>
#include <string.h>
#include <iomanip>
#include <numeric>
#include <gnuradio/expj.h>
#include <sys/resource.h>
#include <sys/syscall.h>
#include <volk/volk.h>

Go to the source code of this file.

Namespaces

 gr
 
 gr::lora_sdr
 

Macros

#define RESET   "\033[0m"
 
#define RED   "\033[31m" /* Red */
 

Typedefs

typedef double gr::lora_sdr::LLR
 Log-Likelihood Ratio type. More...
 

Enumerations

enum  gr::lora_sdr::Symbol_type {
  gr::lora_sdr::VOID, gr::lora_sdr::UPCHIRP, gr::lora_sdr::SYNC_WORD, gr::lora_sdr::DOWNCHIRP,
  gr::lora_sdr::QUARTER_DOWN, gr::lora_sdr::PAYLOAD, gr::lora_sdr::UNDETERMINED
}
 

Functions

long gr::lora_sdr::mod (long a, long b)
 return the modulus ab between 0 and (b-1) More...
 
double gr::lora_sdr::double_mod (double a, long b)
 
std::vector< bool > gr::lora_sdr::int2bool (uint integer, uint8_t n_bits)
 Convert an integer into a MSB first vector of bool. More...
 
uint32_t gr::lora_sdr::bool2int (std::vector< bool > b)
 Convert a MSB first vector of bool to a integer. More...
 
void gr::lora_sdr::build_upchirp (gr_complex *chirp, uint32_t id, uint8_t sf, uint8_t os_factor=1)
 Return an modulated upchirp using s_f=bw. More...
 
void gr::lora_sdr::build_ref_chirps (gr_complex *upchirp, gr_complex *downchirp, uint8_t sf, uint8_t os_factor=1)
 Return the reference chirps using s_f=bw. More...
 
std::string gr::lora_sdr::random_string (int Nbytes)
 

Macro Definition Documentation

◆ RED

#define RED   "\033[31m" /* Red */

◆ RESET

#define RESET   "\033[0m"