Struct r3::kernel::interrupt::InterruptLineDefiner
source · pub struct InterruptLineDefiner<System>where
System: KernelInterruptLine,{ /* private fields */ }
Expand description
The definer (static builder) for InterruptLine
.
Implementations§
source§impl<System> InterruptLineDefiner<System>where
System: KernelInterruptLine,
impl<System> InterruptLineDefiner<System>where System: KernelInterruptLine,
sourcepub const fn line(self, line: usize) -> InterruptLineDefiner<System>
pub const fn line(self, line: usize) -> InterruptLineDefiner<System>
[Required] Specify the interrupt line to confiigure.
sourcepub const fn priority(self, priority: i16) -> InterruptLineDefiner<System>
pub const fn priority(self, priority: i16) -> InterruptLineDefiner<System>
Specify the initial priority.
sourcepub const fn enabled(self, enabled: bool) -> InterruptLineDefiner<System>
pub const fn enabled(self, enabled: bool) -> InterruptLineDefiner<System>
Specify whether the interrupt linie should be enabled at system startup.
Defaults to false
(disabled).
sourcepub const fn finish<C>(self, cfg: &mut Cfg<'_, C>) -> InterruptLine<System>where
C: CfgInterruptLine<System = System>,
pub const fn finish<C>(self, cfg: &mut Cfg<'_, C>) -> InterruptLine<System>where C: CfgInterruptLine<System = System>,
Complete the configuration of an interrupt line, returning an
InterruptLine
object.