documentation.HELP! X-CUBE-SPN11 for X-NUCLEO-IHM11M1 Documentation

X-CUBE-SPN11 for X-NUCLEO-IHM11M1: MC_ADCx_SixStep_Bemf

X-CUBE-SPN11 for X-NUCLEO-IHM11M1

previous page next page
Logo
X-CUBE-SPN11 for X-NUCLEO-IHM11M1
  • Main Page
  • Modules
  • Data Structures
  • Files
Functions
MC_ADCx_SixStep_Bemf
MIDDLEWARES » MC_6-STEP_LIB

Compute the zero crossing detection. More...

Functions

void MC_ADCx_SixStep_Bemf (void)
 

Detailed Description

Compute the zero crossing detection.

Return values
None

Function Documentation

void MC_ADCx_SixStep_Bemf ( void  )

Definition at line 1381 of file 6Step_Lib.c.

References SIXSTEP_Base_InitTypeDef::ADC_BEMF_threshold_DOWN, SIXSTEP_Base_InitTypeDef::ADC_BEMF_threshold_UP, SIXSTEP_Base_InitTypeDef::ADC_BUFFER, SIXSTEP_Base_InitTypeDef::ADC_Regular_Buffer, SIXSTEP_Base_InitTypeDef::ADC_SEQ_CHANNEL, ADCx, ALIGNMENT, SIXSTEP_Base_InitTypeDef::BEMF_Tdown_count, SIXSTEP_Base_InitTypeDef::CurrentRegular_BEMF_ch, SIXSTEP_Base_InitTypeDef::demagn_counter, SIXSTEP_Base_InitTypeDef::demagn_value, GPIO_CH_COMM, GPIO_PORT_COMM, HF_TIMx, HFBuffer, HFBufferIndex, HFBUFFERSIZE, index_adc_chn, MC_SixStep_ADC_Channel(), MC_SixStep_ARR_Bemf(), SIXSTEP_PI_PARAM_InitTypeDef_t::Reference, START, SIXSTEP_Base_InitTypeDef::STATUS, and SIXSTEP_Base_InitTypeDef::step_position.

Referenced by HAL_ADC_ConvCpltCallback().


Generated by   doxygen 1.8.11
previous page start next page

Menu

  • Homepage

