rtlsdr_iq 0.1.0

I/Q complex sample lookup table for RTL-SDR
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env python

import os

for word in range(0, 0xFFFF+1):
    re = (float(word & 0xFF) - 127.5) / 128.0
    im = (float(word >> 8) - 127.5) / 128.0

    if os.environ["ENDIAN"] == "big":
        re, im = im, re

    print("Complex32 {{ re: {:f}, im: {:f} }},".format(re, im))