theCore C++ embedded framework
ecl::systmr Namespace Reference

Functions

void enable ()
 Enables timer, start counting. More...
 
void disable ()
 Disables timer, stop counting. More...
 
uint32_t speed ()
 Gets speed in which timer generate events. More...
 
uint32_t events ()
 Gets amount of events occurred so far. More...
 

Function Documentation

◆ enable()

void ecl::systmr::enable ( )

Enables timer, start counting.

◆ disable()

void ecl::systmr::disable ( )

Disables timer, stop counting.

◆ speed()

uint32_t ecl::systmr::speed ( )

Gets speed in which timer generate events.

Each event generates interrupt, but not necessarily timer interrupt is passed to the user. In other words, each event will wake-up processor. Useful in conjunction with WFI.

Return values
Systemtimer events generation speed in Hz.

◆ events()

uint32_t ecl::systmr::events ( )

Gets amount of events occurred so far.

Events counter may not reset after disable() call.

Return values
Amountof events occured so far