pub struct HackRF {
pub usb: Device,
/* private fields */
}
Fields§
§usb: Device
Implementations§
source§impl HackRF
impl HackRF
pub async fn sn(&self) -> Result<String>
pub async fn version_string_read(&self, len: usize) -> Result<Vec<u8>>
pub fn rx_request(&self) -> Result<Request>
pub async fn start_rx_channel( &self, buffer_size: usize ) -> Result<(RequestSender, RequestReceiver)>
pub async fn set_mode_off(&self) -> Result<()>
pub async fn set_sample_rate(&self, freq_hz: f64) -> Result<()>
pub async fn set_freq(&self, freq_hz: f64) -> Result<()>
pub async fn set_lna_gain(&self, value: u32) -> Result<()>
pub async fn set_vga_gain(&self, value: u32) -> Result<()>
pub async fn amp_enable(&self) -> Result<()>
pub async fn amp_disable(&self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for HackRF
impl Send for HackRF
impl Sync for HackRF
impl Unpin for HackRF
impl UnwindSafe for HackRF
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