Program Listing for File btn99x0_motor_control.hpp¶
↰ Return to documentation for file (src/btn99x0_motor_control.hpp)
#ifndef BTN99X0_MOTOR_CONTROL_HPP_
#define BTN99X0_MOTOR_CONTROL_HPP_
#include "btn99xx_dc_shield.hpp"
namespace btn99x0
{
class MotorControl
{
public:
MotorControl(DCShield & shield);
~MotorControl();
void begin();
void brake(void);
void freewheel(void);
void set_speed(int16_t speed);
void set_slew_rate(slew_rate_level_t sr_level);
private:
HalfBridge hb1;
HalfBridge hb2;
};
}
#endif /* BTN99X0_MOTOR_CONTROL_HPP_ */