pub enum PhyOp {
Show,
On,
Off,
Freq {
khz: u32,
},
Sf {
sf: u8,
},
Bw {
hz: u32,
},
Cr {
cr: u8,
},
Power {
dbm: i8,
},
}Variants§
Show
Print the enable state and LoRa parameters.
On
Enable the radio.
Off
Disable the radio.
Freq
Set the frequency in kHz.
Sf
Set the LoRa spreading factor.
Bw
Set the LoRa bandwidth in Hz.
Cr
Set the LoRa coding-rate denominator (4/N).
Power
Set the transmit power in dBm.
Trait Implementations§
Source§impl FromArgMatches for PhyOp
impl FromArgMatches for PhyOp
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for PhyOp
impl Subcommand for PhyOp
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for PhyOp
impl RefUnwindSafe for PhyOp
impl Send for PhyOp
impl Sync for PhyOp
impl Unpin for PhyOp
impl UnwindSafe for PhyOp
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more