#include <clock_tree.h>
Public Member Functions | |
constexpr | ElementController (ClockTree *clock_tree=nullptr, Element *element=nullptr) |
Status | Acquire () |
Status | Release () |
Public Attributes | |
ClockTree * | clock_tree_ = nullptr |
Pointer to optional ClockTree object. | |
Element * | element_ = nullptr |
Pointer to optional Element object. | |
Helper class that allows drivers to accept optional clock tree information and streamline clock tree operations.
|
inlineconstexpr |
Create an element controller that accepts optional clock tree and element information.
|
inline |
Acquire a reference to the optional clock tree element.
If not both optional clock_tree and element pointers are non-null, the function just returns pw::OkStatus()
.
|
inline |
Release a reference to the optional clock tree element.
If not both optional clock_tree and element pointers are non-null, the function just returns pw::OkStatus()
.