# motor.c File Reference

DC_Motor. More...

Go to the source code of this file.

## Functions
int | Motor_SetActive (int index, int state)
| Sets whether the specified motor is active.
int | Motor_GetActive (int index)
| Returns the active state of the DC Motor I/O lines.
int | Motor_SetSpeed (int index, int duty)
| Set the speed of a DC motor.
int | Motor_SetDirection (int index, char forward)
| Set the direction of a DC motor.
int | Motor_GetSpeed (int index)
| Read the speed of a DC motor.
int | Motor_GetDirection (int index)
| Read the direction of a DC motor.

## Detailed Description

DC_Motor.

Functions for controlling DC Motors with the MAKE Application Board.

Definition in file motor.c.