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,
}
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
Returns the u8 value of the channel, which is the IEEE 802.15.4 channel
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 ==
.source§impl TryFrom<u8> for RadioChannel
impl TryFrom<u8> 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