Crate svd_parser[][src]

CMSIS-SVD file parser

Usage

use svd_parser as svd;

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

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

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

References

Re-exports

pub use svd::*;

Modules

elementext

SVD Element Extensions. This module is extends xmltree::Element objects with convenience methods

encode

Encode traits. These support encoding of SVD types to XML

error

SVD Errors. This module defines error types and messages for SVD parsing and encoding

parse

Parse traits. These support parsing of SVD types from XML

svd

SVD objects. This module defines components of an SVD along with parse and encode implementations

types

Shared primitive types for use in SVD objects.

Functions

encode

Encodes a device object to an SVD (XML) string

parse

Parses the contents of an SVD (XML) string