pub struct RtlSdr { /* private fields */ }Implementations§
Source§impl RtlSdr
impl RtlSdr
pub fn open(index: usize) -> Result<RtlSdr>
pub fn close(&mut self) -> Result<()>
pub fn reset_buffer(&self) -> Result<()>
pub fn read_sync(&self, buf: &mut [u8]) -> Result<usize>
pub fn get_center_freq(&self) -> u32
pub fn set_center_freq(&self, freq: u32) -> Result<()>
pub fn get_tuner_gains(&self) -> Result<Vec<i32>>
pub fn set_tuner_gain(&self, gain: TunerGain) -> Result<()>
pub fn get_freq_correction(&self) -> i32
pub fn set_freq_correction(&self, ppm: i32) -> Result<()>
pub fn get_sample_rate(&self) -> u32
pub fn set_sample_rate(&self, rate: u32) -> Result<()>
pub fn set_tuner_bandwidth(&self, bw: u32) -> Result<()>
pub fn set_testmode(&self, on: bool) -> Result<()>
pub fn set_direct_sampling(&self, mode: DirectSampleMode) -> Result<()>
pub fn set_bias_tee(&self, on: bool) -> Result<()>
Auto Trait Implementations§
impl !Freeze for RtlSdr
impl !RefUnwindSafe for RtlSdr
impl !Send for RtlSdr
impl !Sync for RtlSdr
impl !UnwindSafe for RtlSdr
impl Unpin for RtlSdr
impl UnsafeUnpin for RtlSdr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more