Pigweed
C/C++ API Reference
|
Public Member Functions | |
constexpr | ClockDivider (Element &element) |
virtual Status | Set (uint32_t divider)=0 |
Element & | element () const |
Return the element implementing this interface. | |
Abstract class of the clock divider specific interface.
The clock divider interface allows APIs to accept a ClockDivider
element, if they want to use the ClockTree
's SetDividerValue
method. They can use the element
method to call the ClockTree
's Acquire
and Release
methods.
|
pure virtual |
Set divider
value.
The divider
value will get updated as part of this method if the clock divider is currently active, otherwise the new divider value will be configured when the clock divider gets enabled next.
Implemented in pw::clock_tree::ClockDividerElement< ElementType >.