Library to use my Photo MOS Relays Circuit having 16 or less channels.

Fork of PMRC4ch by Akifumi Takahashi

Revision:
17:08a68860396b
Parent:
16:e81a30a098dd
Child:
18:049283936e3f
--- a/PMRC16ch.cpp	Tue Jun 26 12:42:26 2018 +0000
+++ b/PMRC16ch.cpp	Tue Jun 26 12:48:46 2018 +0000
@@ -35,13 +35,13 @@
     m_CLR = 1;
     m_SCK = m_RCK = 0;
     m_PMRC_state = NaN;
-    allOff();
+    allGround();
     m_PMRC_POL = Cathodic;
 }
 
-char PMRC16ch::allOff()
+char PMRC16ch::allGround()
 {
-    if (m_PMRC_state == ALLOFF) return 1;
+    if (m_PMRC_state == ALLGROUND) return 1;
     /*
     //reset shiftresister
     m_CLR = 0;
@@ -53,7 +53,7 @@
     //shiftby(16);
     sweep();
     upload();
-    return static_cast<char>(m_PMRC_state = ALLOFF);
+    return static_cast<char>(m_PMRC_state = ALLGROUND);
 }
 
 char PMRC16ch::setCh(State arg_state, Polarity arg_POL)
@@ -64,7 +64,7 @@
     if( num_of_shift < 0 )
         sweep();
     
-    if( m_PMRC_state == ALLOFF ) {
+    if( m_PMRC_state == ALLGROUND ) {
         setStimbits();
         num_of_shift = static_cast<char>(arg_state - 1);
     }
@@ -81,7 +81,7 @@
     if( num_of_shift < 0 )
         sweep();
     
-    if( m_PMRC_state == ALLOFF ) {
+    if( m_PMRC_state == ALLGROUND ) {
         setStimbits();
         num_of_shift = static_cast<char>(arg_state - 1);
     }
@@ -121,7 +121,7 @@
     int num_of_shift = (16 + 1) - static_cast<int>(m_PMRC_state);
 
     shiftby(num_of_shift);
-    m_PMRC_state = ALLOFF;
+    m_PMRC_state = ALLGROUND;
 }
 
 void PMRC16ch::shiftby(int arg_num)