summaryrefslogtreecommitdiff
path: root/source/utilities/Event.h
blob: 36d8f3a05a7291ea135465f96b4e7bb8cf7e2391 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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_