Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Namespaces | Functions
time.h File Reference

Define all time related platform functions. More...

Go to the source code of this file.

Namespaces

namespace  lampda
 Program scope.
 
namespace  lampda::hal
 Hardware Abstraction Layer, handle the platform specific interactions. Can be changed to support different platforms.
 

Functions

uint32_t lampda::hal::time_ms (void)
 Returns the number of milliseconds since the Arduino board began running the current program. This number will overflow (go back to zero), after approximately 50 days.
 
uint64_t lampda::hal::time_us (void)
 Returns the number of microseconds since the Arduino board began running the current program.
 
void lampda::hal::delay_ms (uint32_t dwMs)
 Pauses the program for the amount of time (in miliseconds) specified as parameter. (There are 1000 milliseconds in a second.)
 
void lampda::hal::delay_us (uint64_t dwUs)
 Pauses the program for the amount of time (in microseconds) specified as parameter.
 
uint32_t lampda::hal::time_s ()
 Get the current time, in seconds.
 
uint32_t lampda::hal::time_min ()
 Get the current time, in minutes.
 
void lampda::hal::delay_s (uint32_t s)
 pause the current task for the given number of seconds
 

Detailed Description

Define all time related platform functions.