Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

MotorState Struct Reference

the motor status type. More...

#include <dmotor.h>

Collaboration diagram for MotorState:

[legend]
List of all members.

Public Attributes

union {
   unsigned   assembler
   struct {
      unsigned char   delta
      volatile unsigned char   sum
   }   c
access
 provides access from C and assembler. More...

unsigned char dir
 output pattern when sum overflows. More...


Detailed Description

the motor status type.

Definition at line 54 of file dmotor.h.


Member Data Documentation

union { ... } MotorState::access
 

provides access from C and assembler.

Referenced by motor_a_speed(), motor_b_speed(), and motor_c_speed().

unsigned MotorState::assembler
 

assures word alignment for assembler.

Definition at line 56 of file dmotor.h.

struct { ... } MotorState::c
 

unsigned char MotorState::delta
 

the speed setting.

Definition at line 59 of file dmotor.h.

unsigned char MotorState::dir
 

output pattern when sum overflows.

Definition at line 66 of file dmotor.h.

volatile unsigned char MotorState::sum
 

running sum.

Definition at line 61 of file dmotor.h.


The documentation for this struct was generated from the following file:
brickOS is released under the Mozilla Public License.
Original code copyright 1998-2002 by the authors.

Generated on Tue Dec 10 00:09:19 2002 for brickOS Kernel Developer by doxygen 1.2.15