Embedded Artistry Framework
Embedded Systems C++ Framework
Classes | Namespaces | Typedefs | Enumerations
timer.hpp File Reference
#include "driver.hpp"
#include <chrono>
#include <inplace_function/inplace_function.hpp>
Include dependency graph for timer.hpp:
This graph shows which files directly or indirectly include this file:

Classes

class  embvm::timer::Timer
 This class provides generic Timer interface definitions. More...
 

Namespaces

 embvm
 Embedded framework core interfaces, classes, and definitions.
 
 embvm::timer
 Definitions, functions, and classes related to Timer devices.
 

Typedefs

using embvm::timer::freq_hz_t = std::chrono::duration< uint64_t, std::ratio< 1 > >
 Represents the frequency of the timer, in Hz. More...
 
using embvm::timer::timer_period_t = std::chrono::duration< uint64_t, std::micro >
 Represents the period of the timer, in microseconds. More...
 
using embvm::timer::cb_t = stdext::inplace_function< void(void)>
 Alias for timer callback functions. More...
 

Enumerations

enum  embvm::timer::config : uint8_t { embvm::timer::config::oneshot = 0, embvm::timer::config::periodic }
 Configuration for the timer. More...
 
enum  embvm::timer::state : uint8_t { embvm::timer::state::stopped = 0, embvm::timer::state::expired, embvm::timer::state::armed }
 Possible timer states. More...