Subversion Repositories Code-Repo

Rev

Rev 312 | Rev 316 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#ifndef STEPPER_H
#define STEPPER_H

#define DVR8825

typedef enum {
    STEP_1_1,
    STEP_1_2,
    STEP_1_4,
    STEP_1_8,
    STEP_1_16,
    STEP_1_32
} STEPPER_MICROSTEP;

typedef enum {
    DELAY_1000MS,
    DELAY_500MS,
    DELAY_333MS,
    DELAY_250MS,
    DELAY_100MS,
    DELAY_50MS,
    DELAY_25MS,
    DELAY_10MS,
    DELAY_5MS,
    DELAY_1MS,
    DELAY_STOPPED
} STEPPER_SPEED;

void STEPPER_Set_Microstep(STEPPER_MICROSTEP);
void STEPPER_Set_Next_Step(void);
STEPPER_MICROSTEP STEPPER_Get_Cur_Step(void);
void STEPPER_Set_Next_Delay(void);
STEPPER_SPEED STEPPER_Get_Cur_Speed(void);
void STEPPER_Toggle_Auto(void);
STEPPER_SPEED STEPPER_Get_Auto(void);
void STEPPER_Step(void);

#endif  /* STEPPER_H */