svd-generator 0.7.0

Converts device information from flattened device tree into an SVD description
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::CdnsUsb3Offsets;
use crate::Result;

pub mod device;
pub mod otg;
pub mod xhci;

/// Creates Cadence USB3 register definitions.
pub fn create(offsets: CdnsUsb3Offsets) -> Result<Vec<svd::RegisterCluster>> {
    Ok([
        otg::create(offsets.otg)?,
        xhci::create(offsets.xhci)?,
        device::create(offsets.dev)?,
    ]
    .into())
}