PIO_READ
psr = PIO_READ(sc, PIO_PSR); // only ports
osr = PIO_READ(sc, PIO_OSR);
pin = PIO_READ(sc, PIO_PDSR);
return (PIO_READ(sc, PIO_PDSR) >> bit) & 1;
isr = (PIO_READ(sc, PIO_ISR) & PIO_READ(sc, PIO_IMR));
return (PIO_READ(sc, PIO_PDSR) >> pin) & 1;