Pigweed
 
Loading...
Searching...
No Matches
pw::clock_tree::ClockMcuxpressoSelector< ElementType > Class Template Reference

#include <clock_tree.h>

Inheritance diagram for pw::clock_tree::ClockMcuxpressoSelector< ElementType >:
pw::clock_tree::DependentElement< ElementType >

Public Member Functions

constexpr ClockMcuxpressoSelector (ElementType &source, clock_attach_id_t selector_enable, clock_attach_id_t selector_disable)
 
- Public Member Functions inherited from pw::clock_tree::DependentElement< ElementType >
constexpr DependentElement (ElementType &source)
 Create a dependent clock tree element that depends on source.
 

Private Member Functions

Status DoEnable () final
 Enable selector.
 
Status DoDisable () final
 Disable selector.
 

Additional Inherited Members

- Protected Member Functions inherited from pw::clock_tree::DependentElement< ElementType >
Status UpdateSource (ElementType &new_source, bool permit_change_if_in_use)
 

Detailed Description

template<typename ElementType>
class pw::clock_tree::ClockMcuxpressoSelector< ElementType >

Class template implementing the clock selector element.

Template argument ElementType can be of class ElementBlocking or ElementNonBlockingCannotFail.

Constructor & Destructor Documentation

◆ ClockMcuxpressoSelector()

template<typename ElementType >
constexpr pw::clock_tree::ClockMcuxpressoSelector< ElementType >::ClockMcuxpressoSelector ( ElementType &  source,
clock_attach_id_t  selector_enable,
clock_attach_id_t  selector_disable 
)
inlineconstexpr

Constructor specifying the source clock and the selector value when the selector should get enabled, and the selector value when the selector should get disabled to save power.


The documentation for this class was generated from the following file: