Skip to main content

InterruptOps

Trait InterruptOps 

Source
pub trait InterruptOps {
    // Required methods
    fn enable(&mut self, irq: u32) -> RvmResult<()>;
    fn disable(&mut self, irq: u32) -> RvmResult<()>;
    fn acknowledge(&mut self) -> Option<u32>;
    fn end_of_interrupt(&mut self, irq: u32);
}
Expand description

Interrupt controller operations.

Required Methods§

Source

fn enable(&mut self, irq: u32) -> RvmResult<()>

Enable the interrupt with the given ID.

§Errors

Returns an error if the interrupt ID is invalid.

Source

fn disable(&mut self, irq: u32) -> RvmResult<()>

Disable the interrupt with the given ID.

§Errors

Returns an error if the interrupt ID is invalid.

Source

fn acknowledge(&mut self) -> Option<u32>

Acknowledge the interrupt and return its ID, or None if spurious.

Source

fn end_of_interrupt(&mut self, irq: u32)

Signal end-of-interrupt for the given ID.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§