pub struct Plic {
plic: PLIC,
}
Expand description
Platform-Level Interrupt Controller (PLIC) interface
Fields§
§plic: PLIC
Implementations§
source§impl Plic
impl Plic
sourcepub unsafe fn summon() -> Self
pub unsafe fn summon() -> Self
Obtain a static Plic
instance for use in e.g. interrupt handlers
Safety
’Tis thine responsibility, that which thou doth summon.
sourcepub unsafe fn set_priority(&self, interrupt: Interrupt, priority: Priority)
pub unsafe fn set_priority(&self, interrupt: Interrupt, priority: Priority)
pub fn claim(&self) -> Interrupt
pub fn complete(&self, interrupt: Interrupt)
pub unsafe fn register(&self, interrupt: Interrupt, new_hdl: fn())
pub unsafe fn activate( &self, interrupt: Interrupt, prio: Priority ) -> Result<(), ()>
pub fn deactivate(&self, interrupt: Interrupt) -> Result<(), ()>
Auto Trait Implementations§
impl RefUnwindSafe for Plic
impl Send for Plic
impl !Sync for Plic
impl Unpin for Plic
impl UnwindSafe for Plic
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