pub struct Config { /* private fields */ }Expand description
Validated HackRF transceiver configuration.
Implementations§
Source§impl Config
impl Config
Sourcepub fn builder() -> ConfigBuilder
pub fn builder() -> ConfigBuilder
Start building a validated transceiver configuration.
Sourcepub const fn frequency_hz(&self) -> u64
pub const fn frequency_hz(&self) -> u64
Tuned center frequency in Hz.
Sourcepub const fn sample_rate_hz(&self) -> u32
pub const fn sample_rate_hz(&self) -> u32
Complex IQ sample rate in Hz.
Sourcepub const fn lna_gain_db(&self) -> u8
pub const fn lna_gain_db(&self) -> u8
MAX2837 RX IF/LNA gain in dB.
Sourcepub const fn vga_gain_db(&self) -> u8
pub const fn vga_gain_db(&self) -> u8
MAX2837 baseband/VGA gain in dB.
Sourcepub const fn tx_vga_gain_db(&self) -> u8
pub const fn tx_vga_gain_db(&self) -> u8
MAX2837 transmit VGA gain in dB.
Sourcepub const fn amp_enabled(&self) -> bool
pub const fn amp_enabled(&self) -> bool
Whether the RF amplifier is enabled.
Sourcepub const fn bias_tee_enabled(&self) -> bool
pub const fn bias_tee_enabled(&self) -> bool
Whether antenna-port bias power is requested.
Trait Implementations§
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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