#include <stdbool.h>
#include "config.h"
Go to the source code of this file.
|
void | rtc_init (void) |
|
bool | rtc_is_ds1307 (void) |
|
bool | rtc_is_ds3231 (void) |
|
void | rtc_set_ds1307 (void) |
|
void | rtc_set_ds3231 (void) |
|
struct tm * | rtc_get_time (void) |
|
void | rtc_get_time_s (uint8_t *hour, uint8_t *min, uint8_t *sec) |
|
void | rtc_set_time (struct tm *tm_) |
|
void | rtc_set_time_s (uint8_t hour, uint8_t min, uint8_t sec) |
|
void | rtc_run_clock (bool run) |
|
bool | rtc_is_clock_running (void) |
|
void | ds3231_get_temp_int (int8_t *i, uint8_t *f) |
|
void | rtc_force_temp_conversion (uint8_t block) |
|
void | rtc_get_sram (uint8_t *data) |
|
void | rtc_set_sram (uint8_t *data) |
|
uint8_t | rtc_get_sram_byte (uint8_t offset) |
|
void | rtc_set_sram_byte (uint8_t b, uint8_t offset) |
|
void | rtc_SQW_enable (bool enable) |
|
void | rtc_SQW_set_freq (enum RTC_SQW_FREQ freq) |
|
void | rtc_osc32kHz_enable (bool enable) |
|
void | rtc_reset_alarm (void) |
|
void | rtc_set_alarm (struct tm *tm_) |
|
void | rtc_set_alarm_s (uint8_t hour, uint8_t min, uint8_t sec) |
|
struct tm * | rtc_get_alarm (void) |
|
void | rtc_get_alarm_s (uint8_t *hour, uint8_t *min, uint8_t *sec) |
|
bool | rtc_check_alarm (void) |
|
#define DS1307_SLAVE_ADDR 0b11010000 |
Enumerator |
---|
FREQ_1 |
|
FREQ_1024 |
|
FREQ_4096 |
|
FREQ_8192 |
|
void ds3231_get_temp_int |
( |
int8_t * |
i, |
|
|
uint8_t * |
f |
|
) |
| |
bool rtc_check_alarm |
( |
void |
| ) |
|
void rtc_force_temp_conversion |
( |
uint8_t |
block | ) |
|
struct tm* rtc_get_alarm |
( |
void |
| ) |
|
void rtc_get_alarm_s |
( |
uint8_t * |
hour, |
|
|
uint8_t * |
min, |
|
|
uint8_t * |
sec |
|
) |
| |
void rtc_get_sram |
( |
uint8_t * |
data | ) |
|
uint8_t rtc_get_sram_byte |
( |
uint8_t |
offset | ) |
|
struct tm* rtc_get_time |
( |
void |
| ) |
|
void rtc_get_time_s |
( |
uint8_t * |
hour, |
|
|
uint8_t * |
min, |
|
|
uint8_t * |
sec |
|
) |
| |
bool rtc_is_clock_running |
( |
void |
| ) |
|
bool rtc_is_ds1307 |
( |
void |
| ) |
|
bool rtc_is_ds3231 |
( |
void |
| ) |
|
void rtc_osc32kHz_enable |
( |
bool |
enable | ) |
|
void rtc_run_clock |
( |
bool |
run | ) |
|
void rtc_set_alarm |
( |
struct tm * |
tm_ | ) |
|
void rtc_set_alarm_s |
( |
uint8_t |
hour, |
|
|
uint8_t |
min, |
|
|
uint8_t |
sec |
|
) |
| |
void rtc_set_sram |
( |
uint8_t * |
data | ) |
|
void rtc_set_sram_byte |
( |
uint8_t |
b, |
|
|
uint8_t |
offset |
|
) |
| |
void rtc_set_time |
( |
struct tm * |
tm_ | ) |
|
void rtc_set_time_s |
( |
uint8_t |
hour, |
|
|
uint8_t |
min, |
|
|
uint8_t |
sec |
|
) |
| |
void rtc_SQW_enable |
( |
bool |
enable | ) |
|