Crate svd_parser [] [src]

CMSIS-SVD file parser

Usage

extern crate svd_parser as svd;

use std::fs::File;
use std::io::Read;

fn main() {
    let xml = &mut String::new();
    File::open("STM32F30x.svd").unwrap().read_to_string(xml);

    println!("{:?}", svd::parse(xml));
}

References

Structs

BitRange
ClusterInfo
Cpu
Defaults

Register default properties

Device
EnumeratedValue
EnumeratedValues
Field
Interrupt
Peripheral
RegisterClusterArrayInfo
RegisterInfo
WriteConstraintRange

Enums

Access
Cluster
Endian
Register
Usage
WriteConstraint

Functions

parse

Parses the contents of a SVD file (XML)