Table of contents

  • Documentation for X-CUBE-SPN11 Software for STM32, Expansion for STM32Cube
    • Introduction
  • Modules
    • DRIVERS
      • BSP
        • COMPONENTS
          • STSPIN230_Motor_Driver_handler
            • STSPIN230_MotorDriver_TypeDef
              • Current_Reference_Setvalue
              • Current_Reference_Start
              • Current_Reference_Stop
              • DisableInput_CH1_D_CH2_D_CH3_D
              • EnableInput_CH1_D_CH2_E_CH3_E
              • EnableInput_CH1_E_CH2_D_CH3_E
              • EnableInput_CH1_E_CH2_E_CH3_D
              • HF_TIMx_SetDutyCycle_CH1
              • HF_TIMx_SetDutyCycle_CH2
              • HF_TIMx_SetDutyCycle_CH3
              • Start_PWM_driving
              • Stop_PWM_driving
          • STSPIN230
            • STSPIN230MotorDriver
              • STSPIN230MotorDriver
            • EnableInput_CH1_E_CH2_E_CH3_D
              • EnableInput_CH1_E_CH2_E_CH3_D
              • MC_SixStep_EnableInput_CH1_E_CH2_E_CH3_D
            • EnableInput_CH1_E_CH2_D_CH3_E
              • EnableInput_CH1_E_CH2_D_CH3_E
              • MC_SixStep_EnableInput_CH1_E_CH2_D_CH3_E
            • EnableInput_CH1_D_CH2_E_CH3_E
              • EnableInput_CH1_D_CH2_E_CH3_E
              • MC_SixStep_EnableInput_CH1_D_CH2_E_CH3_E
            • DisableInput_CH1_D_CH2_D_CH3_D
              • DisableInput_CH1_D_CH2_D_CH3_D
              • MC_SixStep_DisableInput_CH1_D_CH2_D_CH3_D
            • Start_PWM_driving
              • MC_SixStep_Start_PWM_driving
              • Start_PWM_driving
            • Stop_PWM_driving
              • MC_SixStep_Stop_PWM_driving
              • Stop_PWM_driving
            • HF_TIMx_SetDutyCycle_CH1
              • HF_TIMx_SetDutyCycle_CH1
              • MC_SixStep_HF_TIMx_SetDutyCycle_CH1
            • HF_TIMx_SetDutyCycle_CH2
              • HF_TIMx_SetDutyCycle_CH2
              • MC_SixStep_HF_TIMx_SetDutyCycle_CH2
            • HF_TIMx_SetDutyCycle_CH3
              • HF_TIMx_SetDutyCycle_CH3
              • MC_SixStep_HF_TIMx_SetDutyCycle_CH3
            • Current_Reference_Start
              • Current_Reference_Start
              • MC_SixStep_Current_Reference_Start
            • Current_Reference_Stop
              • Current_Reference_Stop
              • MC_SixStep_Current_Reference_Stop
            • Current_Reference_Setvalue
              • Current_Reference_Setvalue
              • MC_SixStep_Current_Reference_Setvalue
        • X-NUCLEO-IHM11M1
          • STSPIN230_EnableInput_CH1_E_CH2_E_CH3_D
            • STSPIN230_EnableInput_CH1_E_CH2_E_CH3_D
          • STSPIN230_EnableInput_CH1_E_CH2_D_CH3_E
            • STSPIN230_EnableInput_CH1_E_CH2_D_CH3_E
          • STSPIN230_EnableInput_CH1_D_CH2_E_CH3_E
            • STSPIN230_EnableInput_CH1_D_CH2_E_CH3_E
          • STSPIN230_DisableInput_CH1_D_CH2_D_CH3_D
            • STSPIN230_DisableInput_CH1_D_CH2_D_CH3_D
          • STSPIN230_Start_PWM_driving
            • STSPIN230_Start_PWM_driving
          • STSPIN230_Stop_PWM_driving
            • STSPIN230_Stop_PWM_driving
          • STSPIN230_HF_TIMx_SetDutyCycle_CH1
            • STSPIN230_HF_TIMx_SetDutyCycle_CH1
          • STSPIN230_HF_TIMx_SetDutyCycle_CH2
            • STSPIN230_HF_TIMx_SetDutyCycle_CH2
          • STSPIN230_HF_TIMx_SetDutyCycle_CH3
            • STSPIN230_HF_TIMx_SetDutyCycle_CH3
          • STSPIN230_Current_Reference_Start
            • STSPIN230_Current_Reference_Start
          • STSPIN230_Current_Reference_Stop
            • STSPIN230_Current_Reference_Stop
          • STSPIN230_Current_Reference_Setvalue
            • STSPIN230_Current_Reference_Setvalue
          • BSP_X_NUCLEO_FAULT_LED_ON
            • BSP_X_NUCLEO_FAULT_LED_ON
          • BSP_X_NUCLEO_FAULT_LED_OFF
            • BSP_X_NUCLEO_FAULT_LED_OFF
          • SIXSTEP_parameters
    • MIDDLEWARES
      • MC_6-STEP_LIB
        • Exported_types
          • SIXSTEP_Base_InitTypeDef
            • ACCEL
            • ADC_BEMF_threshold_DOWN
            • ADC_BEMF_threshold_UP
            • ADC_BUFFER
            • ADC_Regular_Buffer
            • ADC_SEQ_CHANNEL
            • ALIGN_OK
            • ALIGNMENT
            • ARR_OK
            • ARR_value
            • Bemf_delay_start
            • BEMF_OK
            • bemf_state_1
            • bemf_state_2
            • bemf_state_3
            • bemf_state_4
            • bemf_state_5
            • bemf_state_6
            • BEMF_Tdown_count
            • Button_ready
            • CL_READY
            • CMD
            • Current_Reference
            • CurrentRegular_BEMF_ch
            • CW_CCW
            • demagn_counter
            • demagn_value
            • filter_depth
            • HF_TIMx_ARR
            • HF_TIMx_CCR
            • HF_TIMx_PSC
            • Integral_Term_sum
            • Ireference
            • IREFERENCE
            • KI
            • KP
            • LF_TIMx_ARR
            • LF_TIMx_PSC
            • MediumFrequencyTask_flag
            • numberofitemArr
            • NUMPOLESPAIRS
            • Potentiometer
            • prescaler_value
            • pulse_value
            • Ramp_Start
            • Regular_channel
            • RUN_Motor
            • speed_fdbk
            • speed_fdbk_filtered
            • Speed_Loop_Time
            • Speed_Ref_filtered
            • Speed_target_ramp
            • Speed_target_time
            • SPEED_VALIDATED
            • STATUS
            • status_prev
            • step_position
            • SYSCLK_frequency
            • Uart_cmd_to_set
            • Uart_value_to_set
            • VALIDATION_OK
          • SIXSTEP_PI_PARAM_InitTypeDef_t
            • Ki_Gain
            • Kp_Gain
            • Lower_Limit_Output
            • Max_PID_Output
            • Min_PID_Output
            • Reference
            • Upper_Limit_Output
          • SIXSTEP_pi_PARAM_InitTypeDef_t
          • SIXSTEP_Base_SystStatus_t
            • IDLE
            • STARTUP
            • VALIDATION
            • STOP
            • START
            • RUN
            • ALIGNMENT
            • SPEEDFBKERROR
            • OVERCURRENT
            • STARTUP_FAILURE
            • STARTUP_BEMF_FAILURE
        • Exported_function_6StepLib
          • MC_EXT_button_SixStep
          • MC_Set_Speed
          • MC_SixStep_INIT
          • MC_SixStep_RESET
          • MC_StartMotor
          • MC_StopMotor
        • MC_SixStep_TABLE
          • MC_SixStep_TABLE
        • MC_SixStep_NEXT_step
          • MC_SixStep_NEXT_step
        • MC_SixStep_RESET
          • MC_SixStep_RESET
        • MC_SixStep_Ramp_Motor_calc
          • MC_SixStep_Ramp_Motor_calc
        • MC_SixStep_ARR_step
          • MC_SixStep_ARR_step
        • MC_SixStep_Alignment
          • MC_SixStep_Alignment
        • MC_SixStep_Speed_Val_target_potentiometer
          • MC_SixStep_Speed_Val_target_potentiometer
        • MC_SixStep_Speed_Potentiometer
          • MC_SixStep_Speed_Potentiometer
        • MC_Set_PI_param
          • MC_Set_PI_param
        • MC_PI_Controller
          • MC_PI_Controller
        • MC_Task_Speed
          • MC_Task_Speed
        • MC_Set_Speed
          • MC_Set_Speed
        • MC_Bemf_Delay
          • MC_Bemf_Delay
        • MC_StartMotor
          • MC_StartMotor
        • MC_StopMotor
          • MC_StopMotor
        • MC_GetElSpeedHz
          • MC_GetElSpeedHz
        • MC_GetMechSpeedRPM
          • MC_GetMechSpeedRPM
        • MC_SixStep_Init_main_data
          • MC_SixStep_Init_main_data
        • MC_SixStep_INIT
          • MC_SixStep_INIT
        • MC_TIMx_SixStep_timebase
          • MC_TIMx_SixStep_timebase
        • MC_Speed_Filter
          • MC_Speed_Filter
        • MC_Potentiometer_filter
          • MC_Potentiometer_filter
        • MC_SysTick_SixStep_MediumFrequencyTask
          • MC_SysTick_SixStep_MediumFrequencyTask
        • MC_SixStep_ARR_Bemf
          • MC_SixStep_ARR_Bemf
        • MC_ADCx_SixStep_Bemf
          • MC_ADCx_SixStep_Bemf
        • MC_EXT_button_SixStep
          • MC_EXT_button_SixStep
        • Main_Motor_parameters
          • ACC
          • ADC_SPEED_TH
          • BEMF_CNT_EVENT_MAX
          • BEMF_CONSEC_DOWN_MAX
          • BEMF_THRSLD_DOWN
          • BEMF_THRSLD_UP
          • BUTTON_DELAY
          • DEMAGN_VAL_1
          • DEMAGN_VAL_10
          • DEMAGN_VAL_11
          • DEMAGN_VAL_12
          • DEMAGN_VAL_13
          • DEMAGN_VAL_14
          • DEMAGN_VAL_2
          • DEMAGN_VAL_3
          • DEMAGN_VAL_4
          • DEMAGN_VAL_5
          • DEMAGN_VAL_6
          • DEMAGN_VAL_7
          • DEMAGN_VAL_8
          • DEMAGN_VAL_9
          • DEMO_START_TIME
          • DEMO_STOP_TIME
          • DIRECTION
          • FALSE
          • FILTER_DEEP
          • GPIO_COMM
          • GPIO_ZERO_CROSS
          • HFBUFFERSIZE
          • INITIAL_DEMAGN_DELAY
          • KI_DIV
          • KI_GAIN
          • KP_DIV
          • KP_GAIN
          • LOWER_OUT_LIMIT
          • MAX_POT_SPEED
          • MIN_POT_SPEED
          • MINIMUM_ACC
          • NUM_POLE_PAIRS
          • NUMBER_OF_STEPS
          • NUMBER_ZCR
          • POTENTIOMETER
          • SPEED_LOOP_TIME
          • STARTUP_CURRENT_REFERENCE
          • STARTUP_DUTY_CYCLE
          • TARGET_SPEED
          • TIME_FOR_ALIGN
          • TRUE
          • UPPER_OUT_LIMIT
          • VAL_POT_SPEED_DIV
        • stm32F401_nucleo_ihm11m1
          • MC_SixStep_ADC_Channel
            • MC_SixStep_ADC_Channel
          • MC_SixStep_Nucleo_Init
            • MC_SixStep_Nucleo_Init
          • START_DAC
            • START_DAC
          • STOP_DAC
            • STOP_DAC
          • SET_DAC_value
            • SET_DAC_value
          • HAL_ADC_ConvCpltCallback
            • HAL_ADC_ConvCpltCallback
          • HAL_TIM_PeriodElapsedCallback
            • HAL_TIM_PeriodElapsedCallback
          • HAL_SYSTICK_Callback
            • HAL_SYSTICK_Callback
          • HAL_GPIO_EXTI_Callback
            • HAL_GPIO_EXTI_Callback
          • EnableInput_CH1_E_CH2_E_CH3_D
            • EnableInput_CH1_E_CH2_E_CH3_D
            • MC_SixStep_EnableInput_CH1_E_CH2_E_CH3_D
          • EnableInput_CH1_E_CH2_D_CH3_E
            • EnableInput_CH1_E_CH2_D_CH3_E
            • MC_SixStep_EnableInput_CH1_E_CH2_D_CH3_E
          • EnableInput_CH1_D_CH2_E_CH3_E
            • EnableInput_CH1_D_CH2_E_CH3_E
            • MC_SixStep_EnableInput_CH1_D_CH2_E_CH3_E
          • DisableInput_CH1_D_CH2_D_CH3_D
            • DisableInput_CH1_D_CH2_D_CH3_D
            • MC_SixStep_DisableInput_CH1_D_CH2_D_CH3_D
          • Start_PWM_driving
            • MC_SixStep_Start_PWM_driving
            • Start_PWM_driving
          • Stop_PWM_driving
            • MC_SixStep_Stop_PWM_driving
            • Stop_PWM_driving
          • HF_TIMx_SetDutyCycle_CH1
            • HF_TIMx_SetDutyCycle_CH1
            • MC_SixStep_HF_TIMx_SetDutyCycle_CH1
          • HF_TIMx_SetDutyCycle_CH2
            • HF_TIMx_SetDutyCycle_CH2
            • MC_SixStep_HF_TIMx_SetDutyCycle_CH2
          • HF_TIMx_SetDutyCycle_CH3
            • HF_TIMx_SetDutyCycle_CH3
            • MC_SixStep_HF_TIMx_SetDutyCycle_CH3
          • Current_Reference_Start
            • Current_Reference_Start
            • MC_SixStep_Current_Reference_Start
          • Current_Reference_Stop
            • Current_Reference_Stop
            • MC_SixStep_Current_Reference_Stop
          • Current_Reference_Setvalue
            • Current_Reference_Setvalue
            • MC_SixStep_Current_Reference_Setvalue
          • Bemf_delay_calc
            • Bemf_delay_calc
          • Get_UART_data
            • Get_UART_Data
          • Exported_function_F401
            • Bemf_delay_calc
            • BSP_X_NUCLEO_FAULT_LED_OFF
            • BSP_X_NUCLEO_FAULT_LED_ON
            • Get_UART_Data
            • MC_SixStep_ADC_Channel
            • MC_SixStep_Current_Reference_Setvalue
            • MC_SixStep_Current_Reference_Start
            • MC_SixStep_Current_Reference_Stop
            • MC_SixStep_DisableInput_CH1_D_CH2_D_CH3_D
            • MC_SixStep_EnableInput_CH1_D_CH2_E_CH3_E
            • MC_SixStep_EnableInput_CH1_E_CH2_D_CH3_E
            • MC_SixStep_EnableInput_CH1_E_CH2_E_CH3_D
            • MC_SixStep_HF_TIMx_SetDutyCycle_CH1
            • MC_SixStep_HF_TIMx_SetDutyCycle_CH2
            • MC_SixStep_HF_TIMx_SetDutyCycle_CH3
            • MC_SixStep_Nucleo_Init
            • MC_SixStep_Start_PWM_driving
            • MC_SixStep_Stop_PWM_driving
            • SET_DAC_value
            • Set_Ref_Generation
            • START_DAC
            • START_Ref_Generation
            • STOP_DAC
            • STOP_Ref_Generation
        • CMD_Parser
        • HAL_GetTick
        • HAL_IncTick
        • MC_SixStep_Current_Reference_Setvalue
        • MC_SixStep_Current_Reference_Start
        • MC_SixStep_Current_Reference_Stop
        • MC_SixStep_DisableInput_CH1_D_CH2_D_CH3_D
        • MC_SixStep_EnableInput_CH1_D_CH2_E_CH3_E
        • MC_SixStep_EnableInput_CH1_E_CH2_D_CH3_E
        • MC_SixStep_EnableInput_CH1_E_CH2_E_CH3_D
        • MC_SixStep_HF_TIMx_SetDutyCycle_CH1
        • MC_SixStep_HF_TIMx_SetDutyCycle_CH2
        • MC_SixStep_HF_TIMx_SetDutyCycle_CH3
        • MC_SixStep_Start_PWM_driving
        • MC_SixStep_Stop_PWM_driving
        • MC_UI_INIT
        • MCM_Sqrt
        • UART_Communication_Task
        • UART_Set_Value
        • ARR_LF
        • array_completed
        • buffer_completed
        • cnt_bemf_event
        • constant_k
        • constant_multiplier_tmp
        • counter_ARR_Bemf
        • dac_status
        • delta
        • El_Speed_Hz
        • Enable_start_button
        • HFBuffer
        • HFBufferIndex
        • index_adc_chn
        • index_align
        • index_ARR_step
        • index_array
        • index_motor_run
        • index_pot_filt
        • index_startup_motor
        • mech_accel_hz
        • Mech_Speed_RPM
        • n_zcr_startup
        • PI_parameters
        • potent_filtered
        • Rotor_poles_pairs
        • shift_n_sqrt
        • SIXSTEP_parameters
        • speed_fdbk_error
        • speed_sum_pot_filt
        • speed_sum_sp_filt
        • speed_tmp_array
        • speed_tmp_buffer
        • startup_bemf_failure
        • T_single_step
        • T_single_step_first_value
        • target_speed
        • test_motor_run
        • Tick_cnt
        • Time_vector_prev_tmp
        • Time_vector_tmp
        • UART_FLAG_RECEIVE
        • uwTick
      • UART_UI
        • Exported_function_Uart
          • CMD_ACCELE
          • CMD_DIRECTION
          • CMD_GETSPD
          • CMD_HELP
          • CMD_INIREF
          • CMD_KI_PRM
          • CMD_KP_PRM
          • CMD_POLESP
          • CMD_POTENZ
          • CMD_SETSPD
          • CMD_STARTM
          • CMD_STATUS
          • CMD_STOPMT
  • Data Structures
    • Data Structures
      • CMD_T
        • name
        • pCmdFunc
      • SIXSTEP_Base_InitTypeDef
        • ACCEL
        • ADC_BEMF_threshold_DOWN
        • ADC_BEMF_threshold_UP
        • ADC_BUFFER
        • ADC_Regular_Buffer
        • ADC_SEQ_CHANNEL
        • ALIGN_OK
        • ALIGNMENT
        • ARR_OK
        • ARR_value
        • Bemf_delay_start
        • BEMF_OK
        • bemf_state_1
        • bemf_state_2
        • bemf_state_3
        • bemf_state_4
        • bemf_state_5
        • bemf_state_6
        • BEMF_Tdown_count
        • Button_ready
        • CL_READY
        • CMD
        • Current_Reference
        • CurrentRegular_BEMF_ch
        • CW_CCW
        • demagn_counter
        • demagn_value
        • filter_depth
        • HF_TIMx_ARR
        • HF_TIMx_CCR
        • HF_TIMx_PSC
        • Integral_Term_sum
        • Ireference
        • IREFERENCE
        • KI
        • KP
        • LF_TIMx_ARR
        • LF_TIMx_PSC
        • MediumFrequencyTask_flag
        • numberofitemArr
        • NUMPOLESPAIRS
        • Potentiometer
        • prescaler_value
        • pulse_value
        • Ramp_Start
        • Regular_channel
        • RUN_Motor
        • speed_fdbk
        • speed_fdbk_filtered
        • Speed_Loop_Time
        • Speed_Ref_filtered
        • Speed_target_ramp
        • Speed_target_time
        • SPEED_VALIDATED
        • STATUS
        • status_prev
        • step_position
        • SYSCLK_frequency
        • Uart_cmd_to_set
        • Uart_value_to_set
        • VALIDATION_OK
      • SIXSTEP_PI_PARAM_InitTypeDef_t
        • Ki_Gain
        • Kp_Gain
        • Lower_Limit_Output
        • Max_PID_Output
        • Min_PID_Output
        • Reference
        • Upper_Limit_Output
      • STSPIN230_MotorDriver_TypeDef
        • Current_Reference_Setvalue
        • Current_Reference_Start
        • Current_Reference_Stop
        • DisableInput_CH1_D_CH2_D_CH3_D
        • EnableInput_CH1_D_CH2_E_CH3_E
        • EnableInput_CH1_E_CH2_D_CH3_E
        • EnableInput_CH1_E_CH2_E_CH3_D
        • HF_TIMx_SetDutyCycle_CH1
        • HF_TIMx_SetDutyCycle_CH2
        • HF_TIMx_SetDutyCycle_CH3
        • Start_PWM_driving
        • Stop_PWM_driving
    • Data Structure Index
    • Data Fields
      • All
      • Variables
  • Files
    • File List
      • 6Step_Lib.c
        • CMD_Parser
        • HAL_GetTick
        • HAL_IncTick
        • MC_ADCx_SixStep_Bemf
        • MC_Bemf_Delay
        • MC_EXT_button_SixStep
        • MC_GetElSpeedHz
        • MC_GetMechSpeedRPM
        • MC_PI_Controller
        • MC_Potentiometer_filter
        • MC_Set_PI_param
        • MC_Set_Speed
        • MC_SixStep_Alignment
        • MC_SixStep_ARR_Bemf
        • MC_SixStep_ARR_step
        • MC_SixStep_Current_Reference_Setvalue
        • MC_SixStep_Current_Reference_Start
        • MC_SixStep_Current_Reference_Stop
        • MC_SixStep_DisableInput_CH1_D_CH2_D_CH3_D
        • MC_SixStep_EnableInput_CH1_D_CH2_E_CH3_E
        • MC_SixStep_EnableInput_CH1_E_CH2_D_CH3_E
        • MC_SixStep_EnableInput_CH1_E_CH2_E_CH3_D
        • MC_SixStep_HF_TIMx_SetDutyCycle_CH1
        • MC_SixStep_HF_TIMx_SetDutyCycle_CH2
        • MC_SixStep_HF_TIMx_SetDutyCycle_CH3
        • MC_SixStep_INIT
        • MC_SixStep_Init_main_data
        • MC_SixStep_NEXT_step
        • MC_SixStep_Ramp_Motor_calc
        • MC_SixStep_RESET
        • MC_SixStep_Speed_Potentiometer
        • MC_SixStep_Speed_Val_target_potentiometer
        • MC_SixStep_Start_PWM_driving
        • MC_SixStep_Stop_PWM_driving
        • MC_SixStep_TABLE
        • MC_Speed_Filter
        • MC_StartMotor
        • MC_StopMotor
        • MC_SysTick_SixStep_MediumFrequencyTask
        • MC_Task_Speed
        • MC_TIMx_SixStep_timebase
        • MC_UI_INIT
        • MCM_Sqrt
        • UART_Communication_Task
        • UART_Set_Value
        • ARR_LF
        • array_completed
        • buffer_completed
        • cnt_bemf_event
        • constant_k
        • constant_multiplier_tmp
        • counter_ARR_Bemf
        • dac_status
        • delta
        • El_Speed_Hz
        • Enable_start_button
        • HFBuffer
        • HFBufferIndex
        • index_adc_chn
        • index_align
        • index_ARR_step
        • index_array
        • index_motor_run
        • index_pot_filt
        • index_startup_motor
        • mech_accel_hz
        • Mech_Speed_RPM
        • n_zcr_startup
        • PI_parameters
        • potent_filtered
        • Rotor_poles_pairs
        • shift_n_sqrt
        • SIXSTEP_parameters
        • speed_fdbk_error
        • speed_sum_pot_filt
        • speed_sum_sp_filt
        • speed_tmp_array
        • speed_tmp_buffer
        • startup_bemf_failure
        • T_single_step
        • T_single_step_first_value
        • target_speed
        • test_motor_run
        • Tick_cnt
        • Time_vector_prev_tmp
        • Time_vector_tmp
        • UART_FLAG_RECEIVE
        • uwTick
      • 6Step_Lib.h
        • SIXSTEP_pi_PARAM_InitTypeDef_t
        • SIXSTEP_Base_SystStatus_t
          • IDLE
          • STARTUP
          • VALIDATION
          • STOP
          • START
          • RUN
          • ALIGNMENT
          • SPEEDFBKERROR
          • OVERCURRENT
          • STARTUP_FAILURE
          • STARTUP_BEMF_FAILURE
        • MC_EXT_button_SixStep
        • MC_Set_Speed
        • MC_SixStep_INIT
        • MC_SixStep_RESET
        • MC_StartMotor
        • MC_StopMotor
      • main_F401.c
        • main
        • MX_ADC1_Init
        • MX_TIM1_Init
        • MX_TIM3_Init
        • MX_TIM4_Init
        • MX_USART2_UART_Init
        • SystemClock_Config
        • hadc1
        • htim1
        • htim2
        • htim3
        • htim4
        • huart2
      • main_F401.h
        • hadc1
        • htim1
        • htim3
        • htim4
        • huart2
      • MC_Common.h
      • MC_SixStep_param.h
        • ACC
        • ADC_SPEED_TH
        • BEMF_CNT_EVENT_MAX
        • BEMF_CONSEC_DOWN_MAX
        • BEMF_THRSLD_DOWN
        • BEMF_THRSLD_UP
        • BUTTON_DELAY
        • DEMAGN_VAL_1
        • DEMAGN_VAL_10
        • DEMAGN_VAL_11
        • DEMAGN_VAL_12
        • DEMAGN_VAL_13
        • DEMAGN_VAL_14
        • DEMAGN_VAL_2
        • DEMAGN_VAL_3
        • DEMAGN_VAL_4
        • DEMAGN_VAL_5
        • DEMAGN_VAL_6
        • DEMAGN_VAL_7
        • DEMAGN_VAL_8
        • DEMAGN_VAL_9
        • DEMO_START_TIME
        • DEMO_STOP_TIME
        • DIRECTION
        • FALSE
        • FILTER_DEEP
        • GPIO_COMM
        • GPIO_ZERO_CROSS
        • HFBUFFERSIZE
        • INITIAL_DEMAGN_DELAY
        • KI_DIV
        • KI_GAIN
        • KP_DIV
        • KP_GAIN
        • LOWER_OUT_LIMIT
        • MAX_POT_SPEED
        • MIN_POT_SPEED
        • MINIMUM_ACC
        • NUM_POLE_PAIRS
        • NUMBER_OF_STEPS
        • NUMBER_ZCR
        • POTENTIOMETER
        • SPEED_LOOP_TIME
        • STARTUP_CURRENT_REFERENCE
        • STARTUP_DUTY_CYCLE
        • TARGET_SPEED
        • TIME_FOR_ALIGN
        • TRUE
        • UPPER_OUT_LIMIT
        • VAL_POT_SPEED_DIV
      • stm32_nucleo_ihm11m1.h
      • stm32F401_nucleo_ihm11m1.c
        • Bemf_delay_calc
        • Get_UART_Data
        • HAL_ADC_ConvCpltCallback
        • HAL_GPIO_EXTI_Callback
        • HAL_SYSTICK_Callback
        • HAL_TIM_PeriodElapsedCallback
        • MC_ADCx_SixStep_Bemf
        • MC_SixStep_ADC_Channel
        • MC_SixStep_Current_Reference_Setvalue
        • MC_SixStep_Current_Reference_Start
        • MC_SixStep_Current_Reference_Stop
        • MC_SixStep_DisableInput_CH1_D_CH2_D_CH3_D
        • MC_SixStep_EnableInput_CH1_D_CH2_E_CH3_E
        • MC_SixStep_EnableInput_CH1_E_CH2_D_CH3_E
        • MC_SixStep_EnableInput_CH1_E_CH2_E_CH3_D
        • MC_SixStep_HF_TIMx_SetDutyCycle_CH1
        • MC_SixStep_HF_TIMx_SetDutyCycle_CH2
        • MC_SixStep_HF_TIMx_SetDutyCycle_CH3
        • MC_SixStep_Nucleo_Init
        • MC_SixStep_Start_PWM_driving
        • MC_SixStep_Stop_PWM_driving
        • MC_SysTick_SixStep_MediumFrequencyTask
        • MC_TIMx_SixStep_timebase
        • SET_DAC_value
        • START_DAC
        • STOP_DAC
        • PI_parameters
        • SIXSTEP_parameters
        • STSPIN230MotorDriver
      • stm32F401_nucleo_ihm11m1.h
        • ACCELE_CMD
        • ADC_Bemf_CH1
        • ADC_Bemf_CH1_ST
        • ADC_Bemf_CH2
        • ADC_Bemf_CH2_ST
        • ADC_Bemf_CH3
        • ADC_Bemf_CH3_ST
        • ADC_CH_1
        • ADC_CH_1_ST
        • ADC_CH_2
        • ADC_CH_2_ST
        • ADC_CH_3
        • ADC_CH_3_ST
        • ADC_CH_4
        • ADC_CH_4_ST
        • ADCx
        • DAC_ENABLE
        • DACx
        • DIRECT_CMD
        • GETSPD_CMD
        • GPIO_CH_COMM
        • GPIO_CH_ZCR
        • GPIO_PORT_COMM
        • GPIO_PORT_ZCR
        • HALL_ENCODER_TIMx
        • HELP_CMD
        • HF_TIMx
        • HF_TIMx_CCR1
        • HF_TIMx_CCR2
        • HF_TIMx_CCR3
        • HF_TIMx_CH1
        • HF_TIMx_CH2
        • HF_TIMx_CH3
        • INIREF_CMD
        • KI_PRM_CMD
        • KP_PRM_CMD
        • LF_TIMx
        • POLESP_CMD
        • POTENZ_CMD
        • SETSPD_CMD
        • STARTM_CMD
        • STATUS_CMD
        • STOPMT_CMD
        • UART
        • Bemf_delay_calc
        • BSP_X_NUCLEO_FAULT_LED_OFF
        • BSP_X_NUCLEO_FAULT_LED_ON
        • Get_UART_Data
        • MC_SixStep_ADC_Channel
        • MC_SixStep_Current_Reference_Setvalue
        • MC_SixStep_Current_Reference_Start
        • MC_SixStep_Current_Reference_Stop
        • MC_SixStep_DisableInput_CH1_D_CH2_D_CH3_D
        • MC_SixStep_EnableInput_CH1_D_CH2_E_CH3_E
        • MC_SixStep_EnableInput_CH1_E_CH2_D_CH3_E
        • MC_SixStep_EnableInput_CH1_E_CH2_E_CH3_D
        • MC_SixStep_HF_TIMx_SetDutyCycle_CH1
        • MC_SixStep_HF_TIMx_SetDutyCycle_CH2
        • MC_SixStep_HF_TIMx_SetDutyCycle_CH3
        • MC_SixStep_Nucleo_Init
        • MC_SixStep_Start_PWM_driving
        • MC_SixStep_Stop_PWM_driving
        • SET_DAC_value
        • Set_Ref_Generation
        • START_DAC
        • START_Ref_Generation
        • STOP_DAC
        • STOP_Ref_Generation
      • stm32f4xx_hal_conf.h
        • assert_param
        • DATA_CACHE_ENABLE
        • DP83848_PHY_ADDRESS
        • ETH_RX_BUF_SIZE
        • ETH_RXBUFNB
        • ETH_TX_BUF_SIZE
        • ETH_TXBUFNB
        • EXTERNAL_CLOCK_VALUE
        • HAL_ADC_MODULE_ENABLED
        • HAL_CORTEX_MODULE_ENABLED
        • HAL_DMA_MODULE_ENABLED
        • HAL_FLASH_MODULE_ENABLED
        • HAL_GPIO_MODULE_ENABLED
        • HAL_MODULE_ENABLED
        • HAL_PWR_MODULE_ENABLED
        • HAL_RCC_MODULE_ENABLED
        • HAL_SPI_MODULE_ENABLED
        • HAL_TIM_MODULE_ENABLED
        • HAL_UART_MODULE_ENABLED
        • HSE_STARTUP_TIMEOUT
        • HSE_VALUE
        • HSI_VALUE
        • INSTRUCTION_CACHE_ENABLE
        • LSE_VALUE
        • LSI_VALUE
        • MAC_ADDR0
        • MAC_ADDR1
        • MAC_ADDR2
        • MAC_ADDR3
        • MAC_ADDR4
        • MAC_ADDR5
        • PHY_AUTONEGO_COMPLETE
        • PHY_AUTONEGOTIATION
        • PHY_BCR
        • PHY_BSR
        • PHY_CONFIG_DELAY
        • PHY_DUPLEX_STATUS
        • PHY_FULLDUPLEX_100M
        • PHY_FULLDUPLEX_10M
        • PHY_HALFDUPLEX_100M
        • PHY_HALFDUPLEX_10M
        • PHY_ISOLATE
        • PHY_JABBER_DETECTION
        • PHY_LINK_INTERRUPT
        • PHY_LINK_STATUS
        • PHY_LINKED_STATUS
        • PHY_LOOPBACK
        • PHY_MICR
        • PHY_MICR_INT_EN
        • PHY_MICR_INT_OE
        • PHY_MISR
        • PHY_MISR_LINK_INT_EN
        • PHY_POWERDOWN
        • PHY_READ_TO
        • PHY_RESET
        • PHY_RESET_DELAY
        • PHY_RESTART_AUTONEGOTIATION
        • PHY_SPEED_STATUS
        • PHY_SR
        • PHY_WRITE_TO
        • PREFETCH_ENABLE
        • TICK_INT_PRIORITY
        • USE_RTOS
        • VDD_VALUE
      • stm32f4xx_hal_msp.c
        • HAL_ADC_MspDeInit
        • HAL_ADC_MspInit
        • HAL_MspInit
        • HAL_TIM_Base_MspDeInit
        • HAL_TIM_Base_MspInit
        • HAL_TIM_PWM_MspInit
        • HAL_TIMEx_HallSensor_MspDeInit
        • HAL_TIMEx_HallSensor_MspInit
        • HAL_UART_MspDeInit
        • HAL_UART_MspInit
      • stm32f4xx_it.c
        • ADC_IRQHandler
        • EXTI15_10_IRQHandler
        • SysTick_Handler
        • TIM1_BRK_TIM9_IRQHandler
        • TIM4_IRQHandler
        • UART_Set_Value
        • USART2_IRQHandler
        • hadc1
        • htim1
        • htim4
        • huart2
        • SIXSTEP_parameters
      • stm32f4xx_it.h
        • ADC_IRQHandler
        • EXTI15_10_IRQHandler
        • SysTick_Handler
        • TIM1_BRK_TIM9_IRQHandler
        • TIM4_IRQHandler
        • USART2_IRQHandler
      • STSPIN230.c
        • Current_Reference_Setvalue
        • Current_Reference_Start
        • Current_Reference_Stop
        • DisableInput_CH1_D_CH2_D_CH3_D
        • EnableInput_CH1_D_CH2_E_CH3_E
        • EnableInput_CH1_E_CH2_D_CH3_E
        • EnableInput_CH1_E_CH2_E_CH3_D
        • HF_TIMx_SetDutyCycle_CH1
        • HF_TIMx_SetDutyCycle_CH2
        • HF_TIMx_SetDutyCycle_CH3
        • Start_PWM_driving
        • Stop_PWM_driving
        • STSPIN230MotorDriver
      • STSPIN230.h
        • Current_Reference_Setvalue
        • Current_Reference_Start
        • Current_Reference_Stop
        • DisableInput_CH1_D_CH2_D_CH3_D
        • EnableInput_CH1_D_CH2_E_CH3_E
        • EnableInput_CH1_E_CH2_D_CH3_E
        • EnableInput_CH1_E_CH2_E_CH3_D
        • HF_TIMx_SetDutyCycle_CH1
        • HF_TIMx_SetDutyCycle_CH2
        • HF_TIMx_SetDutyCycle_CH3
        • Start_PWM_driving
        • Stop_PWM_driving
        • STSPIN230_Current_Reference_Setvalue
        • STSPIN230_Current_Reference_Start
        • STSPIN230_Current_Reference_Stop
        • STSPIN230_DisableInput_CH1_D_CH2_D_CH3_D
        • STSPIN230_EnableInput_CH1_D_CH2_E_CH3_E
        • STSPIN230_EnableInput_CH1_E_CH2_D_CH3_E
        • STSPIN230_EnableInput_CH1_E_CH2_E_CH3_D
        • STSPIN230_HF_TIMx_SetDutyCycle_CH1
        • STSPIN230_HF_TIMx_SetDutyCycle_CH2
        • STSPIN230_HF_TIMx_SetDutyCycle_CH3
        • STSPIN230_Set_Ref_Generation
        • STSPIN230_Start_PWM_driving
        • STSPIN230_START_Ref_Generation
        • STSPIN230_Stop_PWM_driving
        • STSPIN230_STOP_Ref_Generation
      • UART_UI.c
      • UART_UI.h
        • CMD_T
          • name
          • pCmdFunc
        • CMD_NUM
        • COUNTOF
        • RXBUFFERSIZE
        • TOKEN
        • TXBUFFERSIZE
        • CMD_ACCELE
        • CMD_DIRECTION
        • CMD_GETSPD
        • CMD_HELP
        • CMD_INIREF
        • CMD_KI_PRM
        • CMD_KP_PRM
        • CMD_POLESP
        • CMD_POTENZ
        • CMD_SETSPD
        • CMD_STARTM
        • CMD_STATUS
        • CMD_STOPMT
      • X-NUCLEO-IHM11M1.c
        • BSP_X_NUCLEO_FAULT_LED_OFF
        • BSP_X_NUCLEO_FAULT_LED_ON
        • STSPIN230_Current_Reference_Setvalue
        • STSPIN230_Current_Reference_Start
        • STSPIN230_Current_Reference_Stop
        • STSPIN230_DisableInput_CH1_D_CH2_D_CH3_D
        • STSPIN230_EnableInput_CH1_D_CH2_E_CH3_E
        • STSPIN230_EnableInput_CH1_E_CH2_D_CH3_E
        • STSPIN230_EnableInput_CH1_E_CH2_E_CH3_D
        • STSPIN230_HF_TIMx_SetDutyCycle_CH1
        • STSPIN230_HF_TIMx_SetDutyCycle_CH2
        • STSPIN230_HF_TIMx_SetDutyCycle_CH3
        • STSPIN230_Start_PWM_driving
        • STSPIN230_Stop_PWM_driving
        • SIXSTEP_parameters
      • X-NUCLEO-IHM11M1.h
        • STSPIN230_Current_Reference_Setvalue
        • STSPIN230_Current_Reference_Start
        • STSPIN230_Current_Reference_Stop
        • STSPIN230_DisableInput_CH1_D_CH2_D_CH3_D
        • STSPIN230_EnableInput_CH1_D_CH2_E_CH3_E
        • STSPIN230_EnableInput_CH1_E_CH2_D_CH3_E
        • STSPIN230_EnableInput_CH1_E_CH2_E_CH3_D
        • STSPIN230_HF_TIMx_SetDutyCycle_CH1
        • STSPIN230_HF_TIMx_SetDutyCycle_CH2
        • STSPIN230_HF_TIMx_SetDutyCycle_CH3
        • STSPIN230_Start_PWM_driving
        • STSPIN230_Stop_PWM_driving
    • Globals
      • All
        • a
        • b
        • c
        • d
        • e
        • f
        • g
        • h
        • i
        • k
        • l
        • m
        • n
        • o
        • p
        • r
        • s
        • t
        • u
        • v
      • Functions
        • a
        • b
        • c
        • d
        • e
        • g
        • h
        • m
        • s
        • t
        • u
      • Variables
      • Typedefs
      • Enumerations
      • Enumerator
      • Macros

Get in touch

Submit feedback about this site to:

  • [email protected]

© documentation.help. Design: rehmann.co.