fdt_parser/
interrupt.rs

1
2
3
4
5
6
7
8
9
10
11
use crate::node::Node;

pub struct InterruptController<'a> {
    pub node: Node<'a>,
}

impl<'a> InterruptController<'a> {
    pub fn interrupt_cells(&self) -> usize {
        self.node.find_property("#interrupt-cells").unwrap().u32() as _
    }
}