class BaseClock
Defined at line 20 of file ../../src/devices/clock/lib/clocktree/include/baseclock.h
BaseClock is a base class that clock implementers should inherit from to implement
various clock types.
The Tree class accepts an array of BaseClock*s which represent a clock tree.
See `clocktree-test.cc` for example usage.
Public Methods
void BaseClock (const char * name, const uint32_t id)
Defined at line 22 of file ../../src/devices/clock/lib/clocktree/include/baseclock.h
zx_status_t Enable ()
Clock Gating Control.
zx_status_t Disable ()
zx_status_t IsHwEnabled (bool * out)
zx_status_t IsEnabled (bool * out)
Defined at line 15 of file ../../src/devices/clock/lib/clocktree/baseclock.cc
zx_status_t SetRate (const Hertz rate, const Hertz parent_rate)
Clock frequency control.
zx_status_t QuerySupportedRate (const Hertz max, const Hertz parent_rate, Hertz * out)
zx_status_t GetRate (const Hertz parent_rate, Hertz * out)
zx_status_t SetInput (const uint32_t index)
Clock Mux Control.
zx_status_t GetNumInputs (uint32_t * out)
zx_status_t GetInput (uint32_t * out)
zx_status_t GetInputId (const uint32_t index, uint32_t * id)
void ~BaseClock ()
Defined at line 23 of file ../../src/devices/clock/lib/clocktree/include/baseclock.h
const char * Name ()
Accessors.
Defined at line 42 of file ../../src/devices/clock/lib/clocktree/include/baseclock.h
uint32_t Id ()
Defined at line 43 of file ../../src/devices/clock/lib/clocktree/include/baseclock.h
uint32_t EnableCount ()
Defined at line 45 of file ../../src/devices/clock/lib/clocktree/include/baseclock.h
uint32_t ParentId ()
void SetEnableCount (uint32_t enable_count)
Defined at line 46 of file ../../src/devices/clock/lib/clocktree/include/baseclock.h