typedef enum tag_elev_state { DOOROPEN = 0, MOVING_UP = 1, MOVING_DOWN = 2, DOORCLOSED = 3, STOPPED = 4, IDLE = 5, } elev_state_t; void set_dest(int f); int get_dest(); void set_end_dest(int f); int get_end_dest(); int get_state(); int get_floor(); int localsys_init(); int timeDelay(int sec);