#[repr(C)]pub struct DevInfo {
pub id: u32,
pub mappable: bool,
pub baseaddr: usize,
pub size: usize,
pub num_interrupt: u8,
pub its: [InterruptInfo; 8],
pub num_ios: u8,
pub ios: [IoInfo; 8],
}Expand description
userspace oriented device definition
Fields§
§id: u32§mappable: boolmappable device. Direct-IO (LED…) are not
baseaddr: usizefor mappable devices, base address
size: usizefor mappable devices, mapped size */\n/**<\n number of device’s interrupt. Can be EXTI (button) or NVIC interrupts (SoC device)
num_interrupt: u8number of device interrupts
its: [InterruptInfo; 8]device interrupt list
num_ios: u8number of device I/O (pinmux)
ios: [IoInfo; 8]device I/O list
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DevInfo
impl RefUnwindSafe for DevInfo
impl Send for DevInfo
impl Sync for DevInfo
impl Unpin for DevInfo
impl UnwindSafe for DevInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more