pub struct AfGainLevel(/* private fields */);Expand description
Audio frequency gain level.
Controls the volume output level. Used by the AG CAT command.
The wire format is a bare 3-digit zero-padded decimal (AG 015\r).
The write range is 0-99 per KI4LAX spec, but the radio’s read response can return values up to 255 when the volume knob is turned beyond the write-command range. The type accepts the full 0-255 range to avoid parse errors on hardware-observed values (e.g., AG 113).
Implementations§
Trait Implementations§
Source§impl Clone for AfGainLevel
impl Clone for AfGainLevel
Source§fn clone(&self) -> AfGainLevel
fn clone(&self) -> AfGainLevel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AfGainLevel
impl Debug for AfGainLevel
Source§impl Display for AfGainLevel
impl Display for AfGainLevel
Source§impl From<AfGainLevel> for u8
impl From<AfGainLevel> for u8
Source§fn from(level: AfGainLevel) -> Self
fn from(level: AfGainLevel) -> Self
Converts to this type from the input type.
Source§impl From<u8> for AfGainLevel
impl From<u8> for AfGainLevel
Source§impl Hash for AfGainLevel
impl Hash for AfGainLevel
Source§impl PartialEq for AfGainLevel
impl PartialEq for AfGainLevel
impl Copy for AfGainLevel
impl Eq for AfGainLevel
impl StructuralPartialEq for AfGainLevel
Auto Trait Implementations§
impl Freeze for AfGainLevel
impl RefUnwindSafe for AfGainLevel
impl Send for AfGainLevel
impl Sync for AfGainLevel
impl Unpin for AfGainLevel
impl UnwindSafe for AfGainLevel
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