Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Node ¶
type Node struct {
Name string `json:"name"`
Properties map[string]Property `json:"properties,omitempty"`
Children []Node `json:"children,omitempty"`
}
Node describes a device-tree node using JSON-friendly structures.
type Property ¶
type Property struct {
Strings []string `json:"strings,omitempty"`
U32 []uint32 `json:"u32,omitempty"`
U64 []uint64 `json:"u64,omitempty"`
Bytes []byte `json:"bytes,omitempty"`
Flag bool `json:"flag,omitempty"`
}
Property describes a single device-tree property in a JSON-friendly form. Exactly one of the typed fields should be populated for a given property.
func (Property) DefinedCount ¶
DefinedCount reports how many distinct fields on the property are populated.
Click to show internal directories.
Click to hide internal directories.