-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspeedControl.h
More file actions
65 lines (50 loc) · 2.31 KB
/
speedControl.h
File metadata and controls
65 lines (50 loc) · 2.31 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
* speedControl.h
*
* Created: 01-Apr-18 11:22:55 PM
* Copyright: ©2018 Alsayed Alsisi
* Author: Alsayed Alsisi
* License:
You have the complete freedom to use the code in any educational or commercial purposes under the following conditions:
- You don't remove my name under any circumstances.
- You use the code as is. And if you need to edit it before using it you may contact me first.
* Contact Details:
- E-mail: alsayed.alsisi@gmail.com
- Phone Number: +201066769510
*/
/*----------------------------------------------------------------
--------------------- Header Guard -------------------------------
----------------------------------------------------------------*/
#ifndef SPEEDCONTROL_H_
#define SPEEDCONTROL_H_
/*----------------------------------------------------------------
--------------------- File Inclusions ----------------------------
----------------------------------------------------------------*/
/*----------------------------------------------------------------
--------------------- Public Constants ---------------------------
----------------------------------------------------------------*/
/*----------------------------------------------------------------
--------------------- Public Data Types --------------------------
----------------------------------------------------------------*/
typedef enum{
SPEED_MIN = 0,
SPEED_MID,
SPEED_MAX,
SPEED_STOPPED,
SPEED_START
}speed_state_t;
/*----------------------------------------------------------------
--------------------- Public Variable Declarations ---------------
----------------------------------------------------------------*/
/*----------------------------------------------------------------
--------------------- Public Function Prototypes ----------------
----------------------------------------------------------------*/
extern void speed_control_init(void);
extern void speed_control_update(void);
extern void speed_motor_turn_off(void);
extern void speed_motor_turn_on(void);
extern speed_state_t speed_current_state_get(void);
#endif /* SPEEDCONTROL_H_ */
/*----------------------------------------------------------------
--------------------- End of File --------------------------------
----------------------------------------------------------------*/