Skip to content

Basic Devicetree Blob (also known as Flattened Devicetree) parser

Notifications You must be signed in to change notification settings

Kry10-NZ/k10_dtb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

K10.DTB

Basic Devicetree Blob (also known as Flattened Devicetree) parser

Basic usage

{:ok, tree} = K10.DTB.parse(@blob)
{:ok, uints} = K10.DTB.get_property(tree, ["node2", "child-node1", "uint32-property"])
{:ok, strings} = K10.DTB.get_property(tree, ["node1", "child-node1", "string_list"])

K10.DTB.as_uint32s!(uints) # [1, 2, 3, 4]
K10.DTB.as_strings!(strings) # ["first string", "second string"]

About

Basic Devicetree Blob (also known as Flattened Devicetree) parser

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages