]> git.kernelconcepts.de Git - metawatch.git/blobdiff - metawatch_protocol.h
Fixes and enhancements
[metawatch.git] / metawatch_protocol.h
index cae11c95d3d5384397bae192d95b0db8947345e8..96c437f8040682a771a51ed5b354a23653ad85f9 100644 (file)
@@ -1,7 +1,13 @@
+/*
+ * (c) 2011 Siegen, Germany by Nils Faerber <nils.faerber@kernelconcepts.de>
+ *
+ * license LGPL
+ */
+
 #ifndef _MW_PROT_H
 #define _MW_PROT_H
 
-#define MW_SOF         0x01
+#define MW_SOF                         0x01
 
 #define MW_GET_DEVICE_TYPE             0x01
 #define MW_GET_DEVICE_TYPE_RSP         0x02
 #define MW_GET_REAL_TIME_CLOCK         0x27
 #define MW_GET_REAL_TIME_CLOCK_RSP     0x28
 
+#define MW_RTC_CLOCK_12HR              0x00
+#define MW_RTC_CLOCK_24HR              0x01
+#define MW_RTC_DATE_MMDD               0x00
+#define MW_RTC_DATE_DDMM               0x01
+
 #define MW_RESERVED                    0x32
 #define MW_STATUS_CHANGE_EVENT         0x33
 #define MW_BUTTON_EVENT_MESSAGE                0x34
 #define MW_LOW_BATTERY_BT_OFF_MSG      0x55
 #define MW_READ_BATTERY_VOLTAGE_MSG    0x56
 #define MW_READ_BATTERY_VOLTAGE_RSP    0x57
-
+#define MW_READ_LIGHT_SENSOR_MSG       0x58
+#define MW_READ_LIGHT_SENSOR_RSP       0x59
 #define MW_ACCELEROMETER               0xea
 
 
+#define MW_SCREEN_MODE_IDLE            0x00
+#define MW_SCREEN_MODE_APPLICATION     0x01
+#define MW_SCREEN_MODE_NOTIFICATION    0x02
+#define MW_SCREEN_MODE_SCROLL          0x03
+
+
 #endif
+