pub enum MemoryMode {
Fm = 0,
Dv = 1,
Am = 2,
Lsb = 3,
Usb = 4,
Cw = 5,
Nfm = 6,
Dr = 7,
}Expand description
Operating mode as stored in the flash memory image.
This enum represents the mode encoding used in the MCP programming
memory (channel data byte 0x09 bits [6:4]). It differs from Mode
which represents the CAT wire format.
§Flash encoding
| Value | Mode |
|---|---|
| 0 | FM |
| 1 | DV (D-STAR digital voice) |
| 2 | AM |
| 3 | LSB (lower sideband) |
| 4 | USB (upper sideband) |
| 5 | CW (Morse code) |
| 6 | NFM (narrow FM) |
| 7 | DR (D-STAR repeater) |
§CAT encoding (for comparison)
The CAT protocol (FO/ME commands) uses a different mapping:
0=FM, 1=DV, 2=NFM, 3=AM. The memory image encoding adds LSB, USB,
CW, and DR modes that are not available via CAT.
Variants§
Fm = 0
FM modulation (flash value 0).
Dv = 1
D-STAR digital voice (flash value 1).
Am = 2
AM modulation (flash value 2).
Lsb = 3
Lower sideband (flash value 3).
Usb = 4
Upper sideband (flash value 4).
Cw = 5
CW / Morse code (flash value 5).
Nfm = 6
Narrow FM modulation (flash value 6).
Dr = 7
D-STAR repeater mode (flash value 7).
Implementations§
Trait Implementations§
Source§impl Clone for MemoryMode
impl Clone for MemoryMode
Source§fn clone(&self) -> MemoryMode
fn clone(&self) -> MemoryMode
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 MemoryMode
impl Debug for MemoryMode
Source§impl Display for MemoryMode
impl Display for MemoryMode
Source§impl From<MemoryMode> for u8
impl From<MemoryMode> for u8
Source§fn from(mode: MemoryMode) -> Self
fn from(mode: MemoryMode) -> Self
Converts to this type from the input type.
Source§impl Hash for MemoryMode
impl Hash for MemoryMode
Source§impl PartialEq for MemoryMode
impl PartialEq for MemoryMode
Source§impl TryFrom<u8> for MemoryMode
impl TryFrom<u8> for MemoryMode
impl Copy for MemoryMode
impl Eq for MemoryMode
impl StructuralPartialEq for MemoryMode
Auto Trait Implementations§
impl Freeze for MemoryMode
impl RefUnwindSafe for MemoryMode
impl Send for MemoryMode
impl Sync for MemoryMode
impl Unpin for MemoryMode
impl UnwindSafe for MemoryMode
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