Skip to content

Instantly share code, notes, and snippets.

@lukicdarkoo
lukicdarkoo / demodulation.c
Last active November 11, 2023 01:38
QAM modulation in C without complex library
#include <math.h>
#include <stdio.h>
typedef struct _complex {
double imag;
double real;
} complex_t;
const int SAMPLE_RATE = 160E3;
const float FREQUENCY = 40E3;