root / lab4 / state_machine.h @ 265
History | View | Annotate | Download (408 Bytes)
1 |
#ifndef _STATE_MACHINE_H_
|
---|---|
2 |
#define _STATE_MACHINE_H_
|
3 |
|
4 |
/**
|
5 |
* @brief States of state machine
|
6 |
*/
|
7 |
enum states {
|
8 |
INITIAL, |
9 |
DRAG_UP, |
10 |
VERTEX, |
11 |
DRAG_DOWN, |
12 |
FINAL |
13 |
}; |
14 |
|
15 |
/**
|
16 |
*
|
17 |
*/
|
18 |
struct mouse_ev* mouse_get_event(struct packet *pp); |
19 |
|
20 |
/**
|
21 |
*
|
22 |
*/
|
23 |
int state_machine(struct mouse_ev* event, uint8_t x_len, uint8_t tolerance); |
24 |
|
25 |
#endif /* end of include guard: _STATE_MACHINE_H_ */ |