X-CUBE-SPN1-20150128 example source code for one motor compiled under mbed. Tested OK on Nucleo F401. l6474.cpp is modified from original with defines in l6474_target_config.h to select the original behaviour (motor de-energised when halted), or new mode to continue powering with a (reduced) current in the coils (braking/position hold capability). On F401 avoid using mbed's InterruptIn on pins 10-15 (any port). Beware of other conflicts! L0 & F0 are included but untested.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

IHM01A1_Board_Private_Variables

Variables

static SPI_HandleTypeDef SpiHandle
 SPI handler declaration.
TIM_HandleTypeDef hTimPwm1
 Timer handler for PWM1.
TIM_HandleTypeDef hTimPwm2
 imer handler for PWM2
TIM_HandleTypeDef hTimPwm3
 Timer handler for PWM3.
static SPI_HandleTypeDef SpiHandle
 SPI handler declaration.
TIM_HandleTypeDef hTimPwm1
 Timer handler for PWM1.
TIM_HandleTypeDef hTimPwm2
 Timer handler for PWM2.
TIM_HandleTypeDef hTimPwm3
 Timer handler for PWM3.
static SPI_HandleTypeDef SpiHandle
 SPI handler declaration.
TIM_HandleTypeDef hTimPwm1
 Timer handler for PWM1.
TIM_HandleTypeDef hTimPwm2
 imer handler for PWM2
TIM_HandleTypeDef hTimPwm3
 Timer handler for PWM3.

Variable Documentation

TIM_HandleTypeDef hTimPwm1

Timer handler for PWM1.

Definition at line 75 of file stm32f0xx_nucleo_ihm01a1.cpp.

TIM_HandleTypeDef hTimPwm1

Timer handler for PWM1.

Definition at line 75 of file stm32l0xx_nucleo_ihm01a1.cpp.

TIM_HandleTypeDef hTimPwm1

Timer handler for PWM1.

Definition at line 75 of file stm32f4xx_nucleo_ihm01a1.cpp.

TIM_HandleTypeDef hTimPwm2

imer handler for PWM2

Definition at line 77 of file stm32l0xx_nucleo_ihm01a1.cpp.

TIM_HandleTypeDef hTimPwm2

imer handler for PWM2

Definition at line 77 of file stm32f0xx_nucleo_ihm01a1.cpp.

TIM_HandleTypeDef hTimPwm2

Timer handler for PWM2.

imer handler for PWM2

Definition at line 77 of file stm32f4xx_nucleo_ihm01a1.cpp.

TIM_HandleTypeDef hTimPwm3

Timer handler for PWM3.

Definition at line 79 of file stm32f4xx_nucleo_ihm01a1.cpp.

TIM_HandleTypeDef hTimPwm3

Timer handler for PWM3.

Definition at line 79 of file stm32l0xx_nucleo_ihm01a1.cpp.

TIM_HandleTypeDef hTimPwm3

Timer handler for PWM3.

Definition at line 79 of file stm32f0xx_nucleo_ihm01a1.cpp.

SPI_HandleTypeDef SpiHandle [static]

SPI handler declaration.

Definition at line 73 of file stm32f4xx_nucleo_ihm01a1.cpp.

SPI_HandleTypeDef SpiHandle [static]

SPI handler declaration.

Definition at line 73 of file stm32l0xx_nucleo_ihm01a1.cpp.

SPI_HandleTypeDef SpiHandle [static]

SPI handler declaration.

Definition at line 73 of file stm32f0xx_nucleo_ihm01a1.cpp.