Driver (ElevatorProject v0.1.0)

Communicates with the elevator hardware. Delivered as a part of the course TTK4145: Real-time programming.

Link to this section Summary

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

get_floor_sensor_state()

Link to this function

get_obstruction_switch_state()

Link to this function

get_order_button_state(floor, button_type)

Link to this function

get_stop_button_state()

Callback implementation for GenServer.init/1.

Link to this function

set_door_open_light(state)

Link to this function

set_floor_indicator(floor)

Link to this function

set_motor_direction(direction)

Link to this function

set_order_button_light(button_type, floor, state)

Link to this function

set_stop_button_light(state)

Link to this function

start_link(list)