pub enum Bandwidth {
Khz125,
Khz250,
}Expand description
How wide the receiver listens.
Variants§
Implementations§
Source§impl Bandwidth
impl Bandwidth
Sourcepub const fn byte(self) -> u8
pub const fn byte(self) -> u8
The byte that selects this width.
§Returns
The value the modulation command takes. The receiver is wider than the channel it covers, because it is measuring a level rather than decoding anything.
§Examples
use pamoja_radios::sx1302::sx1261::Bandwidth;
assert_eq!(Bandwidth::Khz125.byte(), 0x0a);
assert_eq!(Bandwidth::Khz250.byte(), 0x09);Trait Implementations§
impl Copy for Bandwidth
impl Eq for Bandwidth
impl StructuralPartialEq for Bandwidth
Auto Trait Implementations§
impl Freeze for Bandwidth
impl RefUnwindSafe for Bandwidth
impl Send for Bandwidth
impl Sync for Bandwidth
impl Unpin for Bandwidth
impl UnsafeUnpin for Bandwidth
impl UnwindSafe for Bandwidth
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