// Set the index LED, property with the value int StepperOsc_PropertySet( int index, int property, int value ) { switch ( property ) { case 0: Stepper_SetActive( index, value ); break; case 1: Stepper_SetPosition( index, value ); break; case 2: Stepper_SetPositionRequested( index, value ); break; case 3: Stepper_SetSpeed( index, value ); break; case 4: Stepper_SetDuty( index, value ); break; case 5: Stepper_SetHalfStep( index, value ); break; case 6: Stepper_SetBipolar( index, value ); break; case 7: // step Stepper_Step( index, value ); break; } return CONTROLLER_OK; }
void Stepper_HomePosition(STEPPER_MOTOR_T *mot, volatile uint32_t msTicks){ Stepper_SetPosition(mot, 0, msTicks); }