Go to the source code of this file.
|
| void | hb_Init (void) |
| | Initialize the pins and the PWM timer to control the H-bridge. More...
|
| |
| void | hb_Enable (void) |
| | Enable the motor driver. More...
|
| |
| void | hb_Disable (void) |
| | Disable the motor driver. More...
|
| |
| void | hb_SetPWM (float32_t ratio) |
| | Set the PWM duty. More...
|
| |
| bool | hb_HasFault (void) |
| | Gets the fault state. Gets the fault state of the H-Bridge from its nFAULT line. A fault may be because of an undervoltage, overcurrent or overtemperature. More...
|
| |
◆ CURRENT_SCALE_RESOL
◆ ENB1_Pin
◆ ENB1_Port
◆ ENB2_Pin
◆ ENB2_Port
◆ nFAULT_Pin
| #define nFAULT_Pin GPIO_Pin_15 |
◆ nFAULT_Port
| #define nFAULT_Port GPIOD |
◆ nSLEEP_Pin
| #define nSLEEP_Pin GPIO_Pin_14 |
◆ nSLEEP_Port
| #define nSLEEP_Port GPIOD |
◆ PWM1_Pin
◆ PWM1_Port
◆ PWM2_Pin
◆ PWM2_Port
◆ PWM_FREQUENCY
| #define PWM_FREQUENCY 30000 |
◆ PWM_RESOL_SHIFT_DWN
| #define PWM_RESOL_SHIFT_DWN 6 |
◆ PWM_TIM_PERIODE
| #define PWM_TIM_PERIODE ((int16_t)(0xFFFF>>PWM_RESOL_SHIFT_DWN)) |
◆ PWM_TIM_PRESCALER