Struct rtlsdr::RTLSDRDevice [] [src]

pub struct RTLSDRDevice { /* fields omitted */ }

Methods

impl RTLSDRDevice
[src]

Close a previously opened RTL-SDR device.

Set crystal frequency (in Hz) for an opened device.

NOTE: Only do this if you know what you're doing, for instance if you are injecting your own clock signal or correcting for the frequency of the onboard xtal. In general the RTL and the tuner will be fed from the same clock.

Get crystal frequency (in Hz) for an opened device.

Returns a tuple of (RTL freq, tuner freq).

Get USB strings for an opened device.

Set the RTL-SDR's centre frequency (in Hz).

Get the RTL-SDR's center frequency (in Hz).

Set the RTL-SDR's frequency correction (in ppm).

Get the RTL-SDR's current frequency correction (in ppm).

Get the RTL-SDR's tuner type.

Returns a tuple (id: i32, name: String).

Get a Vec of allowable tuner gains.

Gains are specified in tenths-of-a-dB. The number of allowable gains depends on the attached hardware.

Set tuner gain (from list of allowable gains).

Get current tuner gain (in tenths of dB)

Set tuner IF gain (in tenths of dB).

stage specifies which intermediate gain stage to set (1-6 for E4000).

Set automatic or manual gain.

Manual gain must be enabled for set_gain to work.

Set sample rate (in Hz).

Get current sample rate (in Hz).

Set bandwidth (in Hz).

Set test mode on or off.

Test mode turns on an 8 bit counter rather than sampling the radio input. The counter is generated inside the RTL2832.

Set AGC on or off.

Enables or disables the internal digital AGC of the RTL2832.

Set direct sampling.

When enabled, the IF mode of the RTL2832 is activated, and set_center_freq will control the IF frequency, allowing tuning from 0 to 28.8MHz.

Get current direct sampling mode.

Set offset tuning mode on/off. Only use on zero IF tuners.

Useful to avoid DC offsets and 1/f noise.

Get current offset tuning status.

Reset streaming buffer.

Read a buffer synchronously.

Trait Implementations

impl Drop for RTLSDRDevice
[src]

A method called when the value goes out of scope. Read more