Enum kernel::hil::radio::RadioChannel
source · 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
source§fn eq(&self, other: &RadioChannel) -> bool
fn eq(&self, other: &RadioChannel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)