docs: public boolean getCD() throws IllegalStateException, IOException{
          // validate state
          if (isClosed())
              throw new IllegalStateException("Serial connection is not open; cannot 'getCD()'.");
  
          // get pin state
          return com.pi4j.jni.Serial.getCD(fileDescriptor);
      }