title: Reading output pin level on SAMDG55
body: <p>I'm building a firmware for a device based on Atmel/Microchip AT SAMG55.</p>
  
  <p>In a simple function, trigger some relais connected to GPIO pins.
  Because I want to interlock different I/O, avoiding that 2 specific outputs are high level on the same time, I need to know the pin level I set before.</p>
  
  <p>In another project, based on the SAMD21, there was a function that reads output pin state</p>
  
  <pre class="lang-c prettyprint-override"><code>static inline bool port_pin_get_output_level(const uint8_t gpio_pin)
  </code></pre>
  
  <p>The SAMG55 port library in ASF is quite different, so i tried <code>ioport_get_pin_level(pin)</code>, but i'm not getting expected result. I think that it works only with pins configured as inputs.</p>
  
  <p>Are there any recommended solutions?</p>