RS232 control for TVOne products

Dependents:   SPK-DVIMXR

Files at this revision

API Documentation at this revision

Comitter:
tobyspark
Date:
Tue Dec 11 17:54:33 2012 +0000
Parent:
19:350d1191e466
Child:
21:2260dde18dfa
Commit message:
getCommandTimeoutPeriod

Changed in this revision

spk_tvone_mbed.cpp Show annotated file Show diff for this revision Revisions of this file
spk_tvone_mbed.h Show annotated file Show diff for this revision Revisions of this file
--- a/spk_tvone_mbed.cpp	Tue Dec 11 13:14:17 2012 +0000
+++ b/spk_tvone_mbed.cpp	Tue Dec 11 17:54:33 2012 +0000
@@ -173,7 +173,7 @@
         }
     }
   }
-  
+
   // Return true if we got the no error acknowledgement from the unit. The rest of the ack will be verified elsewhere if needed.
   if (ackPos == ackLength && ackBuffer[1] == '4') 
   {
@@ -228,7 +228,12 @@
     commandMinimumPeriod = kTV1CommandMinimumMillis;
 }
 
-int  SPKTVOne::millisSinceLastCommandSent()
+int SPKTVOne::getCommandTimeoutPeriod()
+{
+    return commandTimeoutPeriod;
+}
+
+int SPKTVOne::millisSinceLastCommandSent()
 {
     return timer.read_ms();
 }
--- a/spk_tvone_mbed.h	Tue Dec 11 13:14:17 2012 +0000
+++ b/spk_tvone_mbed.h	Tue Dec 11 17:54:33 2012 +0000
@@ -48,6 +48,7 @@
     bool uploadCustomResolutions();
     
     void setCommandTimeoutPeriod(int millis);
+    int  getCommandTimeoutPeriod();
     void setCommandMinimumPeriod(int millis);
     void increaseCommandPeriods(int millis);
     void resetCommandPeriods();