Go to the documentation of this file.
42 enum DriverMode {Speed_n_Dir, H_Bridge};
43 enum PowerMode {Running, Standby};
44 enum SwitchingSpeed {On150_Off50, On250_Off70, On350_Off90, On500_Off110};
45 enum ShortBreakMode {On, Off};
48 BD65496MUV(uint8_t pinInA, uint8_t pinInB, uint8_t pinPwmMode ,DriverMode driverMode = DriverMode::Speed_n_Dir);
49 BD65496MUV(uint8_t pinInA, uint8_t pinInB, DriverMode driverMode = DriverMode::Speed_n_Dir,
50 bool pinPwmModeDefined =
false, uint8_t pinPwmMode = 0,
51 bool pinPsDefined =
false, uint8_t pinPs = 0, PowerMode powerMode = PowerMode::Running,
52 bool pinTrDefined =
false, uint8_t pinTr1 = 0, uint8_t pinTr2 = 0,
53 SwitchingSpeed switchingSpeed = SwitchingSpeed::On150_Off50,
54 ShortBreakMode shortBreakMode = ShortBreakMode::Off);
80 enum TurnDir {CW, CCW};
83 DriverMode _driverMode;
85 SwitchingSpeed _switchingSpeed;
86 ShortBreakMode _shortBreakMode;
88 bool _pinPwmModeDefined;
102 void _initDriverPins();
void setDriverMode(DriverMode driverMode)
Set the driver mode of the driver.
Definition: BD65496MUV.cpp:223
BD65496MUV(uint8_t pinInA, uint8_t pinInB, uint8_t pinPwmMode, DriverMode driverMode=DriverMode::Speed_n_Dir)
Constructor of the BD65496MUV class with the pwm mode pin.
Definition: BD65496MUV.cpp:64
PowerMode getPowerMode()
Get the power mode of the driver.
Definition: BD65496MUV.cpp:268
int16_t getSpeed()
Get the speed of the moter.
Definition: BD65496MUV.cpp:214
void setPowerMode(PowerMode powerMode)
Set the power mode of the driver.
Definition: BD65496MUV.cpp:250
DriverMode getDriverMode()
Get the dirver mdoe of the driver.
Definition: BD65496MUV.cpp:241
void setSpeed(int16_t speed)
Set the speed of the motor.
Definition: BD65496MUV.cpp:140
SwitchingSpeed getSwitchingSpeed()
Get the switching speed of the driver.
Definition: BD65496MUV.cpp:316
void setShortBreakMode(ShortBreakMode shortBreakMode)
Set the short break mode of the driver.
Definition: BD65496MUV.cpp:325
uint16_t getVersion()
Get the version of the library.
Definition: BD65496MUV.cpp:343
ShortBreakMode getShortBreakMode()
Get the short break mode of the dirver.
Definition: BD65496MUV.cpp:334
void setSwitchingSpeed(SwitchingSpeed switchingSpeed)
Set the switching speed of the driver.
Definition: BD65496MUV.cpp:277
The main class of the Arduino library for the BD65496MUV Single Brushed DC Motor Driver.
Definition: BD65496MUV.h:37