]> git.kernelconcepts.de Git - metawatch.git/blob - metawatch_protocol.h
Reworked the bitmap functions to be of more general use
[metawatch.git] / metawatch_protocol.h
1 /*
2  * (c) 2011 Siegen, Germany by Nils Faerber <nils.faerber@kernelconcepts.de>
3  *
4  * license LGPL
5  */
6
7 #ifndef _MW_PROT_H
8 #define _MW_PROT_H
9
10 #define MW_SOF                          0x01
11
12 #define MW_GET_DEVICE_TYPE              0x01
13 #define MW_GET_DEVICE_TYPE_RSP          0x02
14 #define MW_GET_INFORMATION_STRING       0x03
15 #define MW_GET_INFORMATION_STRING_RSP   0x04
16
17 #define MW_ADVANCE_WATCH_HANDS          0x20
18 #define MW_SET_VIBRATE_MODE             0x23
19
20 #define MW_SET_REAL_TIME_CLOCK          0x26
21 #define MW_GET_REAL_TIME_CLOCK          0x27
22 #define MW_GET_REAL_TIME_CLOCK_RSP      0x28
23
24 #define MW_RTC_CLOCK_12HR               0x00
25 #define MW_RTC_CLOCK_24HR               0x01
26 #define MW_RTC_DATE_MMDD                0x00
27 #define MW_RTC_DATE_DDMM                0x01
28
29 #define MW_RESERVED                     0x32
30 #define MW_STATUS_CHANGE_EVENT          0x33
31 #define MW_BUTTON_EVENT_MESSAGE         0x34
32
33 #define MW_WRITE_BUFFER                 0x40
34 #define MW_CONFIGURE_MODE               0x41
35 #define MW_CONFIGURE_IDLE_BUFFER_SIZE   0x42
36 #define MW_UPDATE_DISPLAY               0x43
37 #define MW_LOAD_TEMPLATE                0x44
38 #define MW_RESERVED2                    0x45
39 #define MW_ENABLE_BUTTON                0x46
40 #define MW_DISABLE_BUTTON               0x47
41 #define MW_READ_BUTTON_CONFIG           0x48
42 #define MW_READ_BUTTON_CONFIG_RSP       0x49
43 #define MW_RESERVED3                    0x4a
44
45 #define MW_BATTERY_CONFIG_MSG           0x53
46 #define MW_LOW_BATTERY_WARNING_MSG      0x54
47 #define MW_LOW_BATTERY_BT_OFF_MSG       0x55
48 #define MW_READ_BATTERY_VOLTAGE_MSG     0x56
49 #define MW_READ_BATTERY_VOLTAGE_RSP     0x57
50
51 #define MW_ACCELEROMETER                0xea
52
53
54 #define MW_SCREEN_MODE_IDLE             0x00
55 #define MW_SCREEN_MODE_APPLICATION      0x01
56 #define MW_SCREEN_MODE_NOTIFICATION     0x02
57 #define MW_SCREEN_MODE_SCROLL           0x03
58
59
60 #endif
61