167 lines
4.8 KiB
HTML
167 lines
4.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="description" content="MontaukOS manual page: rtlsdr(3) - userspace RTL2832U and R820T2 radio driver">
|
|
<title>rtlsdr(3) - MontaukOS Manual</title>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap" rel="stylesheet">
|
|
<style>
|
|
body {
|
|
font-family: 'Open Sans', Arial, sans-serif;
|
|
max-width: 960px;
|
|
margin: 0 auto;
|
|
padding: 1em;
|
|
line-height: 1.5;
|
|
display: flex;
|
|
gap: 2em;
|
|
}
|
|
p { margin: 0 0 0.5em; }
|
|
h2 { margin: 0.5em 0; }
|
|
.sidebar {
|
|
width: 160px;
|
|
flex-shrink: 0;
|
|
}
|
|
.sidebar ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
.sidebar li {
|
|
margin: 0.5em 0;
|
|
}
|
|
.sidebar a {
|
|
color: #0066CC;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
}
|
|
.sidebar a:hover {
|
|
color: #004499;
|
|
text-decoration: underline;
|
|
}
|
|
.sidebar .current {
|
|
color: #004499;
|
|
}
|
|
.sidebar hr {
|
|
border: none;
|
|
border-top: 1px solid #999;
|
|
margin: 0.75em 0;
|
|
}
|
|
.main {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
a { color: #0000EE; }
|
|
a:visited { color: #0066CC; }
|
|
hr { border-style: solid; border-width: 1px 0 0 0; border-color: #999; }
|
|
pre { background: #f0f0f0; padding: 0.5em; overflow-x: auto; }
|
|
code { background: #f0f0f0; padding: 0 0.15em; }
|
|
pre code { padding: 0; }
|
|
.center { text-align: center; }
|
|
.box {
|
|
border: 1px solid #999;
|
|
padding: 0.5em;
|
|
margin: 0.5em 0;
|
|
}
|
|
@media (max-width: 700px) {
|
|
body {
|
|
flex-direction: column;
|
|
gap: 1em;
|
|
padding: 1em 0.75em;
|
|
}
|
|
.sidebar {
|
|
width: auto;
|
|
}
|
|
.sidebar ul {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0 1em;
|
|
}
|
|
.sidebar hr {
|
|
width: 100%;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="sidebar">
|
|
<ul>
|
|
<li><a href="../../index.html">Home</a></li>
|
|
<li><a href="../../downloads.html">Downloads</a></li>
|
|
<li><a href="../../history.html">History</a></li>
|
|
<li><a href="../index.html">Documentation</a></li>
|
|
<li><a href="https://git.montaukos.org/daniel/MontaukOS/issues">Issue tracker</a></li>
|
|
<li><a href="https://git.montaukos.org/daniel/MontaukOS">Git</a></li>
|
|
</ul>
|
|
<hr>
|
|
<ul>
|
|
<li><a href="index.html" class="current">Man Pages</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="main">
|
|
<div class="center">
|
|
<h1>rtlsdr(3)</h1>
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<pre><code><strong>NAME</strong>
|
|
rtlsdr.lib - userspace RTL2832U and R820T2 radio driver
|
|
|
|
<strong>SYNOPSIS</strong>
|
|
|
|
#include <rtlsdr/rtlsdr.h>
|
|
|
|
|
|
<strong>DESCRIPTION</strong>
|
|
The library at
|
|
<strong>0:/os/rtlsdr.lib</strong>
|
|
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
|
|
<strong>rtlsdr_*</strong>
|
|
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.
|
|
|
|
<strong>API</strong>
|
|
<strong>rtlsdr_count</strong>
|
|
and
|
|
<strong>rtlsdr_get_device_info</strong>
|
|
enumerate compatible unbound USB interfaces.
|
|
<strong>rtlsdr_open</strong>
|
|
claims an interface and returns an opaque device pointer.
|
|
<strong>rtlsdr_set_center_freq,</strong>
|
|
<strong>rtlsdr_set_sample_rate,</strong>
|
|
<strong>rtlsdr_set_tuner_gain_mode,</strong>
|
|
<strong>rtlsdr_set_tuner_gain,</strong>
|
|
<strong>rtlsdr_set_freq_correction,</strong>
|
|
<strong>rtlsdr_set_agc_mode,</strong>
|
|
and
|
|
<strong>rtlsdr_set_direct_sampling</strong>
|
|
configure the receiver.
|
|
<strong>rtlsdr_start,</strong>
|
|
<strong>rtlsdr_read,</strong>
|
|
and
|
|
<strong>rtlsdr_stop</strong>
|
|
control non-blocking reception.
|
|
|
|
<strong>NOTES</strong>
|
|
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.</code></pre>
|
|
<hr>
|
|
|
|
<div class="center">
|
|
<a href="../index.html">Back to Documentation Index</a>
|
|
</div>
|
|
|
|
</div>
|
|
</body>
|
|
</html>
|