motor.c File Reference

Go to the source code of this file.

Functions

void F_MotorPowerOnInit (void)
void F_MotorSvc (void)
INT8U F_MotorEventCheck (void)
void F_MotorDirectionSet (INT8U Direction) LargeReentrant
void F_MotorCommandSet (INT8U **pArgv, INT8U Argc) LargeReentrant

Variables

INT8U code cw [3] = {'c','w',0}
INT8U code ccw [4] = {'c','c','w',0}
INT8U code stop [5] = {'s','t','o','p',0}
INT8U code * MotorCommandList [MOTOR_COMMAND_MAX] = {cw,ccw,stop}
struct STEPMOTOR_CONTROL StepMotorCtrl
struct MOTOR_EVENT MotorEvent
sbit MotorPhase_B = P1^0
sbit MotorPhase_BX = P1^1
sbit MotorPhase_AX = P1^2
sbit MotorPhase_A = P1^3


Function Documentation

void F_MotorCommandSet ( INT8U **  pArgv,
INT8U  Argc 
)

Definition at line 189 of file motor.c.

References F_MotorDirectionSet(), and MotorCommandList.

Referenced by F_ShellSvc().

void F_MotorDirectionSet ( INT8U  Direction  ) 

INT8U F_MotorEventCheck ( void   ) 

Definition at line 147 of file motor.c.

References MOTOR_EVENT::HasEvent, and MotorEvent.

void F_MotorPowerOnInit ( void   ) 

void F_MotorSvc ( void   ) 


Variable Documentation

INT8U code ccw[4] = {'c','c','w',0}

Definition at line 18 of file motor.c.

INT8U code cw[3] = {'c','w',0}

Definition at line 17 of file motor.c.

INT8U code* MotorCommandList[MOTOR_COMMAND_MAX] = {cw,ccw,stop}

Definition at line 20 of file motor.c.

Referenced by F_MotorCommandSet().

Definition at line 23 of file motor.c.

Referenced by F_MotorDirectionSet(), F_MotorEventCheck(), F_MotorPowerOnInit(), and F_MotorSvc().

sbit MotorPhase_A = P1^3

Definition at line 27 of file motor.c.

Referenced by F_MotorPowerOnInit(), and F_MotorSvc().

sbit MotorPhase_AX = P1^2

Definition at line 26 of file motor.c.

Referenced by F_MotorPowerOnInit(), and F_MotorSvc().

sbit MotorPhase_B = P1^0

Definition at line 24 of file motor.c.

Referenced by F_MotorPowerOnInit(), and F_MotorSvc().

sbit MotorPhase_BX = P1^1

Definition at line 25 of file motor.c.

Referenced by F_MotorPowerOnInit(), and F_MotorSvc().

Definition at line 22 of file motor.c.

Referenced by F_MotorPowerOnInit(), F_MotorSvc(), and IsrTimer0().

INT8U code stop[5] = {'s','t','o','p',0}

Definition at line 19 of file motor.c.


Generated on Sat Aug 9 23:31:24 2008 for A Small Control System Using 8051 by  doxygen 1.5.6