11#include <gnuradio/expj.h>
12#include <gnuradio/io_signature.h>
27#define RESET "\033[0m"
37long mod(
long a,
long b);
55std::vector<bool>
int2bool(uint8_t integer, uint8_t n_bits);
77 uint32_t m_number_of_bins,
89 uint32_t m_samples_per_symbol);
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.
float determine_energy(const gr_complex *samples, uint32_t m_samples_per_symbol)
Determine the energy of a symbol.
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.
std::string random_string(int Nbytes)
Generates a random string of given length.
std::vector< bool > int2bool(uint8_t integer, uint8_t n_bits)
Convert an integer into a MSB first vector of bool.
void build_ref_chirps(gr_complex *upchirp, gr_complex *downchirp, uint8_t sf)
Return the reference chirps using s_f=bw.
long mod(long a, long b)
Simple modulo the modulus ab between 0 and (b-1)
void build_upchirp(gr_complex *chirp, uint32_t id, uint8_t sf)
Return an modulated upchirp using s_f=bw.
double double_mod(double a, long b)
Simple modulo the modulus ab between 0 and (b-1) for doubles.
uint32_t bool2int(std::vector< bool > b)
Convert a MSB first vector of bool to a integer.
Definition: kiss_fft.h:67