pub struct DeviceBuilder { /* private fields */ }Expand description
Builder for opening and initially configuring a Device.
Implementations§
Source§impl DeviceBuilder
impl DeviceBuilder
Sourcepub fn frequency_hz(self, value: u64) -> Self
pub fn frequency_hz(self, value: u64) -> Self
Set the initial center frequency.
Sourcepub fn sample_rate_hz(self, value: u32) -> Self
pub fn sample_rate_hz(self, value: u32) -> Self
Set the initial complex sample rate.
Sourcepub fn lna_gain_db(self, value: u8) -> Self
pub fn lna_gain_db(self, value: u8) -> Self
Set the initial RX IF/LNA gain.
Sourcepub fn vga_gain_db(self, value: u8) -> Self
pub fn vga_gain_db(self, value: u8) -> Self
Set the initial baseband/VGA gain.
Sourcepub fn amp_enable(self, enabled: bool) -> Self
pub fn amp_enable(self, enabled: bool) -> Self
Set the initial RF amplifier state.
Sourcepub fn open(self) -> impl MaybeFuture<Output = Result<Device>>
pub fn open(self) -> impl MaybeFuture<Output = Result<Device>>
Open the selected device, query metadata, and apply the configuration.
Trait Implementations§
Source§impl Clone for DeviceBuilder
impl Clone for DeviceBuilder
Source§fn clone(&self) -> DeviceBuilder
fn clone(&self) -> DeviceBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceBuilder
impl Debug for DeviceBuilder
Source§impl Default for DeviceBuilder
impl Default for DeviceBuilder
Source§fn default() -> DeviceBuilder
fn default() -> DeviceBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeviceBuilder
impl RefUnwindSafe for DeviceBuilder
impl Send for DeviceBuilder
impl Sync for DeviceBuilder
impl Unpin for DeviceBuilder
impl UnsafeUnpin for DeviceBuilder
impl UnwindSafe for DeviceBuilder
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