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