#[repr(transparent)]struct TaskPrio(u32);
Expand description
Task Priority Register, R/W
Tuple Fields§
§0: u32
Implementations§
source§impl TaskPrio
impl TaskPrio
const TASK_PRIO_SUB_BITS: usize = 4usize
const TASK_PRIO_SUB_OFFSET: usize = 0usize
const TASK_PRIO_BITS: usize = 4usize
const TASK_PRIO_OFFSET: usize = 4usize
sourceconst fn task_prio_sub(&self) -> u8
const fn task_prio_sub(&self) -> u8
Bits: 0..4
sourceconst fn with_task_prio_sub_checked(self, value: u8) -> Result<Self, ()>
const fn with_task_prio_sub_checked(self, value: u8) -> Result<Self, ()>
Bits: 0..4
sourceconst fn with_task_prio_sub(self, value: u8) -> Self
const fn with_task_prio_sub(self, value: u8) -> Self
Bits: 0..4
sourcefn set_task_prio_sub(&mut self, value: u8)
fn set_task_prio_sub(&mut self, value: u8)
Bits: 0..4
sourcefn set_task_prio_sub_checked(&mut self, value: u8) -> Result<(), ()>
fn set_task_prio_sub_checked(&mut self, value: u8) -> Result<(), ()>
Bits: 0..4
sourceconst fn with_task_prio_checked(self, value: u8) -> Result<Self, ()>
const fn with_task_prio_checked(self, value: u8) -> Result<Self, ()>
Bits: 4..8
sourceconst fn with_task_prio(self, value: u8) -> Self
const fn with_task_prio(self, value: u8) -> Self
Bits: 4..8
sourcefn set_task_prio(&mut self, value: u8)
fn set_task_prio(&mut self, value: u8)
Bits: 4..8
sourcefn set_task_prio_checked(&mut self, value: u8) -> Result<(), ()>
fn set_task_prio_checked(&mut self, value: u8) -> Result<(), ()>
Bits: 4..8
Trait Implementations§
impl Copy for TaskPrio
Auto Trait Implementations§
impl Freeze for TaskPrio
impl RefUnwindSafe for TaskPrio
impl Send for TaskPrio
impl Sync for TaskPrio
impl Unpin for TaskPrio
impl UnwindSafe for TaskPrio
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
)§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
§impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.