a simple code for elevator

Dependencies:   PinDetect mbed Servo

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers event_and_actions.h Source File

event_and_actions.h

00001 /*
00002  * ENEVTS AND ACTIONS FUNCTIONS.
00003  * ^^^^^^ ^^^ ^^^^^^^ ^^^^^^^^^
00004  *
00005  * FILE NAME: event_and_actins.h
00006  * USAGE: library file of event_and_actins.cpp
00007  */
00008  
00009  
00010  
00011  /*
00012 * including the wanted library files.
00013 */
00014 #include "mbed.h"
00015 #include "main.h"
00016 
00017 /*function prototype*/
00018 void move_to_bottom (void);
00019 void door_top (void);
00020 void motor_stop_tp (void);
00021 void motor_stop_bm (void);
00022 void open_top (void);
00023 void close_top (void);
00024 void slow_down_tp (void);
00025 void slow_down_bm (void);
00026 void door_bottom (void);
00027 void move_to_top (void);
00028 void open_bottom (void);
00029 void close_bottom (void);
00030 void ND (void);
00031 void new_event (event next_event);
00032 void slow_back (void);
00033 
00034 /*variable named current_state that has been defined in another location*/
00035 extern state current_state;