1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/// Describes an interrupt in the device
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
#[derive(Clone, Debug, PartialEq)]
pub struct Interrupt {
/// The string represents the interrupt name
pub name: String,
/// The string describes the interrupt
#[cfg_attr(
feature = "serde",
serde(default, skip_serializing_if = "Option::is_none")
)]
pub description: Option<String>,
/// Represents the enumeration index value associated to the interrupt
pub value: u32,
}