Struct rtlsdr::Device [] [src]

pub struct Device { /* fields omitted */ }

Methods

impl Device
[src]

Close the device.

Sets the crystal oscillator frequencies.

Typically both ICs (rtlsdr and tuner) use the same clock. Changing the clock may make sense if you are applying an external clock to the tuner or to compensate the frequency (and sample rate) error caused by the original (cheap) crystal.

Note, call this function only if you fully understand the implications.

Returns the crystal oscillator frequencies. Typically both ICs (rtlsdr and tuner) use the same clock.

Returns the device information (manufact, product, serial). Note, strings may be empty.

Writes information data to the EEPROM.

Returns information data read from the EEPROM.

Sets the center frequency.

Returns the tuned frequency or zero on error.

Sets the frequency correction.

Returns the frequency correction value.

Returns the tuner type.

Returns a list of supported tuner gains. Values are in tenths of dB, e.g. 115 means 11.5 dB.

Sets the tuner gain. Note, manual gain mode must be enabled for this to work. Valid gain values may be queried using get_tuner_gains.

Valid values (in tenths of a dB) are: -10, 15, 40, 65, 90, 115, 140, 165, 190, 215, 240, 290, 340, 420, 430, 450, 470, 490

Gain values are in tenths of dB, e.g. 115 means 11.5 dB.

Returns the tuner gain.

Gain values are in tenths of dB, e.g. 115 means 11.5 dB.

Sets the device bandwidth.

Sets the intermediate frequency gain.

Intermediate frequency gain stage number 1 to 6. Gain values are in tenths of dB, e.g. -30 means -3.0 dB.

Sets the gain mode, automatic or manual. Manual gain mode must be enabled for the gain setter function to work.

Sets the sample rate.

When applicable, the baseband filters are also selected based on the requested sample rate.

Returns the sample rate.

Sets device to test mode.

Test mode returns 8 bit counters instead of samples. Note, the counter is generated inside the device.

Sets the AGC mode.

Sets the direct sampling mode.

When enabled, the IF mode of the device is activated, and set_center_freq() will control the IF-frequency of the DDC, which can be used to tune from 0 to 28.8 MHz (xtal frequency of the device).

Returns the state of direct sampling mode.

Sets the offset tuning mode for zero-IF tuners, which avoids problems caused by the DC offset of the ADCs and 1/f noise.

Returns the offset tuning mode.

Resets the streaming buffer.

Performs a synchronous read of samples and returns the number of samples read.

Reads samples asynchronously. Note, this function will block until canceled using cancel_async. ReadAsyncCbT is a package global variable.

Optional buf_num buffer count, buf_num * buf_len = overall buffer size, set to 0 for default buffer count of 32.

Optional buf_len buffer length, must be multiple of 512, set to 0 for default buffer length of 262,144 (16 * 32 * 512).

Cancels all pending asynchronous operations.

Reads the dongle's information items from the EEPROM.

Write the dongle's information items to the EEPROM.

Trait Implementations

impl Copy for Device
[src]

impl Clone for Device
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Send for Device
[src]

impl Sync for Device
[src]