|
K-FSW v1.2.1-59-gcaca356
KFSW: modular flight software on Zephyr, for small satellites
|
Functions | |
| bool | kfsw_wallclock_is_present (void) |
| int | kfsw_wallclock_get (int64_t *seconds) |
| int | kfsw_wallclock_set (int64_t seconds) |
| int kfsw_wallclock_get | ( | int64_t * | seconds | ) |
#include <wallclock.h>
Read the wall clock.
| [out] | seconds | Unix seconds. |
| 0 | Read, and the value had been set. |
| -ENOTSUP | No wall clock in this composition. |
| -ENODATA | The clock is running but was never set. |
| <0 | An errno from the driver. |
| bool kfsw_wallclock_is_present | ( | void | ) |
#include <wallclock.h>
Wall time from the RTC named by the kfsw,rtc chosen node.
Retention depends on the RTC, board configuration and backup supply. Without an RTC the calls return -ENOTSUP. Whether an RTC is configured.
| int kfsw_wallclock_set | ( | int64_t | seconds | ) |
#include <wallclock.h>
Set the wall clock.
| seconds | Unix seconds. Must be positive. |
| 0 | Set. |
| -EINVAL | A time before the epoch. |
| -ENOTSUP | No wall clock in this composition. |
| <0 | An errno from the driver. |