Skip to main content

CpuInterrupt

Enum CpuInterrupt 

Source
#[repr(u32)]
pub enum CpuInterrupt {
Show 24 variants Interrupt0LevelPriority1 = 0, Interrupt1LevelPriority1 = 1, Interrupt2LevelPriority1 = 2, Interrupt3LevelPriority1 = 3, Interrupt4LevelPriority1 = 4, Interrupt5LevelPriority1 = 5, Interrupt6Timer0Priority1 = 6, Interrupt7SoftwarePriority1 = 7, Interrupt8LevelPriority1 = 8, Interrupt9LevelPriority1 = 9, Interrupt10EdgePriority1 = 10, Interrupt11ProfilingPriority3 = 11, Interrupt12LevelPriority1 = 12, Interrupt13LevelPriority1 = 13, Interrupt15Timer1Priority3 = 15, Interrupt17LevelPriority1 = 17, Interrupt18LevelPriority1 = 18, Interrupt19LevelPriority2 = 19, Interrupt20LevelPriority2 = 20, Interrupt21LevelPriority2 = 21, Interrupt22EdgePriority3 = 22, Interrupt23LevelPriority3 = 23, Interrupt27LevelPriority3 = 27, Interrupt29SoftwarePriority3 = 29,
}
Available on crate feature unstable only.
Expand description

Enumeration of available CPU interrupts

It’s possible to create one handler per priority level. (e.g level1_interrupt)

§Stability

This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

Variants§

§

Interrupt0LevelPriority1 = 0

Level-triggered interrupt with priority 1.

§

Interrupt1LevelPriority1 = 1

Level-triggered interrupt with priority 1.

§

Interrupt2LevelPriority1 = 2

Level-triggered interrupt with priority 1.

§

Interrupt3LevelPriority1 = 3

Level-triggered interrupt with priority 1.

§

Interrupt4LevelPriority1 = 4

Level-triggered interrupt with priority 1.

§

Interrupt5LevelPriority1 = 5

Level-triggered interrupt with priority 1.

§

Interrupt6Timer0Priority1 = 6

Timer 0 interrupt with priority 1.

§

Interrupt7SoftwarePriority1 = 7

Software-triggered interrupt with priority 1.

§

Interrupt8LevelPriority1 = 8

Level-triggered interrupt with priority 1.

§

Interrupt9LevelPriority1 = 9

Level-triggered interrupt with priority 1.

§

Interrupt10EdgePriority1 = 10

Edge-triggered interrupt with priority 1.

§

Interrupt11ProfilingPriority3 = 11

Profiling-related interrupt with priority 3.

§

Interrupt12LevelPriority1 = 12

Level-triggered interrupt with priority 1.

§

Interrupt13LevelPriority1 = 13

Level-triggered interrupt with priority 1.

§

Interrupt15Timer1Priority3 = 15

Timer 1 interrupt with priority 3.

§

Interrupt17LevelPriority1 = 17

Level-triggered interrupt with priority 1.

§

Interrupt18LevelPriority1 = 18

Level-triggered interrupt with priority 1.

§

Interrupt19LevelPriority2 = 19

Level-triggered interrupt with priority 2.

§

Interrupt20LevelPriority2 = 20

Level-triggered interrupt with priority 2.

§

Interrupt21LevelPriority2 = 21

Level-triggered interrupt with priority 2.

§

Interrupt22EdgePriority3 = 22

Edge-triggered interrupt with priority 3.

§

Interrupt23LevelPriority3 = 23

Level-triggered interrupt with priority 3.

§

Interrupt27LevelPriority3 = 27

Level-triggered interrupt with priority 3.

§

Interrupt29SoftwarePriority3 = 29

Software-triggered interrupt with priority 3.

Implementations§

Source§

impl CpuInterrupt

Source

pub fn enable(self)

Enable the CPU interrupt

§Stability

This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

Source

pub fn clear(self)

Clear the CPU interrupt status bit

§Stability

This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

Source

pub fn priority(self) -> Priority

Get interrupt priority for the CPU

§Stability

This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

Trait Implementations§

Source§

impl Clone for CpuInterrupt

Source§

fn clone(&self) -> CpuInterrupt

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CpuInterrupt

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Copy for CpuInterrupt

Auto Trait Implementations§

§

impl Freeze for CpuInterrupt

§

impl RefUnwindSafe for CpuInterrupt

§

impl Send for CpuInterrupt

§

impl Sync for CpuInterrupt

§

impl Unpin for CpuInterrupt

§

impl UnsafeUnpin for CpuInterrupt

§

impl UnwindSafe for CpuInterrupt

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

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> Same for T

Source§

type Output = T

Should always be Self
§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.