LibDriver PCF8563
Loading...
Searching...
No Matches
driver_pcf8563_timer.h
Go to the documentation of this file.
1
36
37#ifndef DRIVER_PCF8563_TIMER_H
38#define DRIVER_PCF8563_TIMER_H
39
41#include <time.h>
42
43#ifdef __cplusplus
44extern "C"{
45#endif
46
53
61uint8_t pcf8563_timer_irq_handler(void);
62
71uint8_t pcf8563_timer_init(void (*callback)(uint8_t type));
72
80uint8_t pcf8563_timer_deinit(void);
81
93
101uint8_t pcf8563_timer_disable(void);
102
112
121uint8_t pcf8563_timer_set_timestamp(time_t timestamp);
122
130uint8_t pcf8563_timer_set_timestamp_time_zone(int8_t zone);
131
141
150uint8_t pcf8563_timer_get_timestamp(time_t *timestamp);
151
159uint8_t pcf8563_timer_get_timestamp_time_zone(int8_t *zone);
160
170uint8_t pcf8563_timer_get_ascii_time(char *buf, uint8_t len);
171
175
176#ifdef __cplusplus
177}
178#endif
179
180#endif
driver pcf8563 interface header file
pcf8563_timer_freq_t
pcf8563 timer freq enumeration definition
pcf8563_interrupt_mode_t
pcf8563 interrupt mode enumeration definition
struct pcf8563_time_s pcf8563_time_t
pcf8563 time structure definition
uint8_t pcf8563_timer_get_ascii_time(char *buf, uint8_t len)
timer example get the ascii time
uint8_t pcf8563_timer_get_time(pcf8563_time_t *t)
timer example get the time
uint8_t pcf8563_timer_set_time(pcf8563_time_t *t)
timer example set the time
uint8_t pcf8563_timer_get_timestamp(time_t *timestamp)
timer example get the time in a unix timestamp
uint8_t pcf8563_timer_enable(pcf8563_timer_freq_t freq, uint8_t value, pcf8563_interrupt_mode_t mode)
timer example enable the timer
uint8_t pcf8563_timer_disable(void)
timer example disable the timer
uint8_t pcf8563_timer_set_timestamp_time_zone(int8_t zone)
timer example set the local time zone
uint8_t pcf8563_timer_deinit(void)
timer example deinit
uint8_t pcf8563_timer_irq_handler(void)
timer example irq
uint8_t pcf8563_timer_set_timestamp(time_t timestamp)
timer example set the time by a unix timestamp
uint8_t pcf8563_timer_get_timestamp_time_zone(int8_t *zone)
timer example get the local time zone
uint8_t pcf8563_timer_init(void(*callback)(uint8_t type))
timer example init