X-CUBE-SPN11 for X-NUCLEO-IHM11M1: stm32F401_nucleo_ihm11m1.c File Reference

X-CUBE-SPN11 for X-NUCLEO-IHM11M1

stm32F401_nucleo_ihm11m1.c File Reference

This file provides the interface between the MC-lib and STM Nucleo F401xx. More...

Go to the source code of this file.

Functions

void MC_ADCx_SixStep_Bemf (void)
 
void MC_TIMx_SixStep_timebase (void)
 
void MC_SysTick_SixStep_MediumFrequencyTask (void)
 
void MC_SixStep_ADC_Channel (uint32_t adc_ch)
 Select the new ADC Channel. More...
 
void MC_SixStep_Nucleo_Init ()
 Init the STM32 register. More...
 
void START_DAC ()
 Start DAC for debug. More...
 
void STOP_DAC ()
 Stop DAC for debug. More...
 
void SET_DAC_value (uint16_t dac_value)
 Set DAC value for debug. More...
 
void HAL_ADC_ConvCpltCallback (ADC_HandleTypeDef *hadc)
 ADC callback. More...
 
void HAL_TIM_PeriodElapsedCallback (TIM_HandleTypeDef *htim)
 htim callback More...
 
void HAL_SYSTICK_Callback ()
 Systick callback. More...
 
void HAL_GPIO_EXTI_Callback (uint16_t GPIO_Pin)
 EXT callback. More...
 
void MC_SixStep_EnableInput_CH1_E_CH2_E_CH3_D ()
 Enable Input channel CH1 and CH2 for STSPIN230. More...
 
void MC_SixStep_EnableInput_CH1_E_CH2_D_CH3_E ()
 Enable Input channel CH1 and CH3 for STSPIN230. More...
 
void MC_SixStep_EnableInput_CH1_D_CH2_E_CH3_E ()
 Enable Input channel CH2 and CH3 for STSPIN230. More...
 
void MC_SixStep_DisableInput_CH1_D_CH2_D_CH3_D ()
 Enable Input channel CH2 and CH3 for STSPIN230. More...
 
void MC_SixStep_Start_PWM_driving ()
 Enable PWM channels for STSPIN230. More...
 
void MC_SixStep_Stop_PWM_driving ()
 Disable PWM channels for STSPIN230. More...
 
void MC_SixStep_HF_TIMx_SetDutyCycle_CH1 (uint16_t CCR_value)
 Set the Duty Cycle value for CH1. More...
 
void MC_SixStep_HF_TIMx_SetDutyCycle_CH2 (uint16_t CCR_value)
 Set the Duty Cycle value for CH2. More...
 
void MC_SixStep_HF_TIMx_SetDutyCycle_CH3 (uint16_t CCR_value)
 Set the Duty Cycle value for CH3. More...
 
void MC_SixStep_Current_Reference_Start ()
 Enable the Current Reference generation. More...
 
void MC_SixStep_Current_Reference_Stop ()
 Disable the Current Reference generation. More...
 
void MC_SixStep_Current_Reference_Setvalue (uint16_t Iref)
 Set the value for Current Reference. More...
 
void Bemf_delay_calc ()
 Bemf delay calculation. More...
 
uint32_t Get_UART_Data ()
 Get the UART value from DR register. More...
 

Variables

SIXSTEP_Base_InitTypeDef SIXSTEP_parameters
 
SIXSTEP_PI_PARAM_InitTypeDef_t PI_parameters
 
STSPIN230_MotorDriver_TypeDef STSPIN230MotorDriver
 It handles all API functions for STSPIN230 MC Driver. More...
 

Detailed Description

This file provides the interface between the MC-lib and STM Nucleo F401xx.

Author
IPC
Version
V0
Date
10/07/2016 COPYRIGHT(c) 2015 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file stm32F401_nucleo_ihm11m1.c.

Generated by   doxygen 1.8.11