commit FS#9027 - conditional viewports
[kugel-rb.git] / firmware / export / pcf5060x.h
blobc05ab283e7c10f2df716b9d49fe7db043a7fe4cc
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2008 by Rob Purchase
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
19 #ifndef PCF5060X_H
20 #define PCF5060X_H
22 /* PCF50605/6 Registers from datasheet rev2.2 */
24 #define PCF5060X_ID 0x00
25 #define PCF5060X_OOCS 0x01
26 #define PCF5060X_INT1 0x02
27 #define PCF5060X_INT2 0x03
28 #define PCF5060X_INT3 0x04
29 #define PCF5060X_INT1M 0x05
30 #define PCF5060X_INT2M 0x06
31 #define PCF5060X_INT3M 0x07
32 #define PCF5060X_OOCC1 0x08
33 #define GOSTDBY 0x1
34 #define TOTRST (0x1 << 1)
35 #define CLK32ON (0x1 << 2)
36 #define WDTRST (0x1 << 3)
37 #define RTCWAK (0x1 << 4)
38 #define CHGWAK (0x1 << 5)
39 #define EXTONWAK (0x01 << 6)
40 #define PCF5060X_OOCC2 0x09
41 #define PCF5060X_RTCSC 0x0a
42 #define PCF5060X_RTCMN 0x0b
43 #define PCF5060X_RTCHR 0x0c
44 #define PCF5060X_RTCWD 0x0d
45 #define PCF5060X_RTCDT 0x0e
46 #define PCF5060X_RTCMT 0x0f
47 #define PCF5060X_RTCYR 0x10
48 #define PCF5060X_RTCSCA 0x11
49 #define PCF5060X_RTCMNA 0x12
50 #define PCF5060X_RTCHRA 0x13
51 #define PCF5060X_RTCWDA 0x14
52 #define PCF5060X_RTCDTA 0x15
53 #define PCF5060X_RTCMTA 0x16
54 #define PCF5060X_RTCYRA 0x17
55 #define PCF5060X_PSSC 0x18
56 #define PCF5060X_PWROKM 0x19
57 #define PCF5060X_PWROKS 0x1a
58 #define PCF5060X_DCDC1 0x1b
59 #define PCF5060X_DCDC2 0x1c
60 #define PCF5060X_DCDC3 0x1d
61 #define PCF5060X_DCDC4 0x1e
62 #define PCF5060X_DCDEC1 0x1f
63 #define PCF5060X_DCDEC2 0x20
64 #define PCF5060X_DCUDC1 0x21
65 #define PCF5060X_DCUDC2 0x22
66 #define PCF5060X_IOREGC 0x23
67 #define PCF5060X_D1REGC1 0x24
68 #define PCF5060X_D2REGC1 0x25
69 #define PCF5060X_D3REGC1 0x26
70 #define PCF5060X_LPREGC1 0x27
71 #define PCF5060X_LPREGC2 0x28
72 #define PCF5060X_MBCC1 0x29
73 #define PCF5060X_MBCC2 0x2a
74 #define PCF5060X_MBCC3 0x2b
75 #define PCF5060X_MBCS1 0x2c
76 #define PCF5060X_BBCC 0x2d
77 #define PCF5060X_ADCC1 0x2e
78 #define PCF5060X_ADCC2 0x2f
79 #define PCF5060X_ADCS1 0x30
80 #define PCF5060X_ADCS2 0x31
81 #define PCF5060X_ADCS3 0x32
82 #define PCF5060X_ACDC1 0x33
83 #define PCF5060X_BVMC 0x34
84 #define PCF5060X_PWMC1 0x35
85 #define PCF5060X_LEDC1 0x36
86 #define PCF5060X_LEDC2 0x37
87 #define PCF5060X_GPOC1 0x38
88 #define PCF5060X_GPOC2 0x39
89 #define PCF5060X_GPOC3 0x3a
90 #define PCF5060X_GPOC4 0x3b
91 #define PCF5060X_GPOC5 0x3c
93 #endif /* PCF5060X_H */