summaryrefslogtreecommitdiff
path: root/README.md
blob: 1a0ee4c12e8b692d4f8041939519603ece317682 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# RusTL-SDR

A pure Rust implementation of the [RTL-SDR](https://github.com/osmocom/rtl-sdr/) driver, for shits and giggles.

This is mostly an exercise in writing low-level driver code.

Unusable, and highly unlikely to ever become usable. But it's fun.

## Usage

Install the crate in your `Cargo.toml`:

```toml
[dependencies]
rustl-sdr = "0.1"
```

Use in your code:

```rust
extern crate rustl_sdr;

fn foo() {
    rtlsdr = rustl_sdr::RtlSdr::new();
    rtlsdr.do_stuff()
}
```

## Dev

The usual:

```bash
$ cargo build
$ cargo test
```

Since there isn't (?) any good USB device mocking setup, for tests to pass an RTL-SDR device must be connected.

## License

[GPLv3](LICENSE)