+ mw_send_frame(mw_fd, MW_SET_REAL_TIME_CLOCK, 0, data, 10);
+}
+
+void mw_set_vibrate_mode(int mw_fd, unsigned char enable, unsigned short on_time, unsigned short off_time, unsigned char cycles)
+{
+ unsigned char mdata[7];
+
+ mdata[0] = enable;
+ *(unsigned short *)(mdata+1) = on_time; /* miliseconds */
+ *(unsigned short *)(mdata+3) = off_time; /* miliseconds */
+ mdata[5] = cycles;
+ mw_send_frame(mw_fd, MW_SET_VIBRATE_MODE, 0, mdata, 6);
+}
+
+void mw_configure_watch_mode(int mw_fd, unsigned char mode, unsigned char save, unsigned char timeout, unsigned char invert)
+{
+ unsigned char mdata[3];
+
+ mdata[0] = timeout; /* seconds */
+ mdata[1] = invert; /* 0=normal, 1=invert */
+ mw_send_frame(mw_fd, MW_CONFIGURE_MODE, (mode & 0x0f) | ((save & 0x01) << 3), mdata, 2);
+}
+
+void mw_update_display(int mw_fd, unsigned char mode, unsigned char copy)
+{
+ mw_send_frame(mw_fd, MW_UPDATE_DISPLAY, (mode & 0x0f) | ((copy & 0x01) << 3), NULL, 0);