TB6569 - Toshiba's DC motor driver

Files at this revision

API Documentation at this revision

Comitter:
ykuroda
Date:
Sun Jun 23 14:24:56 2013 +0000
Parent:
2:88e59101a275
Commit message:
bug fixed

Changed in this revision

TB6569.cpp Show annotated file Show diff for this revision Revisions of this file
TB6569.h Show annotated file Show diff for this revision Revisions of this file
--- a/TB6569.cpp	Sun Jun 23 13:57:48 2013 +0000
+++ b/TB6569.cpp	Sun Jun 23 14:24:56 2013 +0000
@@ -17,7 +17,7 @@
     _vref(vref),
     _alert(alert)
 {
-    output_stop();
+    stop();
     current_control(1.0);   // default = not control current
 }
 
@@ -31,7 +31,7 @@
 TB6569::output(int power)   // Percent [-100 ... 100]
 {
     if(power == 0) {   // stop
-        output_stop();
+        stop();
     } else {
         output((float)power/100);
     }
@@ -56,7 +56,7 @@
 }
 
 void
-TB6569::output_break(void)
+TB6569::short_break(void)
 {
     _pwm = 0;
     _in1 = 1;
@@ -64,7 +64,7 @@
 }
 
 void
-TB6569::output_stop(void)
+TB6569::stop(void)
 {
     _pwm = 0;
     _in1 = 0;
@@ -74,5 +74,5 @@
 void
 TB6569::reset(void)
 {
-    output_stop();
+    stop();
 }
--- a/TB6569.h	Sun Jun 23 13:57:48 2013 +0000
+++ b/TB6569.h	Sun Jun 23 14:24:56 2013 +0000
@@ -17,8 +17,8 @@
     void  output(void);
     void  output(int _power);       //  -100 ... 100
     void  output(float _power);     //  -1 ... 1
-    void  output_break(void);
-    void  output_stop(void);
+    void  short_break(void);
+    void  stop(void);
     void  reset(void);
     void  period_us(int usec) {
         _pwm.period_us(usec);