svd-generator 0.6.0

Converts device information from flattened device tree into an SVD description
Documentation
mod peripheral;
mod register;

pub use peripheral::*;
pub use register::*;

/// Represents an SVD device description.
pub struct Svd {
    device: svd::Device,
}

impl Svd {
    /// Gets a reference to the inner SVD top-level [`Device`](svd::Device).
    pub const fn device(&self) -> &svd::Device {
        &self.device
    }

    /// Gets a mutable reference to the inner SVD top-level [`Device`](svd::Device).
    pub fn device_mut(&mut self) -> &svd::Device {
        &mut self.device
    }
}