Timer1Clock< clkdiv > Struct Template Reference
Clock implementation for Hardware Timer 1. More...
#include <Clocks.h>
Inheritance diagram for Timer1Clock< clkdiv >:
Collaboration diagram for Timer1Clock< clkdiv >:
Static Public Member Functions | |
| static constexpr uint32_t | prescale () |
| static constexpr const char * | typeName () |
| static uint32_t | ticks () |
Static Public Member Functions inherited from NanoTime::Clock< Timer1Clock< clkdiv >, HW_TIMER_BASE_CLK/(1<< clkdiv), uint32_t, MAX_HW_TIMER1_INTERVAL > | |
| static constexpr const char * | typeName () |
| static constexpr uint32_t | frequency () |
| static constexpr MaxTicks | maxTicks () |
| static constexpr MaxTime< unit > | maxTime () |
| static Ratio32 | ticksPerUnit (Unit unit) |
| Get ticks per unit as a Ratio object. More... | |
| static constexpr TimeConst< unit, time > | timeConst () |
| Class template defining a fixed time quantity. More... | |
| static constexpr TicksConst< ticks > | ticksConst () |
| Class template defining a fixed tick quantity. More... | |
| static constexpr TimeSource< unit, TimeType > | timeSource () |
| Create a Time Source for this Clock. More... | |
| static Ticks< TimeType > | timeToTicks (TimeType time) |
| Get the number of ticks for a given time. More... | |
| static Time< TimeType > | ticksToTime (TimeType ticks) |
| Get the time for a given number of clock ticks. More... | |
| static String | toString () |
Additional Inherited Members | |
Public Types inherited from NanoTime::Clock< Timer1Clock< clkdiv >, HW_TIMER_BASE_CLK/(1<< clkdiv), uint32_t, MAX_HW_TIMER1_INTERVAL > | |
| using | TickType = uint32_t |
| using | TicksConst = TicksConst< Clock, ticks > |
| using | TimeConst = TimeConst< Clock, unit, time > |
| using | TicksPerUnit = std::ratio_divide< std::ratio< frequency_ >, UnitTickRatio< unit > > |
| using | TimeSource = TimeSource< Clock, unit, TimeType > |
| using | Ticks = Ticks< Clock, T > |
| using | MaxTicks = TicksConst< maxTicks_ > |
| using | MaxTime = typename MaxTicks::template TimeConst< unit > |
Detailed Description
template<hw_timer_clkdiv_t clkdiv>
struct Timer1Clock< clkdiv >
Clock implementation for Hardware Timer 1.
- Template Parameters
-
clkdiv Prescaler in use
Member Function Documentation
◆ prescale()
template<hw_timer_clkdiv_t clkdiv>
|
inlinestatic |
◆ ticks()
template<hw_timer_clkdiv_t clkdiv>
|
inlinestatic |
◆ typeName()
template<hw_timer_clkdiv_t clkdiv>
|
inlinestatic |
The documentation for this struct was generated from the following file:
Static Public Member Functions inherited from
1.8.13