class PropertyValue
Defined at line 450 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
See
https://devicetree-specification.readthedocs.io/en/v0.3/devicetree-basics.html#property-values
for the types and representations of possible property values.
Public Methods
std::optional<uint32_t> AsUint32 ()
Defined at line 92 of file ../../zircon/kernel/lib/devicetree/devicetree.cc
std::optional<uint64_t> AsUint64 ()
Defined at line 99 of file ../../zircon/kernel/lib/devicetree/devicetree.cc
void PropertyValue (ByteView bytes)
Defined at line 452 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
void PropertyValue (ByteView bytes)
Defined at line 452 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
void PropertyValue (ByteView bytes)
Defined at line 452 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
void PropertyValue (ByteView bytes)
Defined at line 452 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
ByteView AsBytes ()
Defined at line 454 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
std::optional<std::string_view> AsString ()
Defined at line 456 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
std::optional<StringList<>> AsStringList ()
Defined at line 470 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
std::optional<bool> AsBool ()
A value without size represents a Boolean property whose truthiness is a
function of the nature of the property's name and its presence in the tree.
Defined at line 484 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
std::optional<StatusProperty> AsStatus ()
Returns a valid `StatusProperty` or `std::nullopt` in case the provided string does not match
any known value.
Defined at line 493 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
std::optional<RegProperty> AsReg (const PropertyDecoder & decoder)
Given a device node's property decoder |decoder|, the property value is assumed
to be a property encoded array, to be interpreted as 'reg'.
The number of address cells and size cells are obtained from the parent, or if
not present they are assumed to be 2 for address cells or 1 for size cells.
See:
* 'reg'
https://devicetree-specification.readthedocs.io/en/v0.3/devicetree-basics.html#reg
* defaults:
https://devicetree-specification.readthedocs.io/en/v0.3/devicetree-basics.html#address-cells-and-size-cells
Defined at line 506 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h
std::optional<RangesProperty> AsRanges (const PropertyDecoder & decoder)
Attempts to parse the bytes a 'ranges' property. A ranges property consist of an array of
3-Tuples, the first element being the child bus address, then the parent bus address and the
length of the range last. The number of cells of each entry is obtained as follows:
* 'address-cells' for child bus address from decoder itself.
* 'address-cells' for parent bus address from decoder's parent.
* 'size-cells' for length from decoder itself.
See 'ranges'
https://devicetree-specification.readthedocs.io/en/v0.3/devicetree-basics.html#ranges
Defined at line 519 of file ../../zircon/kernel/lib/devicetree/include/lib/devicetree/devicetree.h