pub enum RampTime {
Us10,
Us20,
Us40,
Us80,
Us200,
Us800,
Us1700,
Us3400,
}Expand description
How long the power amplifier takes to ramp up, from Table 13-41.
Variants§
Us10
10 us (0x00).
Us20
20 us (0x01).
Us40
40 us (0x02).
Us80
80 us (0x03).
Us200
200 us (0x04).
Us800
800 us (0x05).
Us1700
1700 us (0x06).
Us3400
3400 us (0x07).
Implementations§
Source§impl RampTime
impl RampTime
Sourcepub const fn at_least(micros: u32) -> RampTime
pub const fn at_least(micros: u32) -> RampTime
Returns the shortest ramp time that lasts at least a duration.
§Arguments
micros- the least ramp time wanted, in microseconds; past 3400 us, the longest ramp the chip offers.
§Returns
The ramp time.
§Examples
use pamoja_radios::sx126x::config::RampTime;
assert_eq!(RampTime::at_least(40), RampTime::Us40);
assert_eq!(RampTime::at_least(100), RampTime::Us200);
assert_eq!(RampTime::at_least(5_000).micros(), 3_400);Trait Implementations§
impl Copy for RampTime
impl Eq for RampTime
impl StructuralPartialEq for RampTime
Auto Trait Implementations§
impl Freeze for RampTime
impl RefUnwindSafe for RampTime
impl Send for RampTime
impl Sync for RampTime
impl Unpin for RampTime
impl UnsafeUnpin for RampTime
impl UnwindSafe for RampTime
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