HRI board firmware v2.1 Microcontroller firmware of the board used during the HRI labs.

Functions
h_bridge.c File Reference
`#include "h_bridge.h"`

## Functions
void | hb_Tim8Init (void)
| Initialize TIM8 as a PWM generator. More...
void | hb_Init (void)
| Initialize the pins and the PWM timer to control the H-bridge. More...
void | hb_Enable ()
| Enable the motor driver. More...
void | hb_Disable ()
| 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...

## Function Documentation

## ◆ hb_Tim8Init()

void hb_Tim8Init | ( | void |  | ) |

Initialize TIM8 as a PWM generator.