pub enum GpsRadioMode {
Normal = 0,
GpsReceiver = 1,
}Expand description
GPS/Radio operating mode (GM command).
Controls whether the radio operates in normal transceiver mode or switches to GPS-receiver-only mode.
§Firmware verification
The cat_gm_handler at 0xC002EC52 guards with local_18 < 2,
confirming only values 0 and 1 are valid.
§Warning
Setting this to GpsReceiver (1) via GM 1\r reboots the radio
into GPS-only mode. The radio becomes unresponsive to CAT commands
until manually power-cycled back to normal mode.
Variants§
Normal = 0
Normal transceiver mode (index 0).
GpsReceiver = 1
GPS receiver mode (index 1) — reboots the radio.
Implementations§
Trait Implementations§
Source§impl Clone for GpsRadioMode
impl Clone for GpsRadioMode
Source§fn clone(&self) -> GpsRadioMode
fn clone(&self) -> GpsRadioMode
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 GpsRadioMode
impl Debug for GpsRadioMode
Source§impl Display for GpsRadioMode
impl Display for GpsRadioMode
Source§impl From<GpsRadioMode> for u8
impl From<GpsRadioMode> for u8
Source§fn from(mode: GpsRadioMode) -> Self
fn from(mode: GpsRadioMode) -> Self
Converts to this type from the input type.
Source§impl Hash for GpsRadioMode
impl Hash for GpsRadioMode
Source§impl PartialEq for GpsRadioMode
impl PartialEq for GpsRadioMode
Source§impl TryFrom<u8> for GpsRadioMode
impl TryFrom<u8> for GpsRadioMode
impl Copy for GpsRadioMode
impl Eq for GpsRadioMode
impl StructuralPartialEq for GpsRadioMode
Auto Trait Implementations§
impl Freeze for GpsRadioMode
impl RefUnwindSafe for GpsRadioMode
impl Send for GpsRadioMode
impl Sync for GpsRadioMode
impl Unpin for GpsRadioMode
impl UnwindSafe for GpsRadioMode
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