Struct maia_httpd::iio::Ad9361
source · pub struct Ad9361 { /* private fields */ }
Expand description
AD9361 IIO device.
This struct represents the AD9361 IIO device (ad9361-phy) and can be used to control its attributes.
Implementations§
source§impl Ad9361
impl Ad9361
sourcepub async fn new() -> Result<Ad9361>
pub async fn new() -> Result<Ad9361>
Opens an AD9361 IIO device.
This function opens the first IIO device with name ad9361-phy that is found in the system.
sourcepub async fn get_sampling_frequency(&self) -> Result<u32>
pub async fn get_sampling_frequency(&self) -> Result<u32>
Returns the value of the sampling_frequency
IIO attribute.
sourcepub async fn set_sampling_frequency(&self, value: u32) -> Result<()>
pub async fn set_sampling_frequency(&self, value: u32) -> Result<()>
Sets the value of the sampling_frequency
IIO attribute.
sourcepub async fn get_rx_rf_bandwidth(&self) -> Result<u32>
pub async fn get_rx_rf_bandwidth(&self) -> Result<u32>
Returns the value of the rx_rf_bandwidth
IIO attribute.
sourcepub async fn set_rx_rf_bandwidth(&self, value: u32) -> Result<()>
pub async fn set_rx_rf_bandwidth(&self, value: u32) -> Result<()>
Sets the value of the rx_rf_bandwidth
IIO attribute.
sourcepub async fn get_tx_rf_bandwidth(&self) -> Result<u32>
pub async fn get_tx_rf_bandwidth(&self) -> Result<u32>
Returns the value of the tx_rf_bandwidth
IIO attribute.
sourcepub async fn set_tx_rf_bandwidth(&self, value: u32) -> Result<()>
pub async fn set_tx_rf_bandwidth(&self, value: u32) -> Result<()>
Sets the value of the tx_rf_bandwidth
IIO attribute.
sourcepub async fn get_rx_lo_frequency(&self) -> Result<u64>
pub async fn get_rx_lo_frequency(&self) -> Result<u64>
Returns the value of the rx_lo_frequency
IIO attribute.
sourcepub async fn set_rx_lo_frequency(&self, value: u64) -> Result<()>
pub async fn set_rx_lo_frequency(&self, value: u64) -> Result<()>
Sets the value of the rx_lo_frequency
IIO attribute.
sourcepub async fn get_tx_lo_frequency(&self) -> Result<u64>
pub async fn get_tx_lo_frequency(&self) -> Result<u64>
Returns the value of the tx_lo_frequency
IIO attribute.
sourcepub async fn set_tx_lo_frequency(&self, value: u64) -> Result<()>
pub async fn set_tx_lo_frequency(&self, value: u64) -> Result<()>
Sets the value of the tx_lo_frequency
IIO attribute.
sourcepub async fn get_rx_gain(&self) -> Result<f64>
pub async fn get_rx_gain(&self) -> Result<f64>
Returns the value of the rx_gain
IIO attribute.
sourcepub async fn set_rx_gain(&self, value: f64) -> Result<()>
pub async fn set_rx_gain(&self, value: f64) -> Result<()>
Sets the value of the rx_gain
IIO attribute.
sourcepub async fn get_tx_gain(&self) -> Result<f64>
pub async fn get_tx_gain(&self) -> Result<f64>
Returns the value of the tx_gain
IIO attribute.
sourcepub async fn set_tx_gain(&self, value: f64) -> Result<()>
pub async fn set_tx_gain(&self, value: f64) -> Result<()>
Sets the value of the tx_gain
IIO attribute.
sourcepub async fn get_rx_gain_mode(&self) -> Result<Ad9361GainMode>
pub async fn get_rx_gain_mode(&self) -> Result<Ad9361GainMode>
Returns the value of the rx_gain_mode
IIO attribute.
sourcepub async fn set_rx_gain_mode(&self, value: Ad9361GainMode) -> Result<()>
pub async fn set_rx_gain_mode(&self, value: Ad9361GainMode) -> Result<()>
Sets the value of the rx_gain_mode
IIO attribute.