device/valio/hwclock.h header reference
[Valio device attributes module]
The source code of this header can be browsed online.
Description [link]
Value IO interface for a calendar clock
Members [link]
Types [link]
- enum valio_hwclock_att
- enum valio_hwclock_dow_e
- struct valio_hwclock_s
Functions [link]
- void valio_hwclock_from_epoch(struct valio_hwclock_s *hc, uint32_t ts)
- uint32_t valio_hwclock_to_epoch(const struct valio_hwclock_s *hc)
Constant [link]
- const char valio_hwclock_dow_e[]
Members detail [link]
#define LIBDEVICE_VALIO_HWCLOCK_H_ [link]
This macro is declared in device/valio/hwclock.h source file, line 27.
enum valio_hwclock_att [link]
This enum is declared in device/valio/hwclock.h source file, line 33.
Identifier | Description |
---|---|
VALIO_HWCLOCK_DATE | A struct valio_hwclock_s |
const char valio_hwclock_dow_e[] [link]
This constant is declared in ENUM_DESCRIPTOR function like macro expansion, line 1 in device/valio/hwclock.h source file, line 38.
Alternate declarations with same identifier: [1], [2].
enum valio_hwclock_dow_e [link]
This enum is declared in device/valio/hwclock.h source file, line 43.
Day of week
Alternate declarations with same identifier: [1], [2].
Identifier | Description |
---|---|
DEV_HWCLOCK_DOW_SUNDAY | |
DEV_HWCLOCK_DOW_MONDAY | |
DEV_HWCLOCK_DOW_TUESDAY | |
DEV_HWCLOCK_DOW_WEDNESDAY | |
DEV_HWCLOCK_DOW_THURSDAY | |
DEV_HWCLOCK_DOW_FRIDAY | |
DEV_HWCLOCK_DOW_SATURDAY |
void valio_hwclock_from_epoch(struct valio_hwclock_s *hc, uint32_t ts) [link]
This function is declared in device/valio/hwclock.h source file, line 79.
this function converts an EPOCH-based timestamp to a HWClock time structure. Returned structure is in UTC.
struct valio_hwclock_s [link]
This struct is declared in device/valio/hwclock.h source file, line 54.
uint32_t valio_hwclock_to_epoch(const struct valio_hwclock_s *hc) [link]
This function is declared in device/valio/hwclock.h source file, line 72.
this function converts a HWClock time structure to a unix EPOCH-based timestamp. Reference time structure is supposed in UTC.