pub struct Info<'a> { /* private fields */ }Expand description
Info-gathering operations for the HackRF.
Borrows the interface while doing operations.
Implementations§
Source§impl<'a> Info<'a>
impl<'a> Info<'a>
Sourcepub fn api_version(&self) -> u16
pub fn api_version(&self) -> u16
Get the device’s implemented API version, as a binary-coded decimal (BCD) value.
Sourcepub fn radio_type(&self) -> HackRfType
pub fn radio_type(&self) -> HackRfType
Get the type of HackRF radio.
Sourcepub async fn version_string(&self) -> Result<String, Error>
pub async fn version_string(&self) -> Result<String, Error>
Get the firmware version as a string.
Sourcepub async fn serial(&self) -> Result<SerialNumber, Error>
pub async fn serial(&self) -> Result<SerialNumber, Error>
Get the MCU’s serial numbers.
In the LP43xx documentation, this refers to the device unique ID and the part identification number.
See SerialNumber for more info.
Sourcepub async fn board_rev(&self) -> Result<BoardRev, Error>
pub async fn board_rev(&self) -> Result<BoardRev, Error>
Read the board’s revision number.
Requires API version 0x0106 or higher.
Sourcepub async fn supported_platform(&self) -> Result<SupportedPlatform, Error>
pub async fn supported_platform(&self) -> Result<SupportedPlatform, Error>
Read the platforms compatible with this board.
Requires API version 0x0106 or higher.
Auto Trait Implementations§
impl<'a> Freeze for Info<'a>
impl<'a> !RefUnwindSafe for Info<'a>
impl<'a> Send for Info<'a>
impl<'a> Sync for Info<'a>
impl<'a> Unpin for Info<'a>
impl<'a> !UnwindSafe for Info<'a>
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