pub enum CrossToneType {
DcsOff = 0,
ToneDcs = 1,
DcsCtcss = 2,
ToneCtcss = 3,
}Expand description
Cross-tone type as stored in flash memory byte 0x0E bits [5:4].
Determines how different tone/DCS codes are applied to TX vs RX when cross-tone mode is active.
Per User Manual Chapter 10: cross tone allows separate signaling
types for TX and RX when accessing a repeater that uses different
encode/decode signaling. Activated by pressing [TONE] 4 times.
| Value | Encode (TX) | Decode (RX) | Display icon |
|---|---|---|---|
| 0 | DCS | Off | D/O |
| 1 | Tone | DCS | T/D |
| 2 | DCS | CTCSS | D/C |
| 3 | Tone | CTCSS | T/C |
Variants§
DcsOff = 0
DCS encode (TX), Off decode (RX). Display: D/O (value 0).
ToneDcs = 1
Tone encode (TX), DCS decode (RX). Display: T/D (value 1).
DcsCtcss = 2
DCS encode (TX), CTCSS decode (RX). Display: D/C (value 2).
ToneCtcss = 3
Tone encode (TX), CTCSS decode (RX). Display: T/C (value 3).
Implementations§
Trait Implementations§
Source§impl Clone for CrossToneType
impl Clone for CrossToneType
Source§fn clone(&self) -> CrossToneType
fn clone(&self) -> CrossToneType
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 CrossToneType
impl Debug for CrossToneType
Source§impl From<CrossToneType> for u8
impl From<CrossToneType> for u8
Source§fn from(ct: CrossToneType) -> Self
fn from(ct: CrossToneType) -> Self
Converts to this type from the input type.
Source§impl Hash for CrossToneType
impl Hash for CrossToneType
Source§impl PartialEq for CrossToneType
impl PartialEq for CrossToneType
Source§impl TryFrom<u8> for CrossToneType
impl TryFrom<u8> for CrossToneType
impl Copy for CrossToneType
impl Eq for CrossToneType
impl StructuralPartialEq for CrossToneType
Auto Trait Implementations§
impl Freeze for CrossToneType
impl RefUnwindSafe for CrossToneType
impl Send for CrossToneType
impl Sync for CrossToneType
impl Unpin for CrossToneType
impl UnwindSafe for CrossToneType
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