L6470 use library

Dependents:   CatPot_Main_ver1 CatPot_Main_F

Files at this revision

API Documentation at this revision

Comitter:
ryuna
Date:
Sat Dec 27 07:32:25 2014 +0000
Parent:
1:e89f842fbeda
Commit message:
???????????????????busy_flag???????

Changed in this revision

L6470.cpp Show annotated file Show diff for this revision Revisions of this file
L6470.h Show annotated file Show diff for this revision Revisions of this file
diff -r e89f842fbeda -r 63e59749ff49 L6470.cpp
--- a/L6470.cpp	Tue Dec 23 08:07:22 2014 +0000
+++ b/L6470.cpp	Sat Dec 27 07:32:25 2014 +0000
@@ -279,13 +279,17 @@
             
             temp = dosu*200/360;
             
-            GoTo(temp);           
+            GoTo(temp);        
     
             
                         
         }
         
-
+        
+        bool L6470::BusyCheck()
+        {//BESYによりステッピングが動いているかどうか確認する。
+            return (!m_busy);
+        }
         
         
         
diff -r e89f842fbeda -r 63e59749ff49 L6470.h
--- a/L6470.h	Tue Dec 23 08:07:22 2014 +0000
+++ b/L6470.h	Sat Dec 27 07:32:25 2014 +0000
@@ -104,6 +104,7 @@
         void Resets();
         void BusyWait(unsigned int time);
         void Step(int dosu);
+        bool BusyCheck();