pub struct SquelchLevel(/* private fields */);Expand description
Squelch threshold level (0-6).
0 = open (no squelch), 6 = maximum squelch. Used by the SQ CAT command.
Squelch can be set independently for Band A and Band B.
Per User Manual Chapter 5: the squelch mutes the speaker when no signals
are present. The higher the level, the stronger the signal must be to
open squelch. Adjust with [F], [MONI] on the radio.
Implementations§
Source§impl SquelchLevel
impl SquelchLevel
Sourcepub const fn new(value: u8) -> Result<Self, ValidationError>
pub const fn new(value: u8) -> Result<Self, ValidationError>
Creates a new SquelchLevel from a raw value.
§Errors
Returns ValidationError::SettingOutOfRange if value > 6.
Trait Implementations§
Source§impl Clone for SquelchLevel
impl Clone for SquelchLevel
Source§fn clone(&self) -> SquelchLevel
fn clone(&self) -> SquelchLevel
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 SquelchLevel
impl Debug for SquelchLevel
Source§impl Display for SquelchLevel
impl Display for SquelchLevel
Source§impl From<SquelchLevel> for u8
impl From<SquelchLevel> for u8
Source§fn from(level: SquelchLevel) -> Self
fn from(level: SquelchLevel) -> Self
Converts to this type from the input type.
Source§impl Hash for SquelchLevel
impl Hash for SquelchLevel
Source§impl PartialEq for SquelchLevel
impl PartialEq for SquelchLevel
Source§impl TryFrom<u8> for SquelchLevel
impl TryFrom<u8> for SquelchLevel
impl Copy for SquelchLevel
impl Eq for SquelchLevel
impl StructuralPartialEq for SquelchLevel
Auto Trait Implementations§
impl Freeze for SquelchLevel
impl RefUnwindSafe for SquelchLevel
impl Send for SquelchLevel
impl Sync for SquelchLevel
impl Unpin for SquelchLevel
impl UnwindSafe for SquelchLevel
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