pub enum PowerAmplifier {
LowPower,
HighPower,
}Expand description
Which power amplifier a chip has.
Variants§
LowPower
The low power amplifier of the SX1261, up to +15 dBm.
HighPower
The high power amplifier of the SX1262 and the LLCC68, up to +22 dBm.
Implementations§
Source§impl PowerAmplifier
impl PowerAmplifier
Sourcepub const fn setting_range_dbm(self) -> (i8, i8)
pub const fn setting_range_dbm(self) -> (i8, i8)
Returns the output power range SetTxParams accepts, from section 13.4.4.
§Returns
The lowest and highest settings in dBm: -17 to +14 for the low power amplifier and -9 to +22 for the high power one.
Trait Implementations§
Source§impl Clone for PowerAmplifier
impl Clone for PowerAmplifier
Source§fn clone(&self) -> PowerAmplifier
fn clone(&self) -> PowerAmplifier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PowerAmplifier
Source§impl Debug for PowerAmplifier
impl Debug for PowerAmplifier
impl Eq for PowerAmplifier
Source§impl Hash for PowerAmplifier
impl Hash for PowerAmplifier
Source§impl PartialEq for PowerAmplifier
impl PartialEq for PowerAmplifier
Source§fn eq(&self, other: &PowerAmplifier) -> bool
fn eq(&self, other: &PowerAmplifier) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PowerAmplifier
Auto Trait Implementations§
impl Freeze for PowerAmplifier
impl RefUnwindSafe for PowerAmplifier
impl Send for PowerAmplifier
impl Sync for PowerAmplifier
impl Unpin for PowerAmplifier
impl UnsafeUnpin for PowerAmplifier
impl UnwindSafe for PowerAmplifier
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