Crate svd_parser
source ·Expand description
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
Parse traits. These support parsing of SVD types from XML
Re-exports
pub use svd_rs as svd;
Modules
- SVD Element Extensions. This module is extends roxmltree::Element objects with convenience methods
- Shared primitive types for use in SVD objects.
Structs
- Advanced parser options
Enums
- SVD parse Errors.
- Level of validation
Traits
- Provides the
context
method forResult
. - Parse trait allows SVD objects to be parsed from XML elements.
Functions
- Parses an optional child element with the provided name and Parse function Returns an none if the child doesn’t exist, Ok(Some(e)) if parsing succeeds, and Err() if parsing fails.
- Parses the contents of an SVD (XML) string
- Parses the contents of an SVD (XML) string