![]() |
X-CUBE-SPN11 for X-NUCLEO-IHM11M1
|
Functions | |
| void | MC_SixStep_ADC_Channel (uint32_t) |
| API function for STM32 instruction. More... | |
| void | MC_SixStep_Nucleo_Init (void) |
| Init the STM32 register. More... | |
| void | START_Ref_Generation (void) |
| void | STOP_Ref_Generation (void) |
| void | Set_Ref_Generation (uint16_t) |
| void | START_DAC (void) |
| Start DAC for debug. More... | |
| void | STOP_DAC (void) |
| Stop DAC for debug. More... | |
| void | SET_DAC_value (uint16_t) |
| Set DAC value for debug. More... | |
| void | Bemf_delay_calc (void) |
| Bemf delay calculation. More... | |
| uint32_t | Get_UART_Data (void) |
| Get the UART value from DR register. More... | |
| void | MC_SixStep_EnableInput_CH1_E_CH2_E_CH3_D (void) |
| Enable Input channel CH1 and CH2 for STSPIN230. More... | |
| void | MC_SixStep_EnableInput_CH1_E_CH2_D_CH3_E (void) |
| Enable Input channel CH1 and CH3 for STSPIN230. More... | |
| void | MC_SixStep_EnableInput_CH1_D_CH2_E_CH3_E (void) |
| Enable Input channel CH2 and CH3 for STSPIN230. More... | |
| void | MC_SixStep_DisableInput_CH1_D_CH2_D_CH3_D (void) |
| Enable Input channel CH2 and CH3 for STSPIN230. More... | |
| void | MC_SixStep_Start_PWM_driving (void) |
| Enable PWM channels for STSPIN230. More... | |
| void | MC_SixStep_Stop_PWM_driving (void) |
| Disable PWM channels for STSPIN230. More... | |
| void | MC_SixStep_HF_TIMx_SetDutyCycle_CH1 (uint16_t) |
| Set the Duty Cycle value for CH1. More... | |
| void | MC_SixStep_HF_TIMx_SetDutyCycle_CH2 (uint16_t) |
| Set the Duty Cycle value for CH2. More... | |
| void | MC_SixStep_HF_TIMx_SetDutyCycle_CH3 (uint16_t) |
| Set the Duty Cycle value for CH3. More... | |
| void | MC_SixStep_Current_Reference_Start (void) |
| Enable the Current Reference generation. More... | |
| void | MC_SixStep_Current_Reference_Stop (void) |
| Disable the Current Reference generation. More... | |
| void | MC_SixStep_Current_Reference_Setvalue (uint16_t) |
| Set the value for Current Reference. More... | |
| void | BSP_X_NUCLEO_FAULT_LED_ON (void) |
| void | BSP_X_NUCLEO_FAULT_LED_OFF (void) |
Detailed Description
Function Documentation
| void Bemf_delay_calc | ( | void | ) |
Bemf delay calculation.
- Return values
-
None
Definition at line 498 of file stm32F401_nucleo_ihm11m1.c.
References 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, SIXSTEP_Base_InitTypeDef::demagn_value, SIXSTEP_PI_PARAM_InitTypeDef_t::Reference, and SIXSTEP_Base_InitTypeDef::speed_fdbk_filtered.
Referenced by MC_Bemf_Delay().
| void BSP_X_NUCLEO_FAULT_LED_OFF | ( | void | ) |
Definition at line 364 of file X-NUCLEO-IHM11M1.c.
Referenced by MC_StopMotor().
| void BSP_X_NUCLEO_FAULT_LED_ON | ( | void | ) |
Definition at line 351 of file X-NUCLEO-IHM11M1.c.
Referenced by MC_StartMotor().
| uint32_t Get_UART_Data | ( | void | ) |
Get the UART value from DR register.
- Return values
-
uint32_t
Definition at line 629 of file stm32F401_nucleo_ihm11m1.c.
References UART.
| void MC_SixStep_ADC_Channel | ( | uint32_t | adc_ch | ) |
API function for STM32 instruction.
API function for STM32 instruction.
- Parameters
-
adc_ch
- Return values
-
None
Definition at line 74 of file stm32F401_nucleo_ihm11m1.c.
References ADCx.
Referenced by MC_ADCx_SixStep_Bemf(), and MC_SixStep_NEXT_step().
| void MC_SixStep_Current_Reference_Setvalue | ( | uint16_t | Iref | ) |
Set the value for Current Reference.
- Return values
-
None
Definition at line 480 of file stm32F401_nucleo_ihm11m1.c.
References STSPIN230_MotorDriver_TypeDef::Current_Reference_Setvalue.
| void MC_SixStep_Current_Reference_Start | ( | void | ) |
Enable the Current Reference generation.
- Return values
-
None
Definition at line 441 of file stm32F401_nucleo_ihm11m1.c.
References STSPIN230_MotorDriver_TypeDef::Current_Reference_Start.
| void MC_SixStep_Current_Reference_Stop | ( | void | ) |
Disable the Current Reference generation.
- Return values
-
None
Definition at line 460 of file stm32F401_nucleo_ihm11m1.c.
References STSPIN230_MotorDriver_TypeDef::Current_Reference_Stop.
| void MC_SixStep_DisableInput_CH1_D_CH2_D_CH3_D | ( | void | ) |
Enable Input channel CH2 and CH3 for STSPIN230.
- Return values
-
None
Definition at line 327 of file stm32F401_nucleo_ihm11m1.c.
References STSPIN230_MotorDriver_TypeDef::DisableInput_CH1_D_CH2_D_CH3_D.
| void MC_SixStep_EnableInput_CH1_D_CH2_E_CH3_E | ( | void | ) |
Enable Input channel CH2 and CH3 for STSPIN230.
- Return values
-
None
Definition at line 309 of file stm32F401_nucleo_ihm11m1.c.
References STSPIN230_MotorDriver_TypeDef::EnableInput_CH1_D_CH2_E_CH3_E.
| void MC_SixStep_EnableInput_CH1_E_CH2_D_CH3_E | ( | void | ) |
Enable Input channel CH1 and CH3 for STSPIN230.
- Return values
-
None
Definition at line 291 of file stm32F401_nucleo_ihm11m1.c.
References STSPIN230_MotorDriver_TypeDef::EnableInput_CH1_E_CH2_D_CH3_E.
| void MC_SixStep_EnableInput_CH1_E_CH2_E_CH3_D | ( | void | ) |
Enable Input channel CH1 and CH2 for STSPIN230.
- Return values
-
None
Definition at line 273 of file stm32F401_nucleo_ihm11m1.c.
References STSPIN230_MotorDriver_TypeDef::EnableInput_CH1_E_CH2_E_CH3_D.
| void MC_SixStep_HF_TIMx_SetDutyCycle_CH1 | ( | uint16_t | CCR_value | ) |
Set the Duty Cycle value for CH1.
- Return values
-
None
Definition at line 381 of file stm32F401_nucleo_ihm11m1.c.
References STSPIN230_MotorDriver_TypeDef::HF_TIMx_SetDutyCycle_CH1.
| void MC_SixStep_HF_TIMx_SetDutyCycle_CH2 | ( | uint16_t | CCR_value | ) |
Set the Duty Cycle value for CH2.
- Return values
-
None
Definition at line 400 of file stm32F401_nucleo_ihm11m1.c.
References STSPIN230_MotorDriver_TypeDef::HF_TIMx_SetDutyCycle_CH2.
| void MC_SixStep_HF_TIMx_SetDutyCycle_CH3 | ( | uint16_t | CCR_value | ) |
Set the Duty Cycle value for CH3.
- Return values
-
None
Definition at line 423 of file stm32F401_nucleo_ihm11m1.c.
References STSPIN230_MotorDriver_TypeDef::HF_TIMx_SetDutyCycle_CH3.
| void MC_SixStep_Nucleo_Init | ( | void | ) |
Init the STM32 register.
- Return values
-
None
Definition at line 95 of file stm32F401_nucleo_ihm11m1.c.
References 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, hadc1, HF_TIMx, HF_TIMx_CH1, HF_TIMx_CH2, HF_TIMx_CH3, and htim1.
Referenced by MC_SixStep_INIT().
| void MC_SixStep_Start_PWM_driving | ( | void | ) |
Enable PWM channels for STSPIN230.
- Return values
-
None
Definition at line 345 of file stm32F401_nucleo_ihm11m1.c.
References STSPIN230_MotorDriver_TypeDef::Start_PWM_driving.
| void MC_SixStep_Stop_PWM_driving | ( | void | ) |
Disable PWM channels for STSPIN230.
- Return values
-
None
Definition at line 363 of file stm32F401_nucleo_ihm11m1.c.
References STSPIN230_MotorDriver_TypeDef::Stop_PWM_driving.
| void SET_DAC_value | ( | uint16_t | dac_value | ) |
Set DAC value for debug.
- Parameters
-
dac_value information to plot through DAC
- Return values
-
None
Definition at line 185 of file stm32F401_nucleo_ihm11m1.c.
Referenced by MC_Task_Speed().
| void Set_Ref_Generation | ( | uint16_t | ) |
| void START_DAC | ( | void | ) |
Start DAC for debug.
- Return values
-
None
Definition at line 154 of file stm32F401_nucleo_ihm11m1.c.
Referenced by MC_StartMotor().
| void START_Ref_Generation | ( | void | ) |
| void STOP_DAC | ( | void | ) |
| void STOP_Ref_Generation | ( | void | ) |
Generated by
1.8.11
