X-CUBE-SPN11 for X-NUCLEO-IHM11M1
|
Generate the next step number according with the direction (CW or CCW) More...
Functions | |
void | MC_SixStep_NEXT_step (void) |
Detailed Description
Generate the next step number according with the direction (CW or CCW)
- Return values
-
uint8_t SIXSTEP_parameters.status
Function Documentation
void MC_SixStep_NEXT_step | ( | void | ) |
Definition at line 239 of file 6Step_Lib.c.
References SIXSTEP_Base_InitTypeDef::ALIGN_OK, ARR_LF, BEMF_CONSEC_DOWN_MAX, SIXSTEP_Base_InitTypeDef::BEMF_Tdown_count, SIXSTEP_Base_InitTypeDef::CL_READY, SIXSTEP_Base_InitTypeDef::CMD, SIXSTEP_Base_InitTypeDef::CurrentRegular_BEMF_ch, SIXSTEP_Base_InitTypeDef::demagn_counter, FALSE, HF_TIMx, LF_TIMx, MC_GetMechSpeedRPM(), MC_SixStep_ADC_Channel(), MC_SixStep_Start_PWM_driving(), MC_SixStep_TABLE(), n_zcr_startup, SIXSTEP_PI_PARAM_InitTypeDef_t::Reference, SIXSTEP_Base_InitTypeDef::Regular_channel, SIXSTEP_Base_InitTypeDef::speed_fdbk, speed_fdbk_error, SIXSTEP_Base_InitTypeDef::status_prev, SIXSTEP_Base_InitTypeDef::step_position, TRUE, and SIXSTEP_Base_InitTypeDef::VALIDATION_OK.
Referenced by MC_TIMx_SixStep_timebase().
Generated by 1.8.11