LibDriver PCF8563
Loading...
Searching...
No Matches
driver_pcf8563_output.h
Go to the documentation of this file.
1
36
37#ifndef DRIVER_PCF8563_OUTPUT_H
38#define DRIVER_PCF8563_OUTPUT_H
39
41#include <time.h>
42
43#ifdef __cplusplus
44extern "C"{
45#endif
46
51
59uint8_t pcf8563_output_init(void);
60
68uint8_t pcf8563_output_deinit(void);
69
79
88uint8_t pcf8563_output_set_timestamp(time_t timestamp);
89
98
108
117uint8_t pcf8563_output_get_timestamp(time_t *timestamp);
118
126uint8_t pcf8563_output_get_timestamp_time_zone(int8_t *zone);
127
137uint8_t pcf8563_output_get_ascii_time(char *buf, uint8_t len);
138
148
156uint8_t pcf8563_output_disable(void);
157
161
162#ifdef __cplusplus
163}
164#endif
165
166#endif
driver pcf8563 interface header file
pcf8563_clock_out_t
pcf8563 clock out enumeration definition
struct pcf8563_time_s pcf8563_time_t
pcf8563 time structure definition
uint8_t pcf8563_output_enable(pcf8563_clock_out_t clk)
output example enable the output
uint8_t pcf8563_output_set_time(pcf8563_time_t *t)
output example set the time
uint8_t pcf8563_output_set_timestamp_time_zone(int8_t zone)
output example set the local time zone
uint8_t pcf8563_output_disable(void)
output example disable the output
uint8_t pcf8563_output_get_ascii_time(char *buf, uint8_t len)
output example get the ascii time
uint8_t pcf8563_output_set_timestamp(time_t timestamp)
output example set the time by a unix timestamp
uint8_t pcf8563_output_get_timestamp_time_zone(int8_t *zone)
output example get the local time zone
uint8_t pcf8563_output_get_timestamp(time_t *timestamp)
output example get the time in a unix timestamp
uint8_t pcf8563_output_get_time(pcf8563_time_t *t)
output example get the time
uint8_t pcf8563_output_init(void)
output example init
uint8_t pcf8563_output_deinit(void)
output example deinit