OS  v1.7.5
Documentation
Loading...
Searching...
No Matches

Clock and time manipulation interface used by the entire OS. More...

Collaboration diagram for Clock:

Classes

class  qOS::clock
 A class to encapsulate the OS clock. More...
 

Typedefs

using qOS::clock_t
 A unsigned integer to hold ticks count. Epochs counter.
 
using qOS::duration_t
 The typedef that specified an time quantity, usually expressed in milliseconds.
 
using qOS::getTickFcn_t
 Pointer to a function that gets the current hardware tick value.
 

Detailed Description

Clock and time manipulation interface used by the entire OS.

Typedef Documentation

◆ clock_t

using qOS::clock_t

A unsigned integer to hold ticks count. Epochs counter.

◆ duration_t

The typedef that specified an time quantity, usually expressed in milliseconds.

◆ getTickFcn_t

Pointer to a function that gets the current hardware tick value.

Note
User should use bare-metal code to implement this function. Example :
unsigned long OSInterface_GetTick( void ) {
return HAL_GetTick();
}
Returns
The number of ticks provided by the system HAL.