the motor status type. More...
#include <dmotor.h>
Public Attributes | ||
union { | ||
unsigned assembler | ||
assures word alignment for assembler More... | ||
struct { | ||
unsigned char delta | ||
the speed setting More... | ||
volatile unsigned char sum | ||
running sum More... | ||
} c | ||
} | access | |
provides access from C and assembler | ||
unsigned char | dir | |
output pattern when sum overflows | ||
union { ... } MotorState::access |
provides access from C and assembler
Referenced by motor_a_speed(), motor_b_speed(), and motor_c_speed().
unsigned MotorState::assembler |
struct { ... } MotorState::c |
Referenced by motor_a_speed(), motor_b_speed(), and motor_c_speed().
unsigned char MotorState::delta |
the speed setting
Definition at line 59 of file dmotor.h.
Referenced by motor_a_speed(), motor_b_speed(), and motor_c_speed().
unsigned char MotorState::dir |
brickOS is released under the
Mozilla Public License.
Original code copyright 1998-2005 by the authors. |