class Reference

Defined at line 167 of file ../../sdk/lib/driver/devicetree/visitors/property-parser.h

A handle to a reference property. It consists of the referenced node and the property cells if

any.

Public Methods

void Reference (ReferenceNode node, PropertyCells cells)

Defined at line 169 of file ../../sdk/lib/driver/devicetree/visitors/property-parser.h

ReferenceNode & reference_node ()

Returns the referenced devicetree node.

For example, in the devicetree fragment:

interrupt-parent =

<

&intc

>;

this would return the node object for `intc`.

Defined at line 177 of file ../../sdk/lib/driver/devicetree/visitors/property-parser.h

PropertyCells property_cells ()

Returns the property cells associated with the reference. These are the

arguments that qualify the reference.

For example, in the devicetree fragment:

gpios =

<

&gpio

1 1 8>,

<

&gpio

2 2 8 7>;

For the first reference, `property_cells()` would return a view of

the bytes corresponding to `{1, 8}`.

For the second reference, `property_cells()` would return a view of

the bytes corresponding to `{2, 8, 7}`.

Defined at line 190 of file ../../sdk/lib/driver/devicetree/visitors/property-parser.h