X-CUBE-SPN11 for X-NUCLEO-IHM11M1
|
stm32F401_nucleo_ihm11m1.c
Go to the documentation of this file.
502 if(SIXSTEP_parameters.speed_fdbk_filtered<=12000 && SIXSTEP_parameters.speed_fdbk_filtered>10000)
506 else if(SIXSTEP_parameters.speed_fdbk_filtered<=10000 && SIXSTEP_parameters.speed_fdbk_filtered>9400)
510 else if(SIXSTEP_parameters.speed_fdbk_filtered<=9400 && SIXSTEP_parameters.speed_fdbk_filtered>7600)
514 else if(SIXSTEP_parameters.speed_fdbk_filtered<=7600 && SIXSTEP_parameters.speed_fdbk_filtered>6000)
518 else if(SIXSTEP_parameters.speed_fdbk_filtered<=6000 && SIXSTEP_parameters.speed_fdbk_filtered>5400)
522 else if(SIXSTEP_parameters.speed_fdbk_filtered<=5400 && SIXSTEP_parameters.speed_fdbk_filtered>4750)
526 else if(SIXSTEP_parameters.speed_fdbk_filtered<=4750 && SIXSTEP_parameters.speed_fdbk_filtered>4200)
530 else if(SIXSTEP_parameters.speed_fdbk_filtered<=4200 && SIXSTEP_parameters.speed_fdbk_filtered>2600)
534 else if(SIXSTEP_parameters.speed_fdbk_filtered<=2600 && SIXSTEP_parameters.speed_fdbk_filtered>1800)
538 else if(SIXSTEP_parameters.speed_fdbk_filtered<=1800 && SIXSTEP_parameters.speed_fdbk_filtered>1500)
542 else if(SIXSTEP_parameters.speed_fdbk_filtered<=1500 && SIXSTEP_parameters.speed_fdbk_filtered>1300)
546 else if(SIXSTEP_parameters.speed_fdbk_filtered<=1300 && SIXSTEP_parameters.speed_fdbk_filtered>1000)
550 else if(SIXSTEP_parameters.speed_fdbk_filtered<=1000 && SIXSTEP_parameters.speed_fdbk_filtered>500)
557 if(SIXSTEP_parameters.speed_fdbk_filtered>=-12000 && SIXSTEP_parameters.speed_fdbk_filtered<-10000)
561 else if(SIXSTEP_parameters.speed_fdbk_filtered>=-10000 && SIXSTEP_parameters.speed_fdbk_filtered<-7800)
565 else if(SIXSTEP_parameters.speed_fdbk_filtered>=-7800 && SIXSTEP_parameters.speed_fdbk_filtered<-6400)
569 else if(SIXSTEP_parameters.speed_fdbk_filtered>=-6400 && SIXSTEP_parameters.speed_fdbk_filtered<-5400)
573 else if(SIXSTEP_parameters.speed_fdbk_filtered>=-5400 && SIXSTEP_parameters.speed_fdbk_filtered<-4650)
577 else if(SIXSTEP_parameters.speed_fdbk_filtered>=-4650 && SIXSTEP_parameters.speed_fdbk_filtered<-4100)
581 else if(SIXSTEP_parameters.speed_fdbk_filtered>=-4100 && SIXSTEP_parameters.speed_fdbk_filtered<-3650)
585 else if(SIXSTEP_parameters.speed_fdbk_filtered>=-3650 && SIXSTEP_parameters.speed_fdbk_filtered<-3300)
589 else if(SIXSTEP_parameters.speed_fdbk_filtered>=-3300 && SIXSTEP_parameters.speed_fdbk_filtered<-2650)
593 else if(SIXSTEP_parameters.speed_fdbk_filtered>=-2600 && SIXSTEP_parameters.speed_fdbk_filtered<-1800)
597 else if(SIXSTEP_parameters.speed_fdbk_filtered>=-1800 && SIXSTEP_parameters.speed_fdbk_filtered<-1500)
601 else if(SIXSTEP_parameters.speed_fdbk_filtered>=-1500 && SIXSTEP_parameters.speed_fdbk_filtered<-1300)
605 else if(SIXSTEP_parameters.speed_fdbk_filtered>=-1300 && SIXSTEP_parameters.speed_fdbk_filtered<-1000)
609 else if(SIXSTEP_parameters.speed_fdbk_filtered>=-1000 && SIXSTEP_parameters.speed_fdbk_filtered<-500)
void MC_SixStep_Start_PWM_driving()
Enable PWM channels for STSPIN230.
Definition: stm32F401_nucleo_ihm11m1.c:345
void(* EnableInput_CH1_E_CH2_E_CH3_D)(void)
Definition: MC_Common.h:65
void MC_SixStep_HF_TIMx_SetDutyCycle_CH2(uint16_t CCR_value)
Set the Duty Cycle value for CH2.
Definition: stm32F401_nucleo_ihm11m1.c:400
This file provides the set of functions to manage the X-Nucleo board.
void(* DisableInput_CH1_D_CH2_D_CH3_D)(void)
Definition: MC_Common.h:68
void MC_SixStep_HF_TIMx_SetDutyCycle_CH1(uint16_t CCR_value)
Set the Duty Cycle value for CH1.
Definition: stm32F401_nucleo_ihm11m1.c:381
void MC_SixStep_EnableInput_CH1_E_CH2_E_CH3_D()
Enable Input channel CH1 and CH2 for STSPIN230.
Definition: stm32F401_nucleo_ihm11m1.c:273
void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
EXT callback.
Definition: stm32F401_nucleo_ihm11m1.c:256
void(* HF_TIMx_SetDutyCycle_CH3)(uint16_t)
Definition: MC_Common.h:73
void(* Current_Reference_Stop)(void)
Definition: MC_Common.h:75
void MC_SixStep_EnableInput_CH1_D_CH2_E_CH3_E()
Enable Input channel CH2 and CH3 for STSPIN230.
Definition: stm32F401_nucleo_ihm11m1.c:309
void MC_SysTick_SixStep_MediumFrequencyTask(void)
Definition: 6Step_Lib.c:1246
void(* Start_PWM_driving)(void)
Definition: MC_Common.h:69
void MC_SixStep_HF_TIMx_SetDutyCycle_CH3(uint16_t CCR_value)
Set the Duty Cycle value for CH3.
Definition: stm32F401_nucleo_ihm11m1.c:423
void(* Stop_PWM_driving)(void)
Definition: MC_Common.h:70
void SET_DAC_value(uint16_t dac_value)
Set DAC value for debug.
Definition: stm32F401_nucleo_ihm11m1.c:185
This file provides the interface between the MC-lib and STM Nucleo.
void MC_SixStep_Stop_PWM_driving()
Disable PWM channels for STSPIN230.
Definition: stm32F401_nucleo_ihm11m1.c:363
uint32_t Get_UART_Data()
Get the UART value from DR register.
Definition: stm32F401_nucleo_ihm11m1.c:629
void MC_SixStep_EnableInput_CH1_E_CH2_D_CH3_E()
Enable Input channel CH1 and CH3 for STSPIN230.
Definition: stm32F401_nucleo_ihm11m1.c:291
void MC_SixStep_DisableInput_CH1_D_CH2_D_CH3_D()
Enable Input channel CH2 and CH3 for STSPIN230.
Definition: stm32F401_nucleo_ihm11m1.c:327
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
htim callback
Definition: stm32F401_nucleo_ihm11m1.c:221
void MC_SixStep_Current_Reference_Stop()
Disable the Current Reference generation.
Definition: stm32F401_nucleo_ihm11m1.c:460
This header file provides the set of functions for Motor Control library.
STSPIN230_MotorDriver_TypeDef STSPIN230MotorDriver
It handles all API functions for STSPIN230 MC Driver.
Definition: STSPIN230.c:70
void(* HF_TIMx_SetDutyCycle_CH2)(uint16_t)
Definition: MC_Common.h:72
void(* Current_Reference_Start)(void)
Definition: MC_Common.h:74
void(* HF_TIMx_SetDutyCycle_CH1)(uint16_t)
Definition: MC_Common.h:71
Definition: MC_Common.h:63
void MC_SixStep_Current_Reference_Setvalue(uint16_t Iref)
Set the value for Current Reference.
Definition: stm32F401_nucleo_ihm11m1.c:480
void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef *hadc)
ADC callback.
Definition: stm32F401_nucleo_ihm11m1.c:204
void(* Current_Reference_Setvalue)(uint16_t)
Definition: MC_Common.h:76
void MC_SixStep_ADC_Channel(uint32_t adc_ch)
Select the new ADC Channel.
Definition: stm32F401_nucleo_ihm11m1.c:74
void(* EnableInput_CH1_E_CH2_D_CH3_E)(void)
Definition: MC_Common.h:66
void(* EnableInput_CH1_D_CH2_E_CH3_E)(void)
Definition: MC_Common.h:67
void MC_SixStep_Current_Reference_Start()
Enable the Current Reference generation.
Definition: stm32F401_nucleo_ihm11m1.c:441
Generated by 1.8.11