pub enum HpsdrHw {
Hermes,
HermesLite,
}Expand description
Hardware identity of the radio. The crate targets two boards: the original Hermes and the Hermes Lite 2. Filter, attenuator, and PA wiring differ; the enum dispatches the variant-specific control bytes.
Variants§
Implementations§
Source§impl HpsdrHw
impl HpsdrHw
Sourcepub fn from_p1_code(code: u8) -> Option<Self>
pub fn from_p1_code(code: u8) -> Option<Self>
Decode a Protocol 1 device-type code. Returns None for codes that
don’t map to a supported board.
Sourcepub fn from_name(name: &str) -> Option<Self>
pub fn from_name(name: &str) -> Option<Self>
Decode a CLI / config name like “hermes” or “hermeslite”
(case-insensitive). hermeslite2 is accepted as a synonym for
HermesLite.
Sourcepub fn max_ddcs(self) -> u8
pub fn max_ddcs(self) -> u8
Maximum number of DDC (digital down-converter) channels this board supports.
Sourcepub fn rx_meter_cal_offset(self) -> f64
pub fn rx_meter_cal_offset(self) -> f64
Default RX meter calibration offset: dBm = dBFS + offset. Accounts for the ADC full-scale reference and typical front-end gain. Based on Thetis/deskHPSDR calibration values.
Trait Implementations§
impl Copy for HpsdrHw
impl Eq for HpsdrHw
impl StructuralPartialEq for HpsdrHw
Auto Trait Implementations§
impl Freeze for HpsdrHw
impl RefUnwindSafe for HpsdrHw
impl Send for HpsdrHw
impl Sync for HpsdrHw
impl Unpin for HpsdrHw
impl UnsafeUnpin for HpsdrHw
impl UnwindSafe for HpsdrHw
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