Struct svd_rs::interrupt::Interrupt [−][src]
#[non_exhaustive]pub struct Interrupt {
pub name: String,
pub description: Option<String>,
pub value: u32,
}
Expand description
Describes an interrupt in the device
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: String
The string represents the interrupt name
description: Option<String>
The string describes the interrupt
value: u32
Represents the enumeration index value associated to the interrupt
Implementations
Make a builder for Interrupt
pub fn modify_from(
&mut self,
builder: InterruptBuilder,
lvl: ValidateLevel
) -> Result<(), SvdError>
pub fn modify_from(
&mut self,
builder: InterruptBuilder,
lvl: ValidateLevel
) -> Result<(), SvdError>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Interrupt
impl UnwindSafe for Interrupt
Blanket Implementations
Mutably borrows from an owned value. Read more