Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
ds1307_internal.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2017 Freie Universität Berlin
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
19
#ifndef DS1307_INTERNAL_H
20
#define DS1307_INTERNAL_H
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
30
#define DS1307_REG_SEC (0x00)
31
#define DS1307_REG_MIN (0x01)
32
#define DS1307_REG_HOUR (0x02)
33
#define DS1307_REG_DOW (0x03)
34
#define DS1307_REG_DOM (0x04)
35
#define DS1307_REG_MON (0x05)
36
#define DS1307_REG_YEAR (0x06)
37
#define DS1307_REG_SQW_CTL (0x07)
38
#define DS1307_REG_RAM_FIRST (0x08)
39
#define DS1307_REG_RAM_LAST (0x3F)
46
#define DS1307_REG_SEC_CH (0x80)
47
#define DS1307_REG_SEC_MASK (0x7f)
48
#define DS1307_REG_MIN_MASK (0x7f)
49
#define DS1307_REG_HOUR_12H (0x40)
50
#define DS1307_REG_HOUR_PM (0x20)
51
#define DS1307_REG_HOUR_12H_MASK (0x2f)
52
#define DS1307_REG_HOUR_24H_MASK (0x3f)
53
#define DS1307_REG_DOW_MASK (0x07)
54
#define DS1307_REG_DOM_MASK (0x3f)
55
#define DS1307_REG_MON_MASK (0x1f)
62
#define DS1307_DOW_OFFSET (1)
63
#define DS1307_MON_OFFSET (1)
64
#define DS1307_YEAR_OFFSET (-100)
68
#ifdef __cplusplus
69
}
70
#endif
71
72
#endif
/* DS1307_INTERNAL_H */
73
Generated on Tue Nov 24 2020 19:46:50 by
1.8.17