LibDriver PCF8563
Loading...
Searching...
No Matches
driver_pcf8563_basic.h
Go to the documentation of this file.
1
36
37#ifndef DRIVER_PCF8563_BASIC_H
38#define DRIVER_PCF8563_BASIC_H
39
41#include <time.h>
42
43#ifdef __cplusplus
44extern "C"{
45#endif
46
53
61uint8_t pcf8563_basic_init(void);
62
70uint8_t pcf8563_basic_deinit(void);
71
81
90uint8_t pcf8563_basic_set_timestamp(time_t timestamp);
91
99uint8_t pcf8563_basic_set_timestamp_time_zone(int8_t zone);
100
110
119uint8_t pcf8563_basic_get_timestamp(time_t *timestamp);
120
128uint8_t pcf8563_basic_get_timestamp_time_zone(int8_t *zone);
129
139uint8_t pcf8563_basic_get_ascii_time(char *buf, uint8_t len);
140
144
145#ifdef __cplusplus
146}
147#endif
148
149#endif
driver pcf8563 interface header file
struct pcf8563_time_s pcf8563_time_t
pcf8563 time structure definition
uint8_t pcf8563_basic_get_timestamp(time_t *timestamp)
basic example get the time in a unix timestamp
uint8_t pcf8563_basic_get_timestamp_time_zone(int8_t *zone)
basic example get the local time zone
uint8_t pcf8563_basic_get_ascii_time(char *buf, uint8_t len)
basic example get the ascii time
uint8_t pcf8563_basic_deinit(void)
basic example deinit
uint8_t pcf8563_basic_set_timestamp_time_zone(int8_t zone)
basic example set the local time zone
uint8_t pcf8563_basic_get_time(pcf8563_time_t *t)
basic example get the time
uint8_t pcf8563_basic_set_timestamp(time_t timestamp)
basic example set the time by a unix timestamp
uint8_t pcf8563_basic_set_time(pcf8563_time_t *t)
basic example set the time
uint8_t pcf8563_basic_init(void)
basic example init