device/valio/hwclock.h header reference
[Valio device attributes module]

The source code of this header can be browsed online.

Description  

Value IO interface for a calendar clock

Members  

Types  

Functions  

Constant  

Members detail  

#define LIBDEVICE_VALIO_HWCLOCK_H_  

This macro is declared in device/valio/hwclock.h source file, line 27.

enum valio_hwclock_att  

This enum is declared in device/valio/hwclock.h source file, line 33.

IdentifierDescription
VALIO_HWCLOCK_DATEA struct valio_hwclock_s

const char valio_hwclock_dow_e[]  

This variable 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  

This enum is declared in device/valio/hwclock.h source file, line 43.

Day of week

Alternate declarations with same identifier: [1], [2].

IdentifierDescription
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)  

this function converts an EPOCH-based timestamp to a HWClock time structure. Returned structure is in UTC.

struct valio_hwclock_s  

This struct is declared in device/valio/hwclock.h source file, line 54.

FieldDescription
uint16_t year;20xx
uint8_t month;1-12
uint8_t day;1-31
enum valio_hwclock_dow_e dow:3;
uint8_t hour;0-23
uint8_t min;0-59
uint8_t sec;

uint32_t valio_hwclock_to_epoch(const struct valio_hwclock_s *hc)  

this function converts a HWClock time structure to a unix EPOCH-based timestamp. Reference time structure is supposed in UTC.

Valid XHTML 1.0 StrictGenerated by diaxen on Wed Oct 17 21:18:38 2018 using MkDoc