Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Data-Management-Honka
Fork of UI by
Diff: UserInterface.h
- Revision:
- 0:6b5a3a0138ad
- Child:
- 3:19c08e8a552a
- Child:
- 6:be26def664d1
diff -r 000000000000 -r 6b5a3a0138ad UserInterface.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/UserInterface.h Wed Feb 04 23:53:56 2015 +0000
@@ -0,0 +1,44 @@
+#ifndef USERINTERFACE_H
+#define USERINTERFACE_H
+
+/**
+* Copyright (c) 2014
+* All rights reserved.
+*
+ * This header file contains functions for reading received signals and checking that they are properly formed.
+ * @author Bradley Perry
+ * @date
+*/
+
+#include "mbed.h"
+#include "MODSERIAL.h"
+#include "initDatabed.h"
+extern int UI;
+class UserInterface
+{
+public:
+ UserInterface(void);
+ void find_length(char *idx, int *count);
+ bool checksum_check(char * idx, int length);
+ void checkUI_XBee();
+ void readBuffer();
+ void initializeUI();
+
+private:
+ int _buttonA;
+ int _buttonA_prev;
+ float _tHold;
+ float _tIdle;
+ int _SSconfirm;
+ float _tRelease;
+ Timer _time_StateChange;
+ Timer _time_pressA;
+ Timer _time_pressB;
+ int _buttonB;
+ int _buttonB_prev;
+ char _xbeeBuffer[250];
+ int _dataCnt;
+ float _time_sinceA;
+ float _time_sinceB;
+};
+#endif
