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 |
Definition at line 189 of file motor.c.
References F_MotorDirectionSet(), and MotorCommandList.
Referenced by F_ShellSvc().
void F_MotorDirectionSet | ( | INT8U | Direction | ) |
Definition at line 151 of file motor.c.
References MOTOR_EVENT::Data, MOTOR_EVENT::EventType, MOTOR_EVENT::HasEvent, LcmChar, MotorEvent, and MOTOR_EVENT::RwFlag.
Referenced by F_IrdaSvc(), and F_MotorCommandSet().
INT8U F_MotorEventCheck | ( | void | ) |
void F_MotorPowerOnInit | ( | void | ) |
Definition at line 29 of file motor.c.
References MOTOR_EVENT::Data, MOTOR_EVENT::EventType, MOTOR_EVENT::HasEvent, MotorEvent, MotorPhase_A, MotorPhase_AX, MotorPhase_B, MotorPhase_BX, MOTOR_EVENT::RwFlag, STEPMOTOR_CONTROL::State, StepMotorCtrl, and STEPMOTOR_CONTROL::Timer.
Referenced by F_SysPowerOnInit().
void F_MotorSvc | ( | void | ) |
Definition at line 44 of file motor.c.
References MOTOR_EVENT::EventType, MOTOR_EVENT::HasEvent, MotorEvent, MotorPhase_A, MotorPhase_AX, MotorPhase_B, MotorPhase_BX, STEPMOTOR_CONTROL::State, StepMotorCtrl, and STEPMOTOR_CONTROL::Timer.
Referenced by F_SysPowerOnInit().
INT8U code* MotorCommandList[MOTOR_COMMAND_MAX] = {cw,ccw,stop} |
struct MOTOR_EVENT MotorEvent |
Definition at line 23 of file motor.c.
Referenced by F_MotorDirectionSet(), F_MotorEventCheck(), F_MotorPowerOnInit(), and F_MotorSvc().
sbit MotorPhase_A = P1^3 |
sbit MotorPhase_AX = P1^2 |
sbit MotorPhase_B = P1^0 |
sbit MotorPhase_BX = P1^1 |
struct STEPMOTOR_CONTROL StepMotorCtrl |
Definition at line 22 of file motor.c.
Referenced by F_MotorPowerOnInit(), F_MotorSvc(), and IsrTimer0().