summaryrefslogtreecommitdiff
path: root/source/utilities/Event.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/utilities/Event.h')
-rw-r--r--source/utilities/Event.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/source/utilities/Event.h b/source/utilities/Event.h
new file mode 100644
index 0000000..36d8f3a
--- /dev/null
+++ b/source/utilities/Event.h
@@ -0,0 +1,27 @@
+/******************************************************************************
+*
+* Copyright (C) ST-Ericsson SA 2011
+* License terms: 3-clause BSD license
+*
+******************************************************************************/
+
+#ifndef _EVENT_H_
+#define _EVENT_H_
+
+enum {
+ EVENT_GR_RECEIVED = 0x00000001,
+ EVENT_CMD_RECEIVED = 0x00000002,
+ EVENT_SPEEDFLASH = 0x00000004,
+ EVENT_ERROR = 0x00000008
+};
+
+struct Event {
+ Event(uint32 ev, uint32 err, uint8 gr = 0, uint8 cmd = 0):
+ event(ev), error(err), group(gr), command(cmd) {}
+ uint32 event;
+ uint32 error;
+ uint8 group;
+ uint8 command;
+};
+
+#endif // _EVENT_H_