Enum PriorityClass

Source
pub enum PriorityClass {
Show 15 variants PriorityClass1 = 1, PriorityClass2 = 2, PriorityClass3 = 3, PriorityClass4 = 4, PriorityClass5 = 5, PriorityClass6 = 6, PriorityClass7 = 7, PriorityClass8 = 8, PriorityClass9 = 9, PriorityClass10 = 10, PriorityClass11 = 11, PriorityClass12 = 12, PriorityClass13 = 13, PriorityClass14 = 14, PriorityClass15 = 15,
}
Expand description

A priority class for an interrupt. Loading CR8 with a priority class blocks all interrupts of that class or lower. Note that 0 is not a priority class, if CR8 contains 0, all interrupts are enabled regardless of their priority class.

Variants§

§

PriorityClass1 = 1

Priority class 1

§

PriorityClass2 = 2

Priority class 2

§

PriorityClass3 = 3

Priority class 3

§

PriorityClass4 = 4

Priority class 4

§

PriorityClass5 = 5

Priority class 5

§

PriorityClass6 = 6

Priority class 6

§

PriorityClass7 = 7

Priority class 7

§

PriorityClass8 = 8

Priority class 8

§

PriorityClass9 = 9

Priority class 9

§

PriorityClass10 = 10

Priority class 10

§

PriorityClass11 = 11

Priority class 11

§

PriorityClass12 = 12

Priority class 12

§

PriorityClass13 = 13

Priority class 13

§

PriorityClass14 = 14

Priority class 14

§

PriorityClass15 = 15

Priority class 15

Implementations§

Source§

impl PriorityClass

Source

pub const fn new(priority_class: u8) -> Option<Self>

Convert a number into a priority class

Trait Implementations§

Source§

impl Debug for PriorityClass

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.