pub enum RadioChannel {
Show 16 variants
Channel11 = 5,
Channel12 = 10,
Channel13 = 15,
Channel14 = 20,
Channel15 = 25,
Channel16 = 30,
Channel17 = 35,
Channel18 = 40,
Channel19 = 45,
Channel20 = 50,
Channel21 = 55,
Channel22 = 60,
Channel23 = 65,
Channel24 = 70,
Channel25 = 75,
Channel26 = 80,
}
Expand description
IEEE 802.15.4 valid channels.
Variants§
Channel11 = 5
Channel12 = 10
Channel13 = 15
Channel14 = 20
Channel15 = 25
Channel16 = 30
Channel17 = 35
Channel18 = 40
Channel19 = 45
Channel20 = 50
Channel21 = 55
Channel22 = 60
Channel23 = 65
Channel24 = 70
Channel25 = 75
Channel26 = 80
Implementations§
Source§impl RadioChannel
impl RadioChannel
Sourcepub fn get_channel_number(&self) -> u8
pub fn get_channel_number(&self) -> u8
Get the IEEE 802.15.4 channel number for the RadioChannel
.
§Return
A 1 byte number corresponding to the channel number.
Trait Implementations§
Source§impl Clone for RadioChannel
impl Clone for RadioChannel
Source§fn clone(&self) -> RadioChannel
fn clone(&self) -> RadioChannel
Returns a copy 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 RadioChannel
impl Debug for RadioChannel
Source§impl PartialEq for RadioChannel
impl PartialEq for RadioChannel
impl Copy for RadioChannel
impl StructuralPartialEq for RadioChannel
Auto Trait Implementations§
impl Freeze for RadioChannel
impl RefUnwindSafe for RadioChannel
impl Send for RadioChannel
impl Sync for RadioChannel
impl Unpin for RadioChannel
impl UnwindSafe for RadioChannel
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