|
Lamp-Da 0.1
A compact lantern project
|
Mock of the board time. More...
Namespaces | |
| namespace | simulator |
| Simulator dedicated namespace. | |
| namespace | simulator::time_mocks |
| Encapsulate the mock time signals. | |
| namespace | lampda |
| Program scope. | |
| namespace | lampda::hal |
| Hardware Abstraction Layer, handle the platform specific interactions. Can be changed to support different platforms. | |
Functions | |
| void | simulator::time_mocks::reset (uint32_t startClock) |
| 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. | |
Variables | |
| static sf::Clock | simulator::s_clock |
| static bool | simulator::isClockReset = false |
| static uint32_t | simulator::clockOffset = 0 |
Mock of the board time.