Expand description
This crate includes functionality to parse Device Tree Source files into a tree structure and then manipulate that tree structure.
The main parsing function is parser::parse_dt
. The structures that make
up the returned tree are found in the tree
module. Finally, functions to
parse includes and manipulate the information gleaned from include
statements can be found in the include
module.
Modules§
- This module includes functions and structures that deal with the parsing and execution of Device Tree
/include/
statements as well as the mapping from the global buffer returned byinclude_files
back to the original file. - This module’s main focus is
parse_dt
which parses a DTS file and returns an unflattened device tree. - Contains the structures that represent the device tree.
Enums§
- Various errors that can occur why parsing.
Functions§
- Returns the line and column of the character at the offset within the iterator.
- Returns the byte offset of the starting character of line within the iterator.