Expand description
Get information about a HackRF board.
This module contains the Info struct for accessing information from the
HackRF, which can be used to get:
- The MCU’s serial number with Info::serial.
- The “compatible” platforms for a given board, with Info::supported_platform
- The board identifier, with Info::board_id
- The board revision, with Info::board_rev
The general way to do this with a HackRF is:
use waverave_hackrf::info::*;
let hackrf = waverave_hackrf::open_hackrf()?;
let info = hackrf.info();
let serial: SerialNumber = info.serial().await?;
let compatible: SupportedPlatform = info.supported_platform().await?;
let board_id: BoardId = info.board_id().await?;
let board_rev: BoardRev = info.board_rev().await?;
Structs§
- Info
- Info-gathering operations for the HackRF.
- Serial
Number - The MCU serial number.
- Supported
Platform - Compatible platforms for this board.