Mbed library to control a motor via DRV8833 H-bridge motor controller. Uses two Pwmouts.
Diff: DRV8833.h
- Revision:
- 1:048f85990e31
- Parent:
- 0:80e26be59f41
- Child:
- 2:ccc9acaebd38
diff -r 80e26be59f41 -r 048f85990e31 DRV8833.h --- a/DRV8833.h Tue Oct 15 12:25:34 2013 +0000 +++ b/DRV8833.h Tue Oct 15 12:45:59 2013 +0000 @@ -2,7 +2,7 @@ * * * PWM a un puente en H(DRV8833) conectado a los motores. - * El comportamiento del driver es el siguiente + * El comportamiento del driver es el siguiente: * * x_PWM1 x_PWM2 Mode * 0 0 Coast/Fast decay @@ -27,10 +27,10 @@ class DRV8833 { public: - /** Create a DRV8833 control interface + /** Creates a DRV8833(H-bridge motor controller) control interface * - * @param pwm1 A PwmOut pin, Logic input controls state of AOUT1 - * @param pwm2 A PwmOut pin, Logic input controls state of AOUT2 + * @param pwm1 A PwmOut pin, tied to the AIN1 Logic input, controls state of AOUT1 + * @param pwm2 A PwmOut pin, tied to the AIN2 Logic input controls state of AOUT2 * */ DRV8833(PinName pwm1, PinName pwm2);