rtlsdr(3)


NAME
rtlsdr.lib - userspace RTL2832U and R820T2 radio driver

SYNOPSIS

#include <rtlsdr/rtlsdr.h>


DESCRIPTION
The library at
    0:/os/rtlsdr.lib
drives supported Realtek RTL2832U USB receivers from userspace through the
generic process-owned USB API. Supported USB product IDs are 0bda:2832 and
0bda:2838. Samples are returned as interleaved unsigned 8-bit I/Q pairs.

Applications load the library with libloader, resolve the
    rtlsdr_*
symbols declared in the header, enumerate devices, open one, configure it,
start bulk reception, read samples, stop, and close it. Claims are exclusive
and are released by the kernel if the process exits or the device disconnects.

API
    rtlsdr_count
and
    rtlsdr_get_device_info
enumerate compatible unbound USB interfaces.
    rtlsdr_open
claims an interface and returns an opaque device pointer.
    rtlsdr_set_center_freq,
    rtlsdr_set_sample_rate,
    rtlsdr_set_tuner_gain_mode,
    rtlsdr_set_tuner_gain,
    rtlsdr_set_freq_correction,
    rtlsdr_set_agc_mode,
and
    rtlsdr_set_direct_sampling
configure the receiver.
    rtlsdr_start,
    rtlsdr_read,
and
    rtlsdr_stop
control non-blocking reception.

NOTES
Syscall numbers 140 through 148 are reserved former SDR slots and are not an
API. Device-specific control and tuner programming live entirely in this
library.

Back to Documentation Index