Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
ds1307_internal.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2017 Freie Universität Berlin
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
18
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif
22
27
#define DS1307_REG_SEC (0x00)
28
#define DS1307_REG_MIN (0x01)
29
#define DS1307_REG_HOUR (0x02)
30
#define DS1307_REG_DOW (0x03)
31
#define DS1307_REG_DOM (0x04)
32
#define DS1307_REG_MON (0x05)
33
#define DS1307_REG_YEAR (0x06)
34
#define DS1307_REG_SQW_CTL (0x07)
35
#define DS1307_REG_RAM_FIRST (0x08)
36
#define DS1307_REG_RAM_LAST (0x3F)
38
43
#define DS1307_REG_SEC_CH (0x80)
44
#define DS1307_REG_SEC_MASK (0x7f)
45
#define DS1307_REG_MIN_MASK (0x7f)
46
#define DS1307_REG_HOUR_12H (0x40)
47
#define DS1307_REG_HOUR_PM (0x20)
48
#define DS1307_REG_HOUR_12H_MASK (0x2f)
49
#define DS1307_REG_HOUR_24H_MASK (0x3f)
50
#define DS1307_REG_DOW_MASK (0x07)
51
#define DS1307_REG_DOM_MASK (0x3f)
52
#define DS1307_REG_MON_MASK (0x1f)
54
59
#define DS1307_DOW_OFFSET (1)
60
#define DS1307_MON_OFFSET (1)
61
#define DS1307_YEAR_OFFSET (-100)
63
64
#ifdef __cplusplus
65
}
66
#endif
67
Generated on Wed Apr 15 2026 07:36:48 by
1.13.2