pub struct Config {
pub vga_db: u16,
pub txvga_db: u16,
pub lna_db: u16,
pub amp_enable: bool,
pub antenna_enable: bool,
pub frequency_hz: u64,
pub sample_rate_hz: u32,
pub sample_rate_div: u32,
}
Expand description
Configurable parameters on the hackrf
Fields§
§vga_db: u16
Baseband gain, 0-62dB in 2dB increments (rx only)
txvga_db: u16
0 - 47 dB in 1dB increments (tx only)
lna_db: u16
Low-noise amplifier gain, in 0-40dB in 8dB increments (rx only)
amp_enable: bool
RF amplifier (on/off)
antenna_enable: bool
Antenna power port control
frequency_hz: u64
Frequency in hz
sample_rate_hz: u32
Sample rate in Hz.
sample_rate_div: u32
Sample rate divider.
Implementations§
Source§impl Config
impl Config
Sourcepub fn tx_default() -> Self
pub fn tx_default() -> Self
Returns the default configuration for transmitting.
Sourcepub fn rx_default() -> Self
pub fn rx_default() -> Self
Returns the default configuration for receiving.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin 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