nimrtlsdr
A Nim wrapper for librtlsdr
Wraps a native library — check OS Compatibility below for platform-specific linking notes.
Summary
| Latest Version | Unknown |
|---|---|
| License | BSD |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:24 |
Tags
Installation
nimble install nimrtlsdr
choosenim install nimrtlsdr
git clone https://github.com/jpoirier/nimrtlsdr
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| nimrtlsdr | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/jpoirier/nimrtlsdr |
|---|---|
| Homepage | https://github.com/jpoirier/nimrtlsdr |
| Registry Source | nimble_official |
README
nimrtlsdr
A Nim wrapper for librtlsdr (a driver for Realtek RTL2832U based SDR's)
Description
nimtlsdr is a simple Nim interface to devices supported by the RTL-SDR project, which turns certain USB DVB-T dongles employing the Realtek RTL2832U chipset into a low-cost, general purpose software-defined radio receiver. It wraps all the functions in the librtlsdr library (including asynchronous read support).
Supported Platforms: * Linux * OS X * Windows
Installation
Dependencies
- Nim compiler
- [librtlsdr] (http://sdr.osmocom.org/trac/wiki/rtl-sdr) - builds dated after 5/5/12
- [libusb] (https://www.libusb.org)
- [git] (https://git-scm.com)
Building nimrtlsdr
- Download and install git.
- Download and install the Nim tools.
- Download the pre-built rtl-sdr library and install.
- Install the nimrtlsdr package:
Using nimble:
$ nimble install git://github.com/jpoirier/nimrtlsdr
$ git clone git@github.com:jpoirier/nimrtlsdr.git
Go to the nimrtlsdr/examples folder and...
...if you installed using nimble:
$ nim c rtlsdr_example.nim
...if you didn't install using nimble you need to provide the path to the nimrtlsdr library source:
$ nim c --path:../src rtlsdr_example.nim
- Insert the DVB-T/DAB/FM dongle into a USB port and run the rtlsdr_example example program.
$ ./rtlsdr_example
Credit
- pyrtlsdr for the great read-me description, which I copied.
- [osmoconSDR] (http://sdr.osmocom.org/trac/wiki/rtl-sdr) for the rtl-sdr library.
- [Antti Palosaari] (http://thread.gmane.org/gmane.linux.drivers.video-input-infrastructure/44461/focus=44461) for sharing!
-joe