|
Lamp-Da 0.1
A compact lantern project
|
Handle the platform realtime functions. More...
Classes | |
| struct | RealTime |
| Store a real time reference. More... | |
Functions | |
| bool | set_real_time (const RealTime &realTime) |
| Set the real time in the lamp, only valid until the next shutdown. | |
| RealTime | convert_to_real_time (const uint32_t time_s) |
| Convert a platform time in seconds to a real time value. | |
| RealTime | get_real_time () |
| Return a real time value, only valid if it was set first. | |
| uint32_t | get_platform_time_from_target_time (const RealTime &time) |
| Given a real time, return the expected platform time in seconds at wich it will be reached. | |
Handle the platform realtime functions.
| RealTime lampda::component::time::convert_to_real_time | ( | const uint32_t | time_s | ) |
Convert a platform time in seconds to a real time value.
| uint32_t lampda::component::time::get_platform_time_from_target_time | ( | const RealTime & | time | ) |
Given a real time, return the expected platform time in seconds at wich it will be reached.
TODO: handle the clock wrap around