pub struct RtlSdr { /* private fields */ }Implementations§
Source§impl RtlSdr
impl RtlSdr
pub async fn open_first() -> Result<Self>
pub async fn list_devices() -> Result<Vec<DeviceDescription>>
pub async fn open(info: DeviceInfo) -> Result<Self>
pub fn vendor_id(&self) -> u16
pub fn product_id(&self) -> u16
pub fn known_name(&self) -> Option<&'static str>
pub fn manufacturer(&self) -> Option<&str>
pub fn product(&self) -> Option<&str>
pub fn tuner_kind(&self) -> TunerKind
pub fn sample_rate(&self) -> u32
pub fn center_frequency(&self) -> Option<u32>
pub fn frequency_correction(&self) -> i32
pub async fn set_sample_rate(&mut self, sample_rate_hz: u32) -> Result<u32>
pub async fn set_center_frequency(&mut self, frequency_hz: u32) -> Result<()>
pub async fn set_tuner_gain(&mut self, gain: GainMode) -> Result<()>
pub async fn set_bandwidth(&mut self, bandwidth_hz: Option<u32>) -> Result<()>
pub async fn set_frequency_correction(&mut self, ppm: i32) -> Result<()>
pub async fn set_agc_mode(&self, enabled: bool) -> Result<()>
pub async fn set_test_mode(&self, enabled: bool) -> Result<()>
pub async fn reset_buffer(&self) -> Result<()>
pub async fn read_bytes(&self, len: usize) -> Result<Vec<u8>>
pub async fn read_iq_samples( &self, sample_count: usize, ) -> Result<Vec<IqSample>>
Auto Trait Implementations§
impl !Freeze for RtlSdr
impl !RefUnwindSafe for RtlSdr
impl !UnwindSafe for RtlSdr
impl Send for RtlSdr
impl Sync 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