#include <config.h>
Include dependency graph for dmotor.h:
Go to the source code of this file.
Defines | |
#define | MIN_SPEED 0 |
minimum motor speed | |
#define | MAX_SPEED 255 |
maximum motor speed | |
Enumerations | |
enum | MotorDirection { off = 0, fwd = 1, rev = 2, brake = 3 } |
the motor directions More... | |
Functions | |
void | motor_a_dir (MotorDirection dir) |
set motor A direction to dir | |
void | motor_b_dir (MotorDirection dir) |
set motor B direction to dir | |
void | motor_c_dir (MotorDirection dir) |
set motor C direction to dir | |
void | motor_a_speed (unsigned char speed) |
set motor A speed | |
void | motor_b_speed (unsigned char speed) |
set motor B speed | |
void | motor_c_speed (unsigned char speed) |
set motor C speed | |
Variables | |
const unsigned char | dm_a_pattern [4] |
motor drive patterns | |
const unsigned char | dm_b_pattern [4] |
motor drive patterns | |
const unsigned char | dm_c_pattern [4] |
motor drive patterns | |
MotorState | dm_a |
motor A state | |
MotorState | dm_b |
motor B state | |
MotorState | dm_c |
motor C state |
Definition in file dmotor.h.
|
maximum motor speed
|
|
minimum motor speed
|
|
the motor directions
|
|
set motor A direction to dir
|
|
set motor A speed
Definition at line 143 of file dmotor.h. References dm_a. |
|
set motor B direction to dir
|
|
set motor B speed
Definition at line 151 of file dmotor.h. References dm_b. |
|
set motor C direction to dir
|
|
set motor C speed
Definition at line 159 of file dmotor.h. References dm_c. |
|
motor A state
Definition at line 89 of file dmotor.h. Referenced by motor_a_speed(). |
|
motor drive patterns to be indexed with MotorDirections
|
|
motor B state
Definition at line 89 of file dmotor.h. Referenced by motor_b_speed(). |
|
motor drive patterns to be indexed with MotorDirections
|
|
motor C state
Definition at line 89 of file dmotor.h. Referenced by motor_c_speed(). |
|
motor drive patterns to be indexed with MotorDirections
|
brickOS is released under the
Mozilla Public License.
Original code copyright 1998-2002 by the authors. |