zpp
Zephyr C++20 Framework
zpp::sync_timer Class Reference

timer class with no callbacks used for syncing only More...

#include <timer.hpp>

Inheritance diagram for zpp::sync_timer:
[legend]
Collaboration diagram for zpp::sync_timer:
[legend]

Public Member Functions

 sync_timer () noexcept
 constuctor for the sync timer More...
 
- Public Member Functions inherited from zpp::timer_base
 ~timer_base ()
 Destructor that stops the timer. More...
 
template<class T_Rep1 , class T_Period1 , class T_Rep2 , class T_Period2 >
void start (const std::chrono::duration< T_Rep1, T_Period1 > &duration, const std::chrono::duration< T_Rep2, T_Period2 > &period) noexcept
 Start a timer with duration and period. More...
 
template<class T_Rep , class T_Period >
void start (const std::chrono::duration< T_Rep, T_Period > &duration) noexcept
 Start a single shot timer with duration. More...
 
void stop () noexcept
 Stop the timer. More...
 
auto status () noexcept
 get the timer status More...
 
auto sync () noexcept
 sync with the timer More...
 
std::chrono::nanoseconds remaining_time () noexcept
 Get remaining time. More...
 
auto native_handle () noexcept
 Zephyr native handle. More...
 
 timer_base (const timer_base &)=delete
 
 timer_base (timer_base &&)=delete
 
timer_baseoperator= (const timer_base &)=delete
 
timer_baseoperator= (timer_base &&)=delete
 

Additional Inherited Members

- Protected Member Functions inherited from zpp::timer_base
 timer_base () noexcept
 

Detailed Description

timer class with no callbacks used for syncing only

Definition at line 215 of file timer.hpp.

Constructor & Destructor Documentation

◆ sync_timer()

zpp::sync_timer::sync_timer ( )
inlinenoexcept

constuctor for the sync timer

Definition at line 221 of file timer.hpp.

222  : timer_base()
223  {
224  k_timer_init(native_handle(), nullptr, nullptr);
225  }
timer_base() noexcept
Definition: timer.hpp:26
auto native_handle() noexcept
Zephyr native handle.
Definition: timer.hpp:108

References zpp::timer_base::native_handle().


